bugzilla-daemon at mindrot.org
2003-Sep-23 17:18 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 Summary: ReliantUnix: -ldl missing when libcrypto is a shared object Product: Portable OpenSSH Version: -current Platform: MIPS OS/Version: other Status: NEW Severity: normal Priority: P3 Component: Build system AssignedTo: openssh-bugs at mindrot.org ReportedBy: Robert.Dahlem at siemens.com When libcrypto is only available as a shared object, configure fails to detect libcrypto ("Can't find recent OpenSSL libcrypto") under ReliantUNIX, because dlsym() is not in libc and libdl is not searched. [ReliantUNIX weirdness: dlopen() is in libc while dlsym() is in libdl] Trivial fix would be to add LIBS="$LIBS -ldl" in case of *-sni-sysv* More clever would be to try to compile with "-lcrypto" and if that doesn't work then try to compile with "-lcrypto -ldl". But that's way beyond my autoconf expertise. :-) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Sep-23 17:19 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 ------- Additional Comments From Robert.Dahlem at siemens.com 2003-09-24 03:19 ------- Created an attachment (id=462) --> (http://bugzilla.mindrot.org/attachment.cgi?id=462&action=view) the TRIVIAL fix ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Sep-24 10:22 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 ------- Additional Comments From dtucker at zip.com.au 2003-09-24 20:22 ------- Is there any harm in using -ldl when building with a static libcrypto? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Sep-24 22:05 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 ------- Additional Comments From Robert.Dahlem at siemens.com 2003-09-25 08:05 ------- Define "harm" :-) I tried the famous "Hello World!\n" program: $ cc hello.c -o hello $ ldd hello /usr/lib/libc.so $ cc hello.c -o hello -ld $ ldd hello /usr/lib/libdl.so /usr/lib/libc.so What you can see is that the dynamic linker honors -ldl by searching libdl.so for any unresolved externals each time one invokes the program. It might even map it into the processes memory. If you consider this "harm" then yes, there is harm in using -ldl when building with a static libcrypto. Personally I consider it harm increasing overall system load by building OpenSSH with a static libcrypto, that's why I built libcrypto as shared object. Name it attitude. :-) I didn't want to call it nonsense to use my trivial patch and always build with -ldl under ReliantUnix (I need it anyway). I just wanted to say I would consider it clever to avoid a superfluous -ldl when it's just that: superfluous. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Sep-25 11:03 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 ------- Additional Comments From dtucker at zip.com.au 2003-09-25 21:03 ------- OK then, sounds like it's not worth the hassle of auto-detecting the need for -ldl. Any objections to patch id #462? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-07 10:37 UTC
[Bug 710] ReliantUnix: -ldl missing when libcrypto is a shared object
http://bugzilla.mindrot.org/show_bug.cgi?id=710 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From dtucker at zip.com.au 2003-10-07 20:37 ------- Similar patch (using AC_CHECK_LIB) applied, thanks. Please try tomorrow's snapshot to see if it works for you. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Possibly Parallel Threads
- [PATCH] some patches for Fujitsu-Siemens ReliantUNIX, minor fixes and XXXes
- sshd 3.9p1 under Reliant Unix 5.45: getpeername: Operation not supported on transport endpoint
- openssh-2.9p2 Config - undefined references
- Problem compiling openssh-4.3p2 w/ openssl.0.9.8a on FC3
- [Bug 307] New: configure fails to add -ldl (RedHat specfile)