Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2004 13:50:22 -0500
From:      "James R. Van Artsalen" <james@jrv.org>
To:        Jeff Racine <jracine@maxwell.syr.edu>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: libwnck errors on amd64... guidance appreciated...
Message-ID:  <40759EEE.6030907@jrv.org>
In-Reply-To: <32A8B2CB12BFC84D8D11D872C787AA9A015E9AB4@EXCHANGE.forest.maxwell.syr.edu>
References:  <32A8B2CB12BFC84D8D11D872C787AA9A015E9AB4@EXCHANGE.forest.maxwell.syr.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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,libwnck-1.so.13 -Wl,-retain-symbols-file -Wl,.libs/libwnck-1.exp -o .libs/libwnck-1.so.13
>
>/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 libwnck-1.so 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40759EEE.6030907>