我参照这篇文章编译wl1835评估板的驱动http://processors.wiki.ti.com/index.php/WL18xx_System_Build_Scripts
在./build_wl18xx.sh update R8.6_SP1 是出错,信息看起来是libdl.so链接不到,但是在我们的rootfs/lib/下有libdl.so.2和libdl-2.13.so库,请问该怎么办?
arm-linux-gnueabihf-gcc -I/home/click/IMX6/ltib/rootfs/usr/local/ssl/include -I/home/click/IMX6/ltib/rootfs/include -L/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib -L/home/click/IMX6/ltib/rootfs/lib -O2 -fpic -std=gnu99 -Wall -pedantic -Wall -g -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config –cflags openssl` -DCONFIG_LIBNL30 `pkg-config –cflags libnl-3.0` -ldl -L ./ -o db2rd db2rd.o -lreg -ldl -lpthread -lm `pkg-config –libs openssl`
/home//click/IMX6/ltib/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x8): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x12): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x1a): rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:undefined(. reference to `dlclose'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1e2): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x242): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x29a): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f2): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x334): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x368): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x380): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x3ce): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x402): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x440): undefined reference to `dlclose'
text+0x8collect2: error: ld returned 1 exit status
): undefined reference to `dlopen'
dso_dlfcn.c:(.text+make: 0x12)*** [intersect] Error 1
make: *** Waiting for unfinished jobs….
: undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x1a): undefined reference to `dlclose'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1e2): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x242): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x29a): undefined reference to/ `dlsym'
dso_dlfcn.chome/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x8): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x12): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x1a): undefined reference to `dlclose'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1e2): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x242): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x29a): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f2): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x334): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x368): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x380): undefined reference to `dlerror'
/home/click/IMX6/ltib/:rootfs/usr/(.local/text+ssl/0x2f2)lib/: undefinedlibcrypto.a( referencedso_dlfcn.o) to: `In dlerror'function
/`dlfcn_pathbyaddrhome/':click/
dso_dlfcn.cIMX6/:(ltib/.textrootfs/+0x3ceusr/): local/sslundefined /libreference /libcrypto.ato (dso_dlfcn.o`dladdr):'
dso_dlfcn.c In:(. functiontext+0x402 `dlfcn_load): ':undefined
dso_dlfcn.creference to:( `dlerror.text'
+0x334/home/):click/ undefinedIMX6/ referenceltib/ torootfs/usr `dlopen/local/'
ssl/libdso_dlfcn.c:/libcrypto.a((.dso_dlfcn.o)text+: In0x368) function: `undefined dlfcn_unload'reference :
to dso_dlfcn.c:`dlclose(.'
text+dso_dlfcn.c:0x440)(.text: undefined+0x380 reference): to undefined ` referencedlclose' to
`dlerror'
/home/click/IMX6/ltibcollect2: error: ld returned 1 exit status
/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x3ce): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x402): undefined reference to `dlerror'
/home/make: click/IMX6/*** [db2rd] Error 1ltib/rootfs
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x440): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make: *** [regdbdump] Error 1
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x8): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x12): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x1a): undefined reference to `dlclose'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1e2): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x242): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x29a): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f2): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x334): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x368): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x380): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x3ce): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x402): undefined reference to `dlerror'
/home/click/IMX6/ltib/rootfs/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x440): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make: *** [crda] Error 1
****** ERROR 0 *******
Yonghua Pan:
请参照http://processors.wiki.ti.com/index.php/WiLink8_Linux_Getting_Started_Guide,这里有介绍IMX6的