Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-16-2007, 11:24 AM   #1
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Lightbulb compiling wpa_supplicant - howto fix dlerror, dlsym, dlopen, dlclose errors


This is not a query on some topic, its just an informative post.

I have been trying to get wpa_supplicant compiled madly for the last few days. the compilation of several source files ended in undefined symbols of the dynamic linker. After worrying about my glibc, my gcc and my binutils and searching for the problem i had an enlightenment one fine evening:

If the compiler can't link the damn code, is it perhaps the fault of the Makefile? And endeed, the makefile did at no point link to the library in question.

So if you too have trouble compiling wpa_supplicant (I don't recall the version at this point and i'm too lazy to reboot and find out), try adding -ldl to the CFLAGS in the Makefile.

Hope this helps someone someday.

Old 07-16-2007, 02:18 PM   #2
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
it might not hurt to send this message to the ndiswrapper team if it was a rescent version
Old 07-20-2007, 06:03 AM   #3
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
weirdly enough it where two sources: the old 4.8 and the up-to-date 5.8. both had the same flaw, which leads me to believe that the problem is located on my end. I hardly think that a compilation problem like this would have gone unnoticed over a timespan of one year...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined reference to dlopen, dlclose, dlsym and dlerror patrickdepingui Slackware 5 02-14-2010 08:55 AM
Odd WPA_Supplicant Errors stlpcsolutions Linux - Wireless Networking 1 07-23-2006 06:35 AM
help translating pascal's libc "dlopen , dlsym and dlclose" into c source ... alred Programming 1 04-30-2006 04:49 PM
Error compiling wpa_supplicant 0.4.8 Harpoontang Linux - Wireless Networking 2 03-21-2006 09:17 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration