Subject: 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: port-vax
Date: 10/07/2000 13:15:26
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

/vol1/rhialto/destdir.vax/usr/lib is in my $DESTDIR, of course, and on
NFS.  If I remove all references to /vol1/rhialto/destdir.vax/usr/lib,
and write the references to -lgcc and -lc in full, then the link
succeeds, but all links are then static instead of dynamic.

Because I build from an older snapshot, I also get the following warning
for every (new) dynamic executable I start (typically things like cc,
cpp, cc1, as and ld):

/usr/libexec/ld.so: warning: libc.so.12.49: minor version >= 56 expected, using it anyway

Can this be a problem? In the somewhat-distant past (a few months ago),
it worked despite these warnings.

I also built from the same sources, with NetBSD/alpha 1.4.1, without
this problem.

-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.