Build libtalloc from samba

Priya PM pmpriya at gmail.com
Mon Mar 25 11:05:50 UTC 2019


Hello Everyone,


Good Morning.

As i wanted to build talloc from samba and not use system talloc, i did add
the library to --bundled-libraries. From the logs i could see talloc.c
getting compiled, but i also see a message "dh_install:
usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2 exists in
/tmp/buildd/samba-4.4.5+dfsg/debian/tmp but is not installed to anywhere". I
need help in how to make sure it gets installed on the target machine.

What extra changes are required in lib/talloc/wcript to accomplish the
same. Thanks for your time.


*--bundled-libraries=NONE,pyldb-util,tevent,talloc,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile*



[ 697/4099] Compiling lib/talloc/talloc.c

10:43:32 runner /usr/bin/gcc -g -O2 -fPIE -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DCTDB_HELPER_BINDIR="/usr/lib/x86_64-linux-gnu/ctdb"
-DLOGDIR="/var/log/ctdb" -DCTDB_ETCDIR="/etc/ctdb"
-DCTDB_VARDIR="/var/lib/ctdb" -DCTDB_RUNDIR="/var/run/ctdb"
-fvisibility=hidden -DSTATIC_talloc_MODULES=NULL
-DSTATIC_talloc_MODULES_PROTO=extern void __talloc_dummy_module_proto(void)
-MD -D_FORTIFY_SOURCE=2 -Idefault/lib/talloc -I../lib/talloc
-Idefault/include/public -I../include/public -Idefault/source4 -I../source4
-Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib
-Idefault/source4/include -I../source4/include -Idefault/include
-I../include -Idefault/lib/replace -I../lib/replace -Idefault/ctdb/include
-I../ctdb/include -Idefault/ctdb -I../ctdb -Idefault -I..
-I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1
-D_XOPEN_SOURCE_EXTENDED=1 ../lib/talloc/talloc.c -c -o
default/lib/talloc/talloc_1.o



installing bin/default/lib/talloc/libtalloc.inst.so as
/tmp/buildd/samba-4.4.5+dfsg/debian/tmp/usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2.1.6

symlink
/tmp/buildd/samba-4.4.5+dfsg/debian/tmp/usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2
(-> libtalloc.so.2.1.6)



Thanks

Priya.



On Sun, Mar 24, 2019 at 7:49 PM Priya PM <pmpriya at gmail.com> wrote:

> Hello Everyone,
>
>
>
> Good Morning.
>
> I need some help in building talloc from samba source and want to link
> this library and not use system libtalloc.
>
> Hence I did change /debian/rules, --bunlded-libraries as below..
>
>
>
> --bundled-libraries=NONE*,talloc*,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile
> \
>
>
>
> Also changed tevent, ldb, ctdb wscripts to not have below talloc check.
>
>
>
> -         if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION,
>
> --                                     *onlyif='talloc'*,
> implied_deps='replace talloc'):
>
> -+                                     implied_deps='replace talloc'):
>
>
>
> I could build the debian package and when I installed the same, smbd start
> fails with “smbd: error while loading shared libraries: libtalloc.so.0:
> cannot open shared object file: No such file or directory”.
>
> It would really help me if anyone has details on what could be the
> necessary steps to build talloc library from samba source. Thanks in
> advance for your time.
>
>
>
> Thanks
>
> Priya
>


More information about the samba-technical mailing list