mouring at etoh.eviladmin.org
2001-Feb-20 17:26 UTC
(Solaris) Linker flags in 2.5.1p1... (fwd)
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
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
everything compiles and runs on my solaris 7 system without 'em... (doesn't actually fix anything though, afaict :/ ) devon ----- Original Message ----- From: <mouring at etoh.eviladmin.org> To: <openssh-unix-dev at mindrot.org> Sent: Tuesday, February 20, 2001 9:26 AM Subject: (Solaris) Linker flags in 2.5.1p1... (fwd)> > > 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 > Linkerflags: -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 > > >
On 20-Feb-01 at 17:26:25 mouring at etoh.eviladmin.org wrote:> 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. >As far as I am aware, this is true. Under Solaris 8 (10/00) it seems to work okay without them. John. ------------------------------------------------------------------------ John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: jhorne at plymouth.ac.uk PGP key available from public key servers
mouring at etoh.eviladmin.org
2001-Feb-20 18:29 UTC
(Solaris) Linker flags in 2.5.1p1... (fwd)
- (bal) Removed -L/usr/ucblib -R/usr/ucblib for Solaris platform. Applied. Thanks, Volker. - Ben On Tue, 20 Feb 2001 mouring at etoh.eviladmin.org wrote:> > > 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 > >