From:
[email protected]
Package: mlpcap
Severity: normal
Tags: patch
When building 'mlpcap' on amd64 I get the following error:
gcc -c -g -O2 -I'/usr/lib/ocaml/3.08' \
utils.c -o utils.o
ar rc libpcap_stubs.a pcap_stubs.o utils.o
ranlib libpcap_stubs.a
ocamlc -c pcap.mli
ocamlc -c pcap.ml
gcc -shared \
-o dllpcap_stubs.so pcap_stubs.o utils.o
/usr/bin/ld: pcap_stubs.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
pcap_stubs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [dllpcap_stubs.so] Error 1
make[2]: Leaving directory `/mlpcap-0.9'
With the attached patch 'mlpcap' can be compiled on amd64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/mlpcap-0.9/debian/rules ./debian/rules
--- ../tmp-orig/mlpcap-0.9/debian/rules 2004-08-18 14:01:32.314157361 +0200
+++ ./debian/rules 2004-08-18 14:01:29.180633729 +0200
@@ -10,7 +10,7 @@
configure-stamp: patch-stamp
dh_testdir
- ./configure --enable-examples --with-camlidl-lib=$(OCAML_LIBDIR)
+ CFLAGS=-fPIC ./configure --enable-examples --with-camlidl-lib=$(OCAML_LIBDIR)
touch configure-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)