From:
[email protected]
Package: kfish
Severity: normal
Tags: patch
When building 'kfish' on amd64 I get the following error:
g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux/3.4.1/crtbeginS.o .libs/kfish_panelapplet_la.all_cpp.o -L/usr/X11R6/lib -L/usr/lib -L/usr/share/qt3/lib /usr/lib/libkdeui.so /usr/lib/libkdecore.so /
usr/lib/libDCOP.so -ldl -lresolv -lutil /usr/lib/libart_lgpl_2.so /usr/lib/libidn.so /usr/lib/libkdefx.so /usr/lib/libqt-mt.so -lpng -lz -lXext -lSM -lICE -lpthread /usr/lib/libXrender.so -lX11 -L/usr/lib/gcc/x86_64-linux/3.4.1 -L/usr/lib/gcc/x86_64-
linux/3.4.1/../../../../lib -L/usr/lib/gcc/x86_64-linux/3.4.1/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s -lc /usr/lib/gcc/x86_64-linux/3.4.1/crtendS.o /usr/lib/gcc/x86_64-linux/3.4.1/../../../../lib/crtn.o -Wnon-virtual-dtor -Wno-
long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new
-Wl,-soname -Wl,kfish_panelapplet.so.1 -o .libs/kfish_panelapplet.so.1.0.0 /usr/bin/ld: .libs/kfish_panelapplet_la.all_cpp.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
.libs/kfish_panelapplet_la.all_cpp.o: could not read symbols: Bad value collect2: ld returned 1 exit status
make[3]: *** [kfish_panelapplet.la] Error 1
make[3]: Leaving directory `/kfish-2.01/src'
With the attached patch 'kfish' can be compiled on amd64.
Please add '-fPIC' to CXXFLAGS to fix this.
Regards
Andreas Jochens
diff -urN ../tmp-orig/kfish-2.01/debian/rules ./debian/rules
--- ../tmp-orig/kfish-2.01/debian/rules 2004-08-17 09:12:33.041923897 +0200
+++ ./debian/rules 2004-08-17 09:08:00.429367305 +0200
@@ -34,7 +34,7 @@
config.status: configure
dh_testdir
# Commands to configure the package.
- ./configure $(configkde)
+ CXXFLAGS=-fPIC ./configure $(configkde)
build: build-stamp
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)