Re: Multiple definitions in libX11.dylib
Re: Multiple definitions in libX11.dylib
- Subject: Re: Multiple definitions in libX11.dylib
- From: Olivier Kaloudoff <email@hidden>
- Date: Sun, 14 Mar 2004 22:28:04 +0100 (CET)
On Sat, 13 Mar 2004, robert delius royar wrote:
>With some libtool managed projects that have yet to be ported to OS X (i.e.
>neither fink nor darwinports), I will see multiple warnings such as this:
> ld: warning multiple definitions of symbol _XauFileName
> /usr/X11R6/lib/libX11.6.2.dylib(AuFileName.o) definition of _XauFileName
> /usr/X11R6/lib/libX11.dylib(AuFileName.o) definition of _XauFileName
>It appears that enough of these warnings witl cause the link to fail. The
>problem arises from libX11.dylib being a simple symbolic link to
>libX11.6.2.dylib. The excerpt comes from a compilation that had these
>warnings for every variable referenced in every library it tried to pull in
>from the directory /usr/X11R6/lib/ (where there was a sym link involved).
>
>What command flags to ld could I pass it that would either force it to
>ignore the symlink libraries or choose the first of the values it finds and
>go forward?
Hi Robert,
seems that the following flag was designed for you:
When the static link editor is creating a two-level namespace image
and a there is a multiply defined symbol from dynamic library then
that generates a multiply defined symbol warning (by default), where
the treatment of this warning can be changed with the -multiply_defined flag.
(extract from ld manual).
Regards,
Olivier
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.