RC1 compile/link error

purslow at sympatico.ca purslow at sympatico.ca
Mon Nov 15 07:03:41 CET 2004


041114 purslow at sympatico.ca wrote:
  ...
  gcc -g -O2 -o xfce-setting-show xfce_setting_show-xfce-setting-show.o -Wl,--export-dynamic  -L/usr/X11R6/lib -L/usr/local/lib /usr/local/lib/libxfce4mcs-client.so /usr/local/lib/libxfcegui4.so /usr/lib/libxfce4util.so /usr/lib/libstartup-notification-1.so -lSM -lICE -lX11 /usr/lib/libgtk-x11-2.0.so/usr/local/lib/libxfce4util.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
  /usr/local/lib/libxfcegui4.so: undefined reference to `xfce_rc_set_group'
  ...

i've had a closer look at the lines above & at the Makefile.
at this point, Gcc looks in  /usr/local/lib  for  libxfce4mcs-client.so
& for  libxfcegui4.so , but goes to  /usr/lib  for  libxfce4util.so ,
despite the fact that the latter already exists in  /usr/local/lib .
in the Makefile, there are  3  lines each setting out the library path
for LIBXFCE4MCS_CLIENT_LIBS , LIBXFCE4MCS_MANAGER_LIBS & LIBXFCEGUI4_LIBS ,
but none for  LIBXFCE4UTIL_LIBS : does this make the difference ?
somewhere in the back of my mind is a memory of another similar problem
involving a quite different package, which came down to a quirk in Gcc,
which switched library paths unexpectedly in the middle of a list.

whyever does Gcc start looking in  /usr/lib  as above ?

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow at chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto



More information about the Xfce4-dev mailing list