This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linker error


Hi,

I'm trying to build bash for i586, so I have built glibc for i586
already and am trying to link bash with these libraries, in /lib/i586.

When I set up the LDFLAGS variable:
export LDFLAGS="-L/lib/i586"
the configure script tells me the C compiler cannot create executables.
In the config.log I can see this:
...
configure:2454: gcc-4.2 -mtune=i586   -L/lib/i586 conftest.c  >&5
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function
`_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function
`_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
...

That's bad. So I tried clearing the LDFLAGS var, but setting the
LD_RUN_PATH variable, as said in the ld manpages (well, I tried both
clearing LDFLAGS out and having it set along with LD_RUN_PATH). The
configure script runs fine, no problem. But running "make" gives me
Segmentation fault.

ANY help would be much appreciated. 

Dominik Taborsky


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]