[csw-maintainers] problems linking to libs with X11 dependencies
Philip Brown
phil at bolthole.com
Tue Feb 16 21:56:31 CET 2010
On Tue, Feb 16, 2010 at 10:13 AM, John Ellson <ellson at opencsw.org> wrote:
> I having problems rebuilding the graphviz plugins that use -lgs and -lgd
> because of an unresolved symbol in /lib/libX11.so.4, but I don't understand
> why /lib/libX11.so.4 is being pulled in? I think this is a new problem
> because graphviz built with the gd plugin a few weeks ago.
>...
I would guess you're correct about that.
> This fails on build8s with:
>
> /opt/studio/SOS11/SUNWspro/bin/cc -o conftest -xO3 -xarch=v8
> -I/opt/csw/X11/include -I/opt/csw/include -xarch=v8 -L/opt/csw/X11/lib
> -L/opt/csw/lib conftest.c -lgs -ldl -lm
> "conftest.c", line 5: warning: statement not reached
> Undefined first referenced
> symbol in file
> XSolarisIASetProcessInfo /lib/libX11.so.4
> ld: fatal: Symbol referencing errors. No output written to conftest
well, there's two things going on there:
1. something "hidden" would appear to be linking against libX11
2. since it is, and it appears to require the newer version, you'll
have to force -R/opt/csw/X11/lib, as well as that -L line.
More information about the maintainers
mailing list