https://bugzilla.mindrot.org/show_bug.cgi?id=1756
Summary: 5.4p1 fails to build on SuSE 10 64bit with openssl/1.0.0 due to missing -L flag Product: Portable OpenSSH Version: 5.4p1 Platform: amd64 OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Build system AssignedTo: unassigned-b...@mindrot.org ReportedBy: sebastian.wenz...@hp.com Hi there openssl/1.0.0 installs its libs to <rootdir>/lib64 This is not recognized by openssh. Though LD_LIBRARY_PATH and LD_RUN_PATH are set to include these, configure script fails to find the libs unless --with-cflags="-L/app/openssl/1.0.0/LMWP2/lib64" is used But this parameter is not passed to all gcc calls and compilation then fails with make[1]: Leaving directory `/local/scratch/openssh-5.4p1/openbsd-compat' gcc -o ssh-add ssh-add.o -L. -Lopenbsd-compat/ -L/app/openssl/1.0.0/LMWP2 -fstack-protector-all -lssh -lopenbsd-compat -lcrypto -ldl -lutil -lz -lnsl -lcrypt -lresolv ./libssh.a(cipher.o): In function `cipher_set_keyiv': /local/scratch/openssh-5.4p1/cipher.c:377: undefined reference to `EVP_CIPHER_CTX_iv_length' ./libssh.a(cipher.o): In function `cipher_get_keyiv': /local/scratch/openssh-5.4p1/cipher.c:343: undefined reference to `EVP_CIPHER_CTX_iv_length' ./libssh.a(cipher.o): In function `cipher_crypt': /local/scratch/openssh-5.4p1/cipher.c:281: undefined reference to `EVP_Cipher' ./libssh.a(cipher.o): In function `cipher_init': /local/scratch/openssh-5.4p1/cipher.c:252: undefined reference to `EVP_CIPHER_CTX_key_length' /local/scratch/openssh-5.4p1/cipher.c:267: undefined reference to `EVP_Cipher' ./libssh.a(cipher.o): In function `cipher_get_keyiv_len': /local/scratch/openssh-5.4p1/cipher.c:329: undefined reference to `EVP_CIPHER_CTX_iv_length' ./libssh.a(cipher-ctr.o): In function `ssh_aes_ctr': /local/scratch/openssh-5.4p1/cipher-ctr.c:70: undefined reference to `EVP_CIPHER_CTX_get_app_data' ./libssh.a(cipher-ctr.o): In function `ssh_aes_ctr_cleanup': /local/scratch/openssh-5.4p1/cipher-ctr.c:107: undefined reference to `EVP_CIPHER_CTX_get_app_data' /local/scratch/openssh-5.4p1/cipher-ctr.c:110: undefined reference to `EVP_CIPHER_CTX_set_app_data' ./libssh.a(cipher-ctr.o): In function `ssh_aes_ctr_init': /local/scratch/openssh-5.4p1/cipher-ctr.c:90: undefined reference to `EVP_CIPHER_CTX_get_app_data' /local/scratch/openssh-5.4p1/cipher-ctr.c:95: undefined reference to `EVP_CIPHER_CTX_key_length' /local/scratch/openssh-5.4p1/cipher-ctr.c:92: undefined reference to `EVP_CIPHER_CTX_set_app_data' ./libssh.a(cipher-ctr.o): In function `ssh_aes_ctr_iv': /local/scratch/openssh-5.4p1/cipher-ctr.c:120: undefined reference to `EVP_CIPHER_CTX_get_app_data' ./libssh.a(cipher-3des1.o): In function `ssh1_3des_cbc': /local/scratch/openssh-5.4p1/cipher-3des1.c:110: undefined reference to `EVP_CIPHER_CTX_get_app_data' /local/scratch/openssh-5.4p1/cipher-3des1.c:119: undefined reference to `EVP_Cipher' /local/scratch/openssh-5.4p1/cipher-3des1.c:120: undefined reference to `EVP_Cipher' /local/scratch/openssh-5.4p1/cipher-3des1.c:121: undefined reference to `EVP_Cipher' ./libssh.a(cipher-3des1.o): In function `ssh1_3des_cleanup': /local/scratch/openssh-5.4p1/cipher-3des1.c:132: undefined reference to `EVP_CIPHER_CTX_get_app_data' /local/scratch/openssh-5.4p1/cipher-3des1.c:138: undefined reference to `EVP_CIPHER_CTX_set_app_data' ./libssh.a(cipher-3des1.o): In function `ssh1_3des_init': /local/scratch/openssh-5.4p1/cipher-3des1.c:69: undefined reference to `EVP_CIPHER_CTX_get_app_data' /local/scratch/openssh-5.4p1/cipher-3des1.c:79: undefined reference to `EVP_CIPHER_CTX_key_length' /local/scratch/openssh-5.4p1/cipher-3des1.c:98: undefined reference to `EVP_CIPHER_CTX_set_app_data' /local/scratch/openssh-5.4p1/cipher-3des1.c:71: undefined reference to `EVP_CIPHER_CTX_set_app_data' ./libssh.a(cipher-3des1.o): In function `ssh1_3des_iv': /local/scratch/openssh-5.4p1/cipher-3des1.c:150: undefined reference to `EVP_CIPHER_CTX_get_app_data' collect2: ld returned 1 exit status As you can see gcc was passed -L/app/openssl/1.0.0/LMWP2 automatically by the configure script. cflags are not passed and the libraries located in lib64 are not honored nor recognized. Environment SLED10.1 64 gcc 4.4.3 ./configure --prefix=/app/openssh/5.4p1/LMWP2 --without-rsh --with-ssl-dir=/app/openssl/1.0.0/LMWP2 --sysconfdir=/app/openssh/5.4p1/LMWP2/etc --with-privsep-path=/app/openssh/5.4p1/LMWP2/empty --without-zlib-version-check --with-cflags="-L/app/openssl/1.0.0/LMWP2/lib64" openssl was configured with ./Configure --prefix=/app/openssl/1.0.0 shared linux-x86_64 BR Sebastian -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. _______________________________________________ openssh-bugs mailing list openssh-bugs@mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-bugs