[pkg-wpa-devel] Bug#618719: FTBFS on kfreebsd: ../src/utils/pcsc_funcs.o: undefined reference to symbol 'dlsym@@GLIBC_2.3'

Julien Cristau jcristau at debian.org
Sat Mar 19 12:58:41 UTC 2011


On Sat, Mar 19, 2011 at 22:17:38 +1000, Kel Modderman wrote:

> Further to the problem, upstream build system seems not to add '-ldl' to LIBS
> for BSD configurations. For example:
> 
> $ grep -A1 -B1 '\-ldl' wpa_supplicant/Makefile                                                                                          
> ifndef CONFIG_DRIVER_BSD                                                                                                                                                                  
> LIBS += -ldl                                                                                                                                                                              
> endif                                                                                                                                                                                     
> --                                                                                                                                                                                        
> ifneq ($(CONFIG_L2_PACKET), freebsd)                                                                                                                                                      
> LIBS += -ldl                                                                                                                                                                              
> endif
> 
> I do not know why this is the case, and I think this will come up if I was to
> push this patch upstream. There are multiple places in which this linker flag
> gets added to LIBS for non BSD configurations which is why we did not witness
> this build failure on linux before now.
> 
Some platforms have dlopen() and friends in libc, so don't need libdl.

Cheers,
Julien





More information about the Pkg-wpa-devel mailing list