Alexander Farber (EED)
2001-Jul-13 11:14 UTC
Solaris 2.6: Undefined symbol seed_rng - solution (-lssh -lopenbsd-compat -lssh)
Hi,> maas34:openssh-2.9p2 {172} make > gcc -o ssh-keyscan ssh-keyscan.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen -lcrypto > Undefined first referenced > symbol in file > seed_rng openbsd-compat//libopenbsd-compat.a(bsd-arc4random.o) > ld: fatal: Symbol referencing errors. No output written to ssh-keyscan > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `ssh-keyscan'I haven't got any replies from this list, but an ingenious colleague of me has helped: the solution is to use "-lssh" twice (and I had to use it for the ssh, sftp-server, sftp and scp binaries): maas34:openssh-2.9p2 {181} gcc -o ssh-keyscan ssh-keyscan.o -L. -Lopenbsd-compat/ \ ? -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks \ ? -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh \ ? -lopenbsd-compat -lssh -lz -lsocket -lnsl -lgen -lcrypto gcc -o scp scp.o scp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen -lcrypto Undefined first referenced symbol in file seed_rng openbsd-compat//libopenbsd-compat.a(bsd-arc4random.o) ld: fatal: Symbol referencing errors. No output written to scp collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `scp' maas34:openssh-2.9p2 {183} gcc -o scp scp.o scp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lssh -lz -lsocket -lnsl -lgen -lcrypto gcc -o sftp-server sftp-server.o sftp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen -lcrypto Undefined first referenced symbol in file seed_rng openbsd-compat//libopenbsd-compat.a(bsd-arc4random.o) ld: fatal: Symbol referencing errors. No output written to sftp-server collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `sftp-server' maas34:openssh-2.9p2 {185} gcc -o sftp-server sftp-server.o sftp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lssh -lz -lsocket -lnsl -lgen -lcrypto gcc -o sftp sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o scp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lnsl -lgen -lcrypto Undefined first referenced symbol in file seed_rng openbsd-compat//libopenbsd-compat.a(bsd-arc4random.o) ld: fatal: Symbol referencing errors. No output written to sftp collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `sftp' maas34:openssh-2.9p2 {187} gcc -o sftp sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o scp-common.o -L. -Lopenbsd-compat/ -R/home/eedalf/lib -L/home/eedalf/lib -L/home/eedalf/lib -ldsocks -L/opt/local/zlib-1.1.2/lib -L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lssh -lz -lsocket -lnsl -lgen -lcrypto Regards Alex