已经使用过诸如:make LDFLAGS+=-ldl命令,没效果!求解释!请各位在给出答案不需要联网,我现在是在window7下上论坛,到ubuntu下没法联网。
代码: 全选
make all-recursive
make[1]: 正在进入目录 `/home/li/Downloads/ruijieclient-0.8.2'
Making all in src
make[2]: 正在进入目录 `/home/li/Downloads/ruijieclient-0.8.2/src'
gcc -I /usr/include/libxml2 -g -O2 -DUSE_DYLIB -g0 -Os -o ruijieclient ruijieclient-blog.o ruijieclient-myerr.o ruijieclient-codeconv.o ruijieclient-ruijieclient.o ruijieclient-sendpacket.o ruijieclient-conn_monitor.o ruijieclient-prase.o ruijieclient-md5.o ruijieclient-config.o
ruijieclient-config.o: In function `T.24':
config.c:(.text+0x293): warning: the `gets' function is dangerous and should not be used.
ruijieclient-sendpacket.o: In function `FindLibPcap':
sendpacket.c:(.text+0xb2): undefined reference to `dlopen'
sendpacket.c:(.text+0xdf): undefined reference to `dlopen'
ruijieclient-sendpacket.o: In function `init_ruijie_packet':
sendpacket.c:(.text+0x162): undefined reference to `dlsym'
sendpacket.c:(.text+0x17a): undefined reference to `dlsym'
sendpacket.c:(.text+0x192): undefined reference to `dlsym'
sendpacket.c:(.text+0x1aa): undefined reference to `dlsym'
sendpacket.c:(.text+0x1c2): undefined reference to `dlsym'
ruijieclient-sendpacket.o:sendpacket.c:(.text+0x1da): more undefined references to `dlsym' follow
ruijieclient-config.o: In function `GenSetting':
config.c:(.text+0x659): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [ruijieclient] 错误 1
make[2]:正在离开目录 `/home/li/Downloads/ruijieclient-0.8.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/li/Downloads/ruijieclient-0.8.2'
make: *** [all] 错误 2
collect2: ld returned 1 exit status
make[2]: *** [ruijieclient] 错误 1
make[2]:正在离开目录 `/home/li/Downloads/ruijieclient-0.8.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/li/Downloads/ruijieclient-0.8.2'
make: *** [all] 错误 2