- 论坛徽章:
- 0
|
今天想把tmdns移植到板子上,下的源码tmdns-0.5.3.tar.gz,toolchian是mips-linux-gcc 放在/opt/buildroot-gcc342目录下,tmdns源码使用的automake,
我的configure命令为 configure --prefix=xxxx --host=mips-linux 之前export CFLAGS LDFLAGS。
遇到编译错误如下:
mipsel-linux-gcc -I/opt/buildroot-gcc342/include -L/opt/buildroot-gcc342/lib -o tmdns tmdns-conf.o tmdns-debug.o tmdns-llist.o tmdns-dns.o tmdns-getifaddrs.o tmdns-info.o tmdns-tmdns.o tmdns-serv_udp.o tmdns-netlink_glue.o tmdns-libnetlink.o -lresolv
tmdns-dns.o: In function `dns_compress_domain':dns.c .text+0x2a : undefined reference to `__dn_comp'
collect2: ld returned 1 exit status
看情况是找不到dn_comp这个函数, 查看此函数位于/opt/buildroot-gcc342/include /resolv.h定义中,并且在/opt/buildroot-gcc342/lib/中存在libresolv-0.9.28.so,不知道为什么说找不到。
是系统找不到lib目录 还是 libresolv没有实现这个函数?
各位帮忙看看 |
|