Building master fails on FreeBSD in the new Python code

Ralph Böhme slow at samba.org
Fri Mar 10 15:04:11 UTC 2017


On Fri, Mar 10, 2017 at 04:52:17PM +0200, Alexander Bokovoy wrote:
> On pe, 10 maalis 2017, Ralph Böhme wrote:
> > Folks,
> > 
> > trying to build master on FreeBSD fails since the latest Python patches landed:
> > 
> > [3377/3570] Linking default/python/libsamba-python-samba4.so
> > default/source4/librpc/rpc/pyrpc_util_32.o: In function `pyrpc_import_union':
> > /usr/home/slow/git/samba/scratch/bin/../source4/librpc/rpc/pyrpc_util.c:402: undefined reference to `pytalloc_GenericObject_reference_ex'
> > /usr/home/slow/git/samba/scratch/bin/../source4/librpc/rpc/pyrpc_util.c:407: undefined reference to `pytalloc_GenericObject_reference_ex'
> > default/source4/librpc/rpc/pyrpc_util_32.o: In function `pyrpc_export_union':
> > /usr/home/slow/git/samba/scratch/bin/../source4/librpc/rpc/pyrpc_util.c:433: undefined reference to `pytalloc_GenericObject_reference_ex'
> > cc: error: linker command failed with exit code 1 (use -v to see invocation)
> > Waf: Leaving directory `/usr/home/slow/git/samba/scratch/bin'
> > Build failed:  -> task failed (err #1): 
> >         {task: cc_link modules_5.o,pyrpc_util_32.o,samba_python.empty_2.o,pyparam_util_9.o -> libsamba-python-samba4.so}
> > 
> > Am I missing something?
> Do you have system-provided talloc package? If so, please install system
> version of pytalloc as well.


hm, I do have --bundled-libraries=ALL, iirc this may not work under some
circumstances, but it seems to work here:

[slow at freebsd11 /usr/home/slow/git/samba/scratch]$ ldd bin/default/source3/smbd/smbd | grep talloc
        libtalloc.so.2 => /usr/home/slow/git/samba/scratch/bin/shared/private/libtalloc.so.2 (0x802697000)

Going back as far as 73180972db086c853ca7b65e0925388a1ec4e0bc fixes it.

-slow



More information about the samba-technical mailing list