building modules on x86_64
Jelmer Vernooij
jelmer at samba.org
Mon Nov 3 00:30:56 GMT 2003
On Mon, Nov 03, 2003 at 12:31:24AM +0100, Guenther Deschner wrote about 'building modules on x86_64':
> 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?
Yes, that appears to be the correct way to fix this. I'm not sure
whether we compile all modules with -fPIC already, but we should.
Jelmer
> 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
--
Jelmer Vernooij <jelmer at nl.linux.org> - http://jelmer.vernstok.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20031103/d0dc30e5/attachment.bin
More information about the samba-technical
mailing list