[ python-Bugs-877124 ] configure links unnecessary library libdl

SourceForge.net noreply at sourceforge.net
Sat Jan 17 18:58:33 EST 2004


Bugs item #877124, was opened at 2004-01-14 22:08
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877124&group_id=5470

Category: Installation
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Georg Schwarz (gschwarz)
Assigned to: Nobody/Anonymous (nobody)
Summary: configure links unnecessary library libdl

Initial Comment:
Python's configure adds -ldl to LIBS on irix5. This is not needed, and it produces compiler warnings that this lib did not resolve any symbols and can be removed. Possibly it's adding an unnecessary dependence on that lib.
If I understand the configure script correctly it checks whether the following code is compiled and linked correctly with -ldl:

char dlopen();

int main() {
dlopen()
; return 0; }

Now this code compiles and links on IRIX 5.3 without any specific library. With -ldl you get a warning

lorenz 12% cc x.c 
lorenz 13% cc x.c -ldl
ld:
The shared object /usr/lib/libdl.so did not resolve any symbols.
        You may want to remove it from your link line.
lorenz 14% cat x.c
char dlopen();

int main() {
dlopen()
; return 0; }
lorenz 15% 

probably the configure script should check for any output to stderr when doing the compiling/linking attempt with the sample code.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-01-18 00:58

Message:
Logged In: YES 
user_id=21627

Would you like to contribute a patch for that? configure
should check whether -ldl is needed to find dlopen.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877124&group_id=5470



More information about the Python-bugs-list mailing list