Bug 1154 - unable to compile new version
Summary: unable to compile new version
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 4.3p2
Hardware: ix86 Linux
: P2 critical
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-13 07:20 AEDT by Alberto Colosi
Modified: 2006-10-07 11:44 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Colosi 2006-02-13 07:20:24 AEDT
Conf line: ./configure --with-ssl-dir=/usr/local/ssl/ --with-pam --with-md5-passwords --with-tcp-wrappers --with-zlib=/usr/local/lib

ZLIB 1.2.3
OpenSSL 0.9.8a
System: RedHat 9

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Linux host 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux




/usr/bin/ar rv libssh.a acss.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o compat.o compress.o crc32.o deattack.o fatal.o hostfile.o log.o match.o moduli.o nchan.o packet.o readpass.o rsa.o ttymodes.o xmalloc.o atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o kexgex.o kexdhc.o kexgexc.o scard.o msg.o progressmeter.o dns.o entropy.o scard-opensc.o gss-genr.o
a - acss.o
a - authfd.o
a - authfile.o
a - bufaux.o
a - buffer.o
a - canohost.o
a - channels.o
a - cipher.o
a - cipher-acss.o
a - cipher-aes.o
a - cipher-bf1.o
a - cipher-ctr.o
a - cipher-3des1.o
a - cleanup.o
a - compat.o
a - compress.o
a - crc32.o
a - deattack.o
a - fatal.o
a - hostfile.o
a - log.o
a - match.o
a - moduli.o
a - nchan.o
a - packet.o
a - readpass.o
a - rsa.o
a - ttymodes.o
a - xmalloc.o
a - atomicio.o
a - key.o
a - dispatch.o
a - kex.o
a - mac.o
a - uidswap.o
a - uuencode.o
a - misc.o
a - monitor_fdpass.o
a - rijndael.o
a - ssh-dss.o
a - ssh-rsa.o
a - dh.o
a - kexdh.o
a - kexgex.o
a - kexdhc.o
a - kexgexc.o
a - scard.o
a - msg.o
a - progressmeter.o
a - dns.o
a - entropy.o
a - scard-opensc.o
a - gss-genr.o
ranlib libssh.a
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c ssh.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c readconf.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c clientloop.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshtty.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect1.c
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99  -I. -I. -I/usr/local/ssl//include -I/usr/local/lib  -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect2.c
gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl//lib -L/usr/local/lib  -lssh -lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl -lcrypt
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x35): In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x95): In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0xbc): In function `dlfcn_load':
: undefined reference to `dlerror'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x147): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x172): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x237): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x262): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/ssl//lib/libcrypto.a(dso_dlfcn.o)(.text+0x51b): In function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
Comment 1 Alberto Colosi 2006-02-13 07:23:24 AEDT
With openssh-4.2p1 I had no problems but I was not specify a ZLIB Path.
Comment 2 Darren Tucker 2006-02-13 09:10:58 AEDT
It looks like OpenSSL (at least 0.9.8a) now require dynamic module support even when built as a static library.  I don't know if this is intended or not.

You can either build with an earlier version of OpenSSL, or configure OpenSSH as "./configure --with-libs=-ldl".
Comment 3 Alberto Colosi 2006-02-13 21:39:57 AEDT
What's the difference between the two chose?

I'm going to use the "--with-libs=-ldl" chose becouse in that way I'll have the latest OpenSSH and the latest OpenSSL. If was you to chose?.



P.S. hot to take away from the ticket card the flag:
Portable OpenSSH Bugs Access 
Comment 4 Darren Tucker 2006-02-14 07:15:08 AEDT
(In reply to comment #3)
> What's the difference between the two chose?

If you don't have any reason for picking one over the other then just do whatever's easiest for you.

> P.S. hot to take away from the ticket card the flag:
> Portable OpenSSH Bugs Access 

I'll remove it.
Comment 5 Darren Tucker 2006-10-07 11:44:27 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.