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
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?
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.
i added your patch to cvs, thanks!