Bad Link flag?

simo idra at samba.org
Fri Sep 16 06:56:47 MDT 2011


On Fri, 2011-09-16 at 08:12 +0300, Alexander Bokovoy wrote:
> On Fri, Sep 16, 2011 at 03:37, Andrew Bartlett <abartlet at samba.org> wrote:
> > Yes, it is entirely possible your platform is not permitting these to
> > link with the undefined symbols that are unfortunately present in the
> > waf build.  We have been tough this before, and removed as many as were
> > practical, but there is a lot of work still to do, due to a mutual
> > dependency between the registry and loadparm code, and due to the need
> > to fully specify dependencies in winbind and idmap.
> >
> > It would be useful to know what the difference is between Mandriva
> > (failing for you) and Fedora/Ubuntu (both of which I know work).
> Could you (Ryushu) show output of gcc -dumpspecs?
> 
> It is probable that Mandriva's ld defaults to --as-needed and thus
> requires to specify objects in correct order for dynamic linking
> (similar to static one). This could be verified with
> -Wl,--no-as-needed passed in linker flags.

Actually Fedora also has a policy of using --as-needed by default, so I
would be surprised if we can build in Fedora but not in Mandriva because
of that, unless we disable it in Fedora, which is bad and should be
fixed then.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list