First, Sun Studio 11 with OEM ld.  GNU CC 3.2.3 with GNU ld
is further down.  Any help would be welcome.  Both of these
compilation sets build everything else on my box just fine.

openssh-4.5p1 # echo $CC
/opt/SUNWspro/bin/cc
openssh-4.5p1 # echo $LD
/usr/ccs/bin/ld
openssh-4.5p1 # ./configure --prefix=/export/home --with-ssl-dir=/export/home --with-kerberos5=/export/k5 --with-pam
...
openssh-4.5p1 # make
...
make[1]: Entering directory `/export/home/src/openssh-4.5p1/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/src/openssh-4.5p1/openbsd-compat'
/usr/ccs/bin/ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/export/home/lib -R/export/home/lib -L/export/k5/lib -R/export/k5/lib -L/usr/afsws/lib -R/usr/afsws/lib -R/export/k5/lib -lssh -lopenbsd-compat -lresolv -lcrypto -lrt -lz -lsocket -lnsl -ldl -L/export/k5/lib -R/export/k5/lib -L/export/home/lib -R/export/home/lib -L/export/k5/lib -R/export/k5/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lsocket -lnsl -ldl
Undefined                       first referenced
 symbol                             in file
dup ssh.o (symbol belongs to implicit dependency /lib/libc.so.1) atoi ./libssh.a(canohost.o) (symbol belongs to implicit dependency /lib/libc.so.1) dup2 ssh.o (symbol belongs to implicit dependency /lib/libc.so.1) feof /export/home/lib/libcrypto.a(bss_file.o) (symbol belongs to implicit dependency /lib/libc.so.1) exit ssh.o (symbol belongs to implicit dependency /lib/libc.so.1) free ssh.o (symbol belongs to implicit dependency /lib/libc.so.1) kill ssh.o (symbol belongs to implicit dependency /lib/libc.so.1) open /export/home/lib/libcrypto.a(rand_unix.o) (symbol belongs to implicit dependency /lib/libc.so.1)
...
...and on and on...

============================= GCC =================================

openssh-4.5p1 # gcc --version
gcc (GCC) 3.2.3
openssh-4.5p1 # ld --version
GNU ld version 2.16.1
openssh-4.5p1 # echo $CC
/export/home/bin/gcc
openssh-4.5p1 # echo $LD
/export/home/bin/ld
openssh-4.5p1 #

...

/export/home/bin/ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/export/home/lib -R/export/home/lib -L/export/k5/lib -R/export/k5/lib -L/usr/afsws/lib -R/usr/afsws/lib -R/export/k5/lib -lssh -lopenbsd-compat -lresolv -lcrypto -lrt -lz -lsocket -lnsl -ldl -L/export/k5/lib -R/export/k5/lib -L/export/home/lib -R/export/home/lib -L/export/k5/lib -R/export/k5/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lsocket -lnsl -ldl /export/home/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000012800 ./libssh.a(packet.o): In function `set_newkeys': /export/home/src/openssh-4.5p1/packet.c:671: undefined reference to `__ashldi3'
make: *** [ssh] Error 1
openssh-4.5p1 #

Reply via email to