CpServiceSPb .
2015-Mar-20 00:25 UTC
[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
I tried to build Samba4 4.2.0 from March, 04, 2015 from sources and got the same error at 2 different machiens with Ubuntu 14.04 server LTS x32: [3724/4281] Linking default/lib/util/libsamba-util.so default/lib/util/util_11.o: In function `file_check_permissions': home/samba/bin/../lib/util/util.c:152: undefined reference to `uid_wrapper_enabled' default/lib/util/util_11.o: In function `directory_create_or_exist_strict': home/samba/bin/../lib/util/util.c:277: undefined reference to `uid_wrapper_enabled' collect2: error: ld returned 1 exit status Firstly I built talloc, tdb, tevent and ldb, all are with --enable-developer --bundled-libraries=NONE switches. Then Samba4 in its self with: --enable-developer --enable-gnutls --enable-cups --enable-iprint --with-regedit --builtin-libraries=replace --bundled-libraries=talloc,tdb,tevent,ldb And there are not --enable-socket-wrapper --enable-nss-wrapper --enable-uid-wrapper options of configure. How are to enable them ? So what is it and how is avoid it to build Samba4 ? And are valid --enable-cups and --enable-iprint for Samba4 4.2 ?
Rowland Penny
2015-Mar-20 09:30 UTC
[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
On 20/03/15 00:25, CpServiceSPb . wrote:> I tried to build Samba4 4.2.0 from March, 04, 2015 from sources and got the > same error at 2 different machiens with Ubuntu 14.04 server LTS x32: > > [3724/4281] Linking default/lib/util/libsamba-util.so > default/lib/util/util_11.o: In function `file_check_permissions': > home/samba/bin/../lib/util/util.c:152: undefined reference to > `uid_wrapper_enabled' > default/lib/util/util_11.o: In function `directory_create_or_exist_strict': > home/samba/bin/../lib/util/util.c:277: undefined reference to > `uid_wrapper_enabled' > collect2: error: ld returned 1 exit status > > Firstly I built talloc, tdb, tevent and ldb, all are with > --enable-developer --bundled-libraries=NONE switches. > Then Samba4 in its self with: > --enable-developer --enable-gnutls --enable-cups --enable-iprint > --with-regedit --builtin-libraries=replace > --bundled-libraries=talloc,tdb,tevent,ldb > > And there are not --enable-socket-wrapper --enable-nss-wrapper > --enable-uid-wrapper options of configure. > How are to enable them ? > > So what is it and how is avoid it to build Samba4 ? > > And are valid --enable-cups and --enable-iprint for Samba4 4.2 ?can I ask why you are attempting to build samba this way ?? Rowland
CpServiceSpb
2015-Mar-20 10:49 UTC
[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
So, I built Samba4 4.0.x and 4.1x in such way and wrote simple script to automate it. What is the best way of Samba4 4.2.x building ? And why is there this break down ? > can I ask why you are attempting to build samba this way ?? Rowland > 20.03.2015 3:25, CpServiceSPb . ?????:> I tried to build Samba4 4.2.0 from March, 04, 2015 from sources and > got the same error at 2 different machiens with Ubuntu 14.04 server > LTS x32: > > [3724/4281] Linking default/lib/util/libsamba-util.so > default/lib/util/util_11.o: In function `file_check_permissions': > home/samba/bin/../lib/util/util.c:152: undefined reference to > `uid_wrapper_enabled' > default/lib/util/util_11.o: In function > `directory_create_or_exist_strict': > home/samba/bin/../lib/util/util.c:277: undefined reference to > `uid_wrapper_enabled' > collect2: error: ld returned 1 exit status > > Firstly I built talloc, tdb, tevent and ldb, all are with > --enable-developer --bundled-libraries=NONE switches. > Then Samba4 in its self with: > --enable-developer --enable-gnutls --enable-cups --enable-iprint > --with-regedit --builtin-libraries=replace > --bundled-libraries=talloc,tdb,tevent,ldb > > And there are not --enable-socket-wrapper --enable-nss-wrapper > --enable-uid-wrapper options of configure. > How are to enable them ? > > So what is it and how is avoid it to build Samba4 ? > > And are valid --enable-cups and --enable-iprint for Samba4 4.2 ? >
Rowland Penny
2015-Mar-20 10:59 UTC
[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
On 20/03/15 10:49, CpServiceSpb wrote:> So, I built Samba4 4.0.x and 4.1x in such way and wrote simple script > to automate it. > What is the best way of Samba4 4.2.x building ? > And why is there this break down ? > > > > can I ask why you are attempting to build samba this way ?? Rowland >This doesn't really answer the question, if you are ok with samba ending up in /usr/local/samba/, then (after you have installed the required build packages), you can just do: ./configure && make && make install So why do you need to build samba the way you are trying to ?? Rowland
CpServiceSpb
2015-Mar-20 17:06 UTC
[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
May I don' t understand you, may be you don' t understand me. I built Samba4 4.1.14 by the following way: - built each libs: talloc, tdb, tevent, ldb by configure -C --prefix=/usr/local/samba --enable-developer --bundled-libraries=NONE make make install built Samba4 in itself configure -C --enable-developer --enable-gnutls --enable-cups --enable-iprint --with-regedit --builtin-libraries=replace --prefix=/usr/local/samba \ --enable-socket-wrapper --enable-nss-wrapper --bundled-libraries=talloc,tdb,tevent,ldb make make install And Samba4 4.1.14 was built successfully. So, to now, I have solved this 'question' and built Samba4 4.2 successfully almost with parameters I built 4.1 version. So the 'question' was at --builtin-libraries=replace. All worked with --builtin-libraries=LIST. Thanks me. :)) By the way, I founded this: https://groups.google.com/forum/#!topic/mailing.unix.samba-technical/7R3QVPUpRHs That is all wrappers were moved out from Samba4 tree code. And there are not --enable-socket-wrapper --enable-nss-wrapper --enable-uid-wrapper switched at configure at 4.2 version. Topic could be closed. > This doesn't really answer the question, if you are ok with samba ending up in /usr/local/samba/, > then (after you have installed the required build packages), you can just do: > ./configure && make && make install > So why do you need to build samba the way you are trying to ?? > So, I built Samba4 4.0.x and 4.1x in such way and wrote simple script to automate it. > What is the best way of Samba4 4.2.x building ? > And why is there this break down ? 20.03.2015 13:49, CpServiceSpb ?????:> So, I built Samba4 4.0.x and 4.1x in such way and wrote simple script > to automate it. > What is the best way of Samba4 4.2.x building ? > And why is there this break down ? > > > > can I ask why you are attempting to build samba this way ?? Rowland > > > 20.03.2015 3:25, CpServiceSPb . ?????: >> I tried to build Samba4 4.2.0 from March, 04, 2015 from sources and >> got the same error at 2 different machiens with Ubuntu 14.04 server >> LTS x32: >> >> [3724/4281] Linking default/lib/util/libsamba-util.so >> default/lib/util/util_11.o: In function `file_check_permissions': >> home/samba/bin/../lib/util/util.c:152: undefined reference to >> `uid_wrapper_enabled' >> default/lib/util/util_11.o: In function >> `directory_create_or_exist_strict': >> home/samba/bin/../lib/util/util.c:277: undefined reference to >> `uid_wrapper_enabled' >> collect2: error: ld returned 1 exit status >> >> Firstly I built talloc, tdb, tevent and ldb, all are with >> --enable-developer --bundled-libraries=NONE switches. >> Then Samba4 in its self with: >> --enable-developer --enable-gnutls --enable-cups --enable-iprint >> --with-regedit --builtin-libraries=replace >> --bundled-libraries=talloc,tdb,tevent,ldb >> >> And there are not --enable-socket-wrapper --enable-nss-wrapper >> --enable-uid-wrapper options of configure. >> How are to enable them ? >> >> So what is it and how is avoid it to build Samba4 ? >> >> And are valid --enable-cups and --enable-iprint for Samba4 4.2 ? >> >
Reasonably Related Threads
- Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
- Samba4 4.2 building options and error during Samba4 4.2. building breaks it.
- Error 'getpwuid(3000007) failed' is again. (Rowland penny)
- Samba4 and 0.0.0.0:137 and 0.0.0.0:138 opened, why ? How do close it ?
- Compile Samba without AD/ADS for a slim installation