-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 mmarion@qualcomm.com wrote: > On 22 Nov, Mike Waychison wrote: > > >>I'm pleased to announce the release of AutofsNG 0.3.1. > > > Has anyone successfully built on an amd64 host? > > On a 64bit, sles9 host, I get: > > make[1]: Entering directory > `/local/mnt/workspace/builds/autofsng-0.3.1/modules' > gcc -shared -O3 -fomit-frame-pointer -Wall -I../include -fpic > -DAUTOFS_LIB_DIR=\"/lib/autofsng\" -o map_hosts.so map_hosts.c -lrpcsvc > /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: > /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../lib64/librpcsvc.a(xmount.o): > relocation R_X86_64_32 can not be used when making a shared object; recompile > with -fPIC > /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../lib64/librpcsvc.a: > could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [map_hosts.so] Error 1 > > Tried changing flags in Makefile from -fpic to -fPIC and it didn't help. > > Compile works fine on a i686 Suse 9.2 install. > I've attached a patch I will push if it works for you. What it does is generate the xdr routines in the autofsng build instead of trying to link in librpcsvc. The problem you are seeing is probably due to that bit of glibc not being compiled with -fPIC, which means the .a in question can't be linked into a .so on x86-64. Another heads up for trying out autofsng on x86-64: I haven't yet added the system call table entry for sys_mountfd. If anyone gets to it before I do, patches are welcome ;) - -- Mike Waychison Sun Microsystems, Inc. 1 (650) 352-5299 voice 1 (416) 202-8336 voice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBtUHvdQs4kOxk3/MRAjZRAKCBbQ1SGgv0GYVy+vFQ06+2s79NxACdFgsG RXrzAv53caHfRHXkI0PQWBM= =xr9S -----END PGP SIGNATURE-----