Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80405 - gaim-otr 1.0.3 compile fail for amd64
Summary: gaim-otr 1.0.3 compile fail for amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gaim Bugs Crew
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 16:41 UTC by Will Briggs
Modified: 2005-02-08 04:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (1.0.3-amd64.patch,364 bytes, patch)
2005-02-08 02:54 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Will Briggs 2005-02-01 16:41:59 UTC
emerge gaim-otr fails with the following (unmasked with ~amd64 keyword)

>>> emerge (1 of 1) x11-plugins/gaim-otr-1.0.3 to /
>>> md5 src_uri ;-) gaim-otr-1.0.3.tar.gz
>>> Unpacking source...
>>> Unpacking gaim-otr-1.0.3.tar.gz to /var/tmp/portage/gaim-otr-1.0.3/work
>>> Source unpacked.
cc -O2 -pipe -march=athlon64 -g -Wall -I/usr/include/gaim `pkg-config --cflags glib-2.0 gtk+-2.0` -I/usr/include -fPIC   -c -o otr-plugin.o otr-plugin.c
cc -O2 -pipe -march=athlon64 -g -Wall -I/usr/include/gaim `pkg-config --cflags glib-2.0 gtk+-2.0` -I/usr/include -fPIC   -c -o ui.o ui.c
otr-plugin.c: In function `notify_cb':
otr-plugin.c:149: warning: 'gaimlevel' might be used uninitialized in this function
cc -O2 -pipe -march=athlon64 -g -Wall -I/usr/include/gaim `pkg-config --cflags glib-2.0 gtk+-2.0` -I/usr/include -fPIC   -c -o dialogs.o dialogs.c
cc -g -shared -module -avoid-version otr-plugin.o ui.o dialogs.o /usr/lib/libotr.a -o gaim-otr.so -lgcrypt
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libotr.a(privkey.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libotr.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [gaim-otr.so] Error 1
cc -g -shared -module -avoid-version otr-plugin.o ui.o dialogs.o /usr/lib/libotr.a -o gaim-otr.so -lgcrypt
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libotr.a(privkey.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libotr.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [gaim-otr.so] Error 1

!!! ERROR: x11-plugins/gaim-otr-1.0.3 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! Make failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.emerge gaim-otr (with ~amd64 keywowrd in package.keywords)
2.
3.

Actual Results:  
Nothing

Expected Results:  
Compiled
Comment 1 Don Seiler (RETIRED) gentoo-dev 2005-02-02 06:17:24 UTC
amd64 team can you look at the error and determine if there is an easy patch we can work in or is a deep upstream issue?
Comment 2 David Leverton 2005-02-08 02:54:32 UTC
Created attachment 50716 [details, diff]
patch

I came across this yesterday - the problem is that it tries to link the plugin
.so against the static, and hence non-PIC, version of libotr.  The attached
patch fixes the Makefile to used the shared version.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-02-08 04:00:58 UTC
i added your patch to cvs, thanks!