building modules on x86_64
abartlet at samba.org
Mon Nov 3 00:34:23 GMT 2003
On Mon, Nov 03, 2003 at 01:30:56AM +0100, Jelmer Vernooij wrote:
> 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.
Doens't configure figure out the 'right' way to build a .so? -fPIC is
good for GCC, but what about everything else?
More information about the samba-technical