Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2004 10:34:41 -0800 (PST)
From:      "Greg J." <xcas@cox.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/62277: [PATCH] irc/xchat-systray-plugin: Fix build on amd64
Message-ID:  <200402021834.i12IYfEF059519@www.freebsd.org>
Resent-Message-ID: <200402021840.i12IeCRU017474@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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