[Samba] Samba4 4.2 building options and error during Samba4 4.2. building breaks it.

CpServiceSpb cpservicespb at gmail.com
Fri Mar 20 11:06:08 MDT 2015


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 ?
>>
>



More information about the samba mailing list