[Bug 307] New: configure fails to add -ldl (RedHat specfile)

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Jun 28 00:26:14 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=307

           Summary: configure fails to add -ldl (RedHat specfile)
           Product: Portable OpenSSH
           Version: -current
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: mindrot at downhill.at.eu.org


Hello,
Rebuilding openssh-3.4p1-1.src.rpm on both RedHat 6.2 and RedHat 7.3 fails:

----------------------------------
i386-redhat-linux-gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o -L. -Lopenbsd-compat/  -lssh 
-lopenbsd-compat -lutil -lz -lnsl /usr/lib/libcrypto.a
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0x8a): undefined reference to `dlopen'
dso_dlfcn.o(.text+0xe8): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.o(.text+0x18c): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.o(.text+0x239): undefined reference to `dlsym'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.o(.text+0x309): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.46927 (%build)
----------------------------------

I do not know why configure does not add -ldl to LD_FLAGS, I _have_ installed glibc-devel, and
-----------------------
ls -l /lib/libdl* /usr/lib/libdl*
-rwxr-xr-x    1 root     root        11728 Jun 18 16:13 /lib/libdl-2.2.5.so
lrwxrwxrwx    1 root     root           14 Jun 27 13:54 /lib/libdl.so.2 -> libdl-2.2.5.so
-rw-r--r--    1 root     root         6820 Jun 18 16:13 /usr/lib/libdl.a
lrwxrwxrwx    1 root     root           20 Jun 27 13:55 /usr/lib/libdl.so -> ../../lib/libdl.so.2
-----------------------

Adding --with-libs=-ldl to the call of configure hotfixes the problem, but imvvvvho ./configure is broken.
                thanks, cu andreas



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list