Subject: Re: strange ld error: destdir.vax/usr/lib: read_file_symbols(header): premature EOF
To: None <port-vax@netbsd.org, current-users@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: current-users
Date: 10/08/2000 15:29:56
On Sat 07 Oct 2000 at 13:15:26 +0200, Olaf Seibert wrote:
> I am building a recent sup of the world, and each link command fails
> like this:
> 
> dependall ===> bin/test
> ...
> /vol1/rhialto/destdir.vax/usr/bin/cc  -static -o test -nostdlib -Wl,-rpath-link,/vol1/rhialto/destdir.vax/usr/lib /vol1/rhialto/destdir.vax/usr/lib/crt0.o  test.o  -L/vol1/rhialto/destdir.vax/usr/lib -lgcc -lc -lgcc 
> ...
> ld: /vol1/rhialto/destdir.vax/usr/lib: read_file_symbols(header): premature EOF
> collect2: ld returned 1 exit status

Installing a new ld and libc.so.12.62.1 did not help. But to make the
link succeed it seemed to be enough to remove the
-Wl,-rpath-link,/vol1/rhialto/destdir.vax/usr/lib.

If it is indeed true that the ld option -rpath-link fails on NFS-mounted
directories (which is my current suspicion), then this would certainly
be a showstopper for 1.5...

Note: VAX is still a.out.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder    -- Ah only did well at school
\X/ land.nl       -- tae git intae an O level class tae git away fae Begbie.
Hi! I am a .signature virus. Copy me into your .signature to help me spread.