samba4 compile error

Andrew Bartlett abartlet at samba.org
Mon May 30 06:43:47 MDT 2011


On Mon, 2011-05-30 at 12:56 +0200, Martin Hochreiter wrote:
> Can somebody give me a hint please?
> 
> 
> cd /root/samba-master/
> ./configure.developer
> make
> 
> [...]
> default/source3/libsamba3core.so: undefined reference to `lp_clustering'
> default/source3/libsamba3core.so: undefined reference to `lp_lockdir'
> default/source3/libpassdb.so: undefined reference to `lp_private_dir'
> default/source3/libsamba3core.so: undefined reference to `lp_syslog_only'
> collect2: ld gab 1 als Ende-Status zurück
> Waf: Leaving directory `/root/samba-master/bin'
> Build failed:  -> task failed (err #1):
>      {task: cc_link regfio_36.o,reg_parse_prs_36.o,profiles_119.o -> 
> profiles.inst}
> make: ***  Fehler 1
> 
> 
> OS: CentOS 5.6 64bit

I am working to make this more reliable.  We have issues with the
internal dependency tree in the source3 parts of the tree. 

I have a patch in autobuild that starts to untangle this mess, adding
for example a dep from samba3core to our loadparm code.

The issue is that we cannot yet fully specify the dependencies as we
have loops - so we allow undefined systmols, and hope it all works out
(it doesn't sometimes).

Additionally this seems to interact poorly with the --as-needed linker
option.  We added this to help ensure we always compile on gentoo (they
set this by default), but during this interim stage of integrating the
source3 waf build, it may be harming us on more common platforms.  

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org



More information about the samba-technical mailing list