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
/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
What OS version? How was libssh.a built earlier in the build?
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.
if ld -L. -lssh fails you need to figure out what is wrong with libssh.a or ld.
can't dup
Mass change of RESOLVED bugs to CLOSED