LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2005, 09:59 PM   #1
ntisithoj
LQ Newbie
 
Registered: Jan 2005
Location: new york city
Distribution: FC3
Posts: 3

Rep: Reputation: 0
LUFS on 86_64 link error


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10 and LUFS mounting system saurya_s Linux - Software 1 03-23-2005 01:54 AM
FC3 + captive + lufs Horos23 Linux - Software 0 01-27-2005 08:11 AM
Lufs art3mis Linux - Newbie 0 01-25-2005 11:43 AM
LUFS on Fedora Core 1 - 2.4.22-1.2174 spectrumver1 Fedora 1 04-29-2004 09:18 PM
Lufs installation error in Mandrake 10 saurya_s Linux - Software 0 04-27-2004 05:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration