Bug 2030 - build of 6.0p1 fails @ "/usr/bin/ld: unrecognized option '-Wl,-rpath,/usr/local/ssl/lib64"
Summary: build of 6.0p1 fails @ "/usr/bin/ld: unrecognized option '-Wl,-rpath,/usr/loc...
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 6.0p1
Hardware: All Linux
: P5 major
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 08:47 AEST by pgn14
Modified: 2015-08-11 23:05 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pgn14 2012-08-06 08:47:16 AEST
i'm upgrading to a build of

	openssh-6.0p1.tar.gz

on

	linux/64

with

	gcc version 4.7.1 20120704 [gcc-4_7-branch revision 189248] (SUSE Linux)

against a non-distro version of

	OpenSSL 1.0.1c 10 May 2012

installed at

	/usr/local/ssl

exec of

	./configure \
	 --prefix="/usr/local" \
	 --sysconfdir="/usr/local/etc/ssh" \
	 --with-ssl-dir="/usr/local/ssl" \
	 --with-tcp-wrappers \
	 --with-kerberos5=/usr/lib/mit \
	 --with-md5-passwords \
	 --with-xauth=/usr/bin/xauth

	---------------------------------------------------------
	OpenSSH has been configured with the following options:
	                     User binaries: /usr/local/bin
	                   System binaries: /usr/local/sbin
	               Configuration files: /usr/local/etc/ssh
	                   Askpass program: /usr/local/lib/ssh-askpass
	                      Manual pages: /usr/local/share/man/manX
	                          PID file: /var/run
	  Privilege separation chroot path: /var/empty
	            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
	                    Manpage format: doc
	                       PAM support: no
	                   OSF SIA support: no
	                 KerberosV support: yes
	                   SELinux support: no
	                 Smartcard support:
	                     S/KEY support: no
	              TCP Wrappers support: yes
	              MD5 password support: yes
	                   libedit support: no
	  Solaris process contract support: no
	           Solaris project support: no
	       IP address in $DISPLAY hack: no
	           Translate v4 in v6 hack: yes
	                  BSD Auth support: no
	              Random number source: OpenSSL internal ONLY
	             Privsep sandbox style: rlimit

	              Host: x86_64-unknown-linux-gnu
	          Compiler: /usr/bin/gcc-4.7
	    Compiler flags: -O2 -march=amdfam10 -mtune=amdfam10 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -fstack-protector-all
	Preprocessor flags: -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/ssl/include   -I/usr/include
	      Linker flags: -L/usr/local/ssl/lib -L/usr/local/ssl/lib   -Wl,-rpath,/usr/local/ssl/lib   -lssl -lcrypto   -fstack-protector-all
	         Libraries: -lcrypto -ldl -lutil -lz -lnsl  -lcrypt -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
	         +for sshd:  -lwrap
	---------------------------------------------------------

then

	make
	...
	/usr/bin/gcc-4.7 -O2 -march=amdfam10 -mtune=amdfam10 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -fstack-protector-all  -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/ssl/include   -I/usr/include  -DSSHDIR=\"/usr/local/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/lib/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/lib/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/lib/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/lib/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"  -DHAVE_CONFIG_H -c roaming_client.c
	/usr/bin/ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o roaming_common.o roaming_client.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib64 -L/usr/local/ssl/lib64   -Wl,-rpath,/usr/local/ssl/lib64   -lssl -lcrypto   -fstack-protector-all -lssh -lopenbsd-compat  -lcrypto -ldl -lutil -lz -lnsl  -lcrypt -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
	/usr/bin/ld: unrecognized option '-Wl,-rpath,/usr/local/ssl/lib64'
	/usr/bin/ld: use the --help option for usage information
	make: *** [ssh] Error 1
Comment 1 pgn14 2012-08-06 10:55:12 AEST
echo $LD
    /usr/bin/ld
unset LD

fixes the problem.
Comment 2 Damien Miller 2015-08-11 23:05:34 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1