building modules on x86_64

Guenther Deschner gd at suse.de
Sun Nov 2 23:31:24 GMT 2003


hi,

while building samba 3_0 cvs on x86_64 my build stops in the examples/VFS -
section:

Linking shadow_copy_test.so
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/../../../../x86_64-suse-linux/bin/ld:
shadow_copy_test.o: relocation R_X86_64_32 can not be used when making a
shared object; recompile with -fPIC

is this the correct fix? 

thanks,
guenther

--- examples/VFS/Makefile.in    2003-10-31 23:17:09.000000000 +0000
+++ examples/VFS/Makefile.in    2003-10-31 23:17:17.000000000 +0000
@@ -7,7 +7,7 @@
 SAMBA_SOURCE   = @SAMBA_SOURCE@
 SHLIBEXT       = @SHLIBEXT@
 OBJEXT         = @OBJEXT@ 
-FLAGS          =  $(CFLAGS) -Iinclude -I$(SAMBA_SOURCE)/include
-I$(SAMBA_SOURCE)/ubiqx -I$(SAMBA_SOURCE)/smbwrapper  -I. $(CPPFLAGS)
-I$(SAMBA_SOURCE)
+FLAGS          =  $(CFLAGS) -Iinclude -I$(SAMBA_SOURCE)/include
-I$(SAMBA_SOURCE)/ubiqx -I$(SAMBA_SOURCE)/smbwrapper  -I. $(CPPFLAGS)
-I$(SAMBA_SOURCE) -fPIC
 
 
 prefix         = @prefix@

-- 
Guenther Deschner                                         gd at suse.de
SuSE Linux AG                                        GnuPG: 8EE11688
Berliner Str. 27                      phone:  +49 (0) 30 / 430944778
D-13507 Berlin                           fax:  +49 (0) 30 / 43732804
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20031103/9c4bea1c/attachment.bin


More information about the samba-technical mailing list