(Solaris) Linker flags in 2.5.1p1... (fwd)
Mark D. Baushke
mdb at juniper.net
Wed Feb 21 04:38:54 EST 2001
Hi Ben,
I agree with Volker Paulsen <paulsen at orbiteam.de>. Use of ucblib
should be depricated.
On Solaris 2.6, removing the '-L/usr/ucblib -R/usr/ucblib' still lets
everything link and work correctly. It would be well to remove this
extra bloat if possible. (I have not tried on Solaris 7 or Solaris 8.)
-- Mark
PS: An 'ldd' of the OpenSSH-2.5.1p1 executables shows that nothing is
being picked up out of the /usr/ucblib libraries in any case (a
default build ends up using --without-pam, but even forcing a
--with-pam shows the same result). So it is not an urgent problem to
address.
/usr/local/bin/scp:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/sftp:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/slogin:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/ssh:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/ssh-add:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/ssh-agent:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/ssh-keygen:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/bin/ssh-keyscan:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/local/openssh/sbin/sshd:
libz.so.1.1.3 => /usr/local/lib/libz.so.1.1.3
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
> Date: Tue, 20 Feb 2001 11:26:25 -0600 (CST)
> From: <mouring at etoh.eviladmin.org>
>
> Comments from the rest of the Solaris group?
>
> - Ben
>
> ---------- Forwarded message ----------
> Date: Tue, 20 Feb 2001 11:20:33 +0100
> From: Volker Paulsen <paulsen at orbiteam.de>
> To: mouring at etoh.eviladmin.org
> Subject: Linker flags in 2.5.1p1...
>
> While I'm compiling 2.5.1p1, I've got the following remarks:
>
> Host: sparc-sun-solaris2.7
> Compiler: cc
> Compiler flags: -fast -xarch=v7
> Preprocessor flags: -I/usr/local/include -I../include -I../include
> Linker flags: -L../lib/sol7/sparcv7 -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib -L../lib -R../lib -L../lib -R../lib
> Libraries: -lwrap -lz -lsocket -lnsl -lgen -lcrypto
>
> You should not ever use '-L/usr/ucblib -R/usr/ucblib', since Solaris BSD
> compat libraries are evil broken and AFIAK you don't need anything from
> /usr/ucblib.
>
> Ignore '-L../lib/sol7/sparcv7'; this is for my multi sparc platform
> build. Also ignore '-L../lib -R../lib', which is
> generated by the --with-ssl-dir=.. switch.
>
> Regards,
> --Volker
More information about the openssh-unix-dev
mailing list