LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compiling wpa_supplicant - howto fix dlerror, dlsym, dlopen, dlclose errors (https://www.linuxquestions.org/questions/linux-software-2/compiling-wpa_supplicant-howto-fix-dlerror-dlsym-dlopen-dlclose-errors-569824/)

ichrispa 07-16-2007 11:24 AM

compiling wpa_supplicant - howto fix dlerror, dlsym, dlopen, dlclose errors
 
Hi.

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. :)

Cheers

Kahless 07-16-2007 02:18 PM

it might not hurt to send this message to the ndiswrapper team if it was a rescent version :)

ichrispa 07-20-2007 06:03 AM

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...


All times are GMT -5. The time now is 08:38 PM.