It seems impossible to make lufs (lufs-0.9.7) on 64 bit arch (Linux asus 2.6.10 #1 Thu Jan 27 22:46:08 EST 2005 x86_64 x86_64 x86_64 GNU/Linux).
(btw, this is all in an attempt to NTFS writable... no matter what I do I get permission denied... 1) ntfs RW compiled into kernerl, mounted with umode=0 and mount point mode 777)
OUTPUT
--------------------------------
make[3]: Entering directory `/usr/src/lufs-0.9.7/filesystems/gnetfs'
/bin/sh ../../libtool --mode=link gcc -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o liblufs-gnetfs.la -rpath /usr/local/lib -version-info 1:0:0 xfer.lo search.lo vtree.lo gnetfs.lo libgnet.a -lpthread
*** Warning: Linking the shared library liblufs-gnetfs.la against the
*** static library libgnet.a is not portable!
gcc -shared .libs/xfer.o .libs/search.o .libs/vtree.o .libs/gnetfs.o libgnet.a -lpthread -Wl,-soname -Wl,liblufs-gnetfs.so.1 -o .libs/liblufs-gnetfs.so.1.0.0/usr/bin/ld: libgnet.a(gnet_engine.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
libgnet.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
------------------------------------
After some searching I fond a related gnet issue on 64 bit, with a response from someone who has fixed the problem.
> 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