Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure links unnecessary library libdl #39821

Closed
gschwarz mannequin opened this issue Jan 14, 2004 · 5 comments
Closed

configure links unnecessary library libdl #39821

gschwarz mannequin opened this issue Jan 14, 2004 · 5 comments

Comments

@gschwarz
Copy link
Mannequin

gschwarz mannequin commented Jan 14, 2004

BPO 877124
Nosy @loewis, @smontanaro

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-08-29.02:00:03.689>
created_at = <Date 2004-01-14.21:08:04.000>
labels = ['expert-installation']
title = 'configure links unnecessary library libdl'
updated_at = <Date 2007-08-29.05:24:55.684>
user = 'https://bugs.python.org/gschwarz'

bugs.python.org fields:

activity = <Date 2007-08-29.05:24:55.684>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2007-08-29.02:00:03.689>
closer = 'skip.montanaro'
components = ['Installation']
creation = <Date 2004-01-14.21:08:04.000>
creator = 'gschwarz'
dependencies = []
files = []
hgrepos = []
issue_num = 877124
keywords = []
message_count = 5.0
messages = ['19690', '19691', '19692', '55409', '55414']
nosy_count = 3.0
nosy_names = ['loewis', 'skip.montanaro', 'gschwarz']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue877124'
versions = ['Python 2.4']

@gschwarz
Copy link
Mannequin Author

gschwarz mannequin commented Jan 14, 2004

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.

@loewis
Copy link
Mannequin

loewis mannequin commented Jan 17, 2004

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.

@loewis
Copy link
Mannequin

loewis mannequin commented Jan 18, 2004

Logged In: YES
user_id=21627

Georg Schwarz indicated in private mail that he is not able
to implement that change.

@smontanaro
Copy link
Contributor

Martin, can I close this?

@loewis
Copy link
Mannequin

loewis mannequin commented Aug 29, 2007

Yes, nobody seems to be interested in fixing it.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant