ports/62277: [PATCH] irc/xchat-systray-plugin: Fix build on amd64

Greg J. xcas at cox.net
Mon Feb 2 18:41:21 UTC 2004


>Number:         62277
>Category:       ports
>Synopsis:       [PATCH] irc/xchat-systray-plugin: Fix build on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 02 10:40:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Greg J.
>Release:        FreeBSD/amd64 5.2-CURRENT
>Organization:
>Environment:
FreeBSD localhost.bsd-unix.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Feb  1 11:11:31 MST 2004     cas at localhost.bsd-unix.org:/usr/obj/usr/src/sys/CASX64  amd64
>Description:
cc -O -pipe  -Wall `pkg-config gtk+-2.0 --cflags`   -c -o systray.o systray.c
cc -O -pipe  -Wall `pkg-config gtk+-2.0 --cflags`   -c -o eggtrayicon.o eggtrayicon.c
cc `pkg-config gtk+-2.0 --libs` systray.o eggtrayicon.o -shared -o systray.so
/usr/bin/ld: systray.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
systray.o: could not read symbols: Bad value
gmake: *** [systray.so] Error 1
*** Error code 2

Stop in /usr/ports/irc/xchat-systray-plugin.
>How-To-Repeat:
Build xchat-systray-plugin without -fPIC on FreeBSD/amd64.
>Fix:
--- ports/irc/xchat-systray-plugin/Makefile.orig        Mon Feb  2 11:22:53 2004
+++ ports/irc/xchat-systray-plugin/Makefile     Mon Feb  2 11:22:08 2004
@@ -24,7 +24,7 @@
 USE_REINPLACE= yes
 
 post-patch:
-       @${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' ${WRKSRC}/Makefile
+       @${REINPLACE_CMD} -e 's|-O2|${CFLAGS} -fPIC|' ${WRKSRC}/Makefile
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/systray.so ${X11BASE}/lib/xchat/plugins/
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list