Compile SSH static on Solaris 2.7 (64Bit)
Kevin Sindhu
kevin at tgivan.com
Wed Jan 9 05:51:27 EST 2002
Moin hgertges! hgertges at provinzial-online.de schrieb am Dienstag, den
08. Januar 2002:
> I like to compile ssh-3.0.2 on Solaris 2.7 with 64 Bit support in
> static mode. But I get a fatal error. The compilation with shared
> libraries is working very fine. Does anyone has ideas to compile
> OpenSSH cleanly in static mode?
As pointed out, this is not possible. Not that easily anyway...there
are many pro's and cons to this.
Also see http://gcc.gnu.org/ml/gcc-help/2001-10/msg00303.html
> gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o
> readconf.o clientloop.o -L. -Lopenbsd-compat/ -L/usr/local/lib
> -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket -lcrypto
> Undefined first referenced
> symbol in file
> gethostbyname
> openbsd-compat//libopenbsd-compat.a(fake-getaddrinfo.o) (symbol belongs to
> implicit dependency /usr/lib/libnsl.so.1)
> gethostbyaddr
> openbsd-compat//libopenbsd-compat.a(fake-getnameinfo.o) (symbol belongs to
> implicit dependency /usr/lib/libnsl.so.1)
> ld: fatal: Symbol referencing errors. No output written to ssh
> collect2: ld returned 1 exit status
Add -lnsl -lsocket here. It might break down the road though...
--
Kevin Sindhu <kevin at tgivan dot com>
Systems Engineer
TGI Technologies Inc.
107 E 3rd Avenue Tel: (604) 872-6676 Ext 321
Vancouver V5T 1C7 Fax: (604) 872-6601
British Columbia, Canada
More information about the openssh-unix-dev
mailing list