Bug 15

Summary: make error: ./libssh.a: unknown file type
Product: Portable OpenSSH Reporter: Amihai <amihai>
Component: Build systemAssignee: Kevin Steves <stevesk>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: Solaris   

Description Amihai 2001-11-12 00:53:13 AEDT
While doing make, at the linking stage of making "ssh" execfile I got the errors
below. (I use gcc version 2.95.2).

ld: fatal: file ./libssh.a: unknown file type
ld: fatal: library -lssh: not found
ld: fatal: file openbsd-compat//libopenbsd-compat.a: unknown file type
ld: fatal: library -lopenbsd-compat: not found
ld: fatal: File processing errors. No output written to ssh
collect2: ld returned 1 exit status
make: *** [ssh] Error 1

Thanks,
Amihai
Comment 1 Amihai 2001-11-12 01:15:21 AEDT
/usr/local/bin/gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.
o readconf.o clientloop.o -L. -Lopenbsd-compat/ -R/usr/local/gnu/lib -L/usr/loca
l/gnu/lib  -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket
 -lnsl  -lcrypto 
ld: fatal: file ./libssh.a: unknown file type
ld: fatal: library -lssh: not found
ld: fatal: file openbsd-compat//libopenbsd-compat.a: unknown file type
ld: fatal: library -lopenbsd-compat: not found
ld: fatal: File processing errors. No output written to ssh
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
Comment 2 Damien Miller 2001-11-12 10:31:01 AEDT
What OS version? How was libssh.a built earlier in the build?
Comment 3 Amihai 2001-11-12 18:24:37 AEDT
The OS is Solaris 8 on a Sun-sparc computer.
libssh.a was built by the "make" process of openssh-3.0p1.
Please note that doing "ar t libssh.a" gives a proper list of objects.
Comment 4 Kevin Steves 2002-01-06 12:28:21 AEDT
if ld -L. -lssh fails you need to figure out what is wrong
with libssh.a or ld.
Comment 5 Kevin Steves 2002-03-10 03:29:26 AEDT
can't dup
Comment 6 Damien Miller 2004-04-14 12:24:17 AEST
Mass change of RESOLVED bugs to CLOSED