Bad Link flag?

Alexander Bokovoy ab at samba.org
Thu Sep 15 23:12:21 MDT 2011


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.
-- 
/ Alexander Bokovoy


More information about the samba-technical mailing list