libwnck errors on amd64... guidance appreciated...

James R. Van Artsalen james at
Thu Apr 8 12:00:47 PDT 2004

Jeff Racine wrote:

>Here is the relevant part of the failure (uname, dmesg etc. to follow), and thanks ever so much for your time and efforts.
>cc -shared  -Wl,--rpath -Wl,/usr/X11R6/lib  application.lo class-group.lo pager.lo screen.lo tasklist.lo util.lo window.lo window-action-menu.lo window-menu.lo workspace.lo xutils.lo wnck-enum-types.lo wnck-marshal.lo pager-accessible.lo pager-accessible-factory.lo workspace-accessible.lo workspace-accessible-factory.lo  -L/usr/local/lib -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXcursor -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv -lstartup-notification-1 -lSM -lICE -lX11 -lXRes -lXext  -Wl,-soname -Wl, -Wl,-retain-symbols-file -Wl,.libs/libwnck-1.exp -o .libs/
>/usr/bin/ld: /usr/X11R6/lib/libXRes.a(XRes.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC

The immediate problem is that this command is trying to build shared 
library but is trying to link static libXRes.a into it.  
That doesn't work: shared libs must be composed of only shared objects, 
not static objects.

The real question is why /usr/ports/x11/libXres built a static lib 
instead of a shared lib.  You might rebuild libXres, under script(1), 
and see if you can spot anything suspicious when Configure runs to 
suggest why it's not building a shared lib.

More information about the freebsd-amd64 mailing list