* [PATCH NFSIM]: Fix linker error on x86_64
@ 2005-01-06 14:07 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-01-06 14:07 UTC (permalink / raw)
To: Rusty Russell; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
Hi Rusty,
I have a couple of nfsim fixes for x86_64. Please review and apply the
correct ones.
Thanks,
Patrick
This patch fixes a linker error on x86_64 when linking core/fakesockopt.o:
gcc -Wmissing-prototypes -Wstrict-prototypes -Wunused -Wall -g -Wa,-W
-shared -Wl,-soname,fakesockopt.so.1 -nostdlib -ldl \
-o core/fakesockopt.so.1.0 core/fakesockopt.o core/utils.o
/usr/bin/ld: core/fakesockopt.o: relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC
core/fakesockopt.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [core/fakesockopt.so.1.0] Error 1
[-- Attachment #2: 1.diff --]
[-- Type: text/x-patch, Size: 494 bytes --]
Index: Makefile.in
===================================================================
--- Makefile.in (revision 3578)
+++ Makefile.in (working copy)
@@ -58,6 +58,12 @@
-o $@ $^
ln -sf core/fakesockopt.so.1.0 ./
+core/fakesockopt.o:
+ $(CC) $(CFLAGS) -c -fPIC core/fakesockopt.c -o core/fakesockopt.o
+
+core/utils.o:
+ $(CC) $(CFLAGS) -c -fPIC core/utils.c -o core/utils.o
+
core/usage.o: core/usage.c
core/usage.c: $(USAGE_SOURCES) doc/gen-usage
doc/gen-usage $(USAGE_SOURCES) >$@
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-06 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 14:07 [PATCH NFSIM]: Fix linker error on x86_64 Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.