[csw-maintainers] problems linking to libs with X11 dependencies

John Ellson ellson at opencsw.org
Tue Feb 16 19:13:41 CET 2010


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.

The configure test looks like this:

     conftest: conftest.c
         /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

and conftest.c contains:

     int main ()
     {
         return main ();
         ;
         return 0;
     }


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



Help please?


John


More information about the maintainers mailing list