我git clone完后使用./autogen.sh && CC=arm-uclibc-linux-2.6.36-gcc CXX=arm-uclibc-linux-2.6.36-g++ AR=arm-uclibc-linux-2.6.36-ar RANLIB=arm-uclibc-linux-2.6.36-ranlib ./configure --host=arm-uclibc-linux --enable-static && make进行编译
结果报错如下:
arm-uclibc-linux-2.6.36-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT chinadns.o -MD -MP -MF .deps/chinadns.Tpo -c -o chinadns.o chinadns.c
mv -f .deps/chinadns.Tpo .deps/chinadns.Po
arm-uclibc-linux-2.6.36-gcc -g -O2 -static -o chinadns chinadns.o -lresolv
chinadns.o: In function `hostname_from_question':
/root/ChinaDNS/src/chinadns.c:727: undefined reference to `__ns_parserr'
chinadns.o: In function `should_filter_query':
/root/ChinaDNS/src/chinadns.c:767: undefined reference to `__ns_parserr'
chinadns.o: In function `dns_handle_remote':
/root/ChinaDNS/src/chinadns.c:655: undefined reference to `__ns_initparse'
chinadns.o: In function `dns_handle_local':
/root/ChinaDNS/src/chinadns.c:567: undefined reference to `__ns_initparse'
请问应该如何解决?本来想@ /t/124550 76L的szpunk,但是他似乎很久没上了
结果报错如下:
arm-uclibc-linux-2.6.36-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT chinadns.o -MD -MP -MF .deps/chinadns.Tpo -c -o chinadns.o chinadns.c
mv -f .deps/chinadns.Tpo .deps/chinadns.Po
arm-uclibc-linux-2.6.36-gcc -g -O2 -static -o chinadns chinadns.o -lresolv
chinadns.o: In function `hostname_from_question':
/root/ChinaDNS/src/chinadns.c:727: undefined reference to `__ns_parserr'
chinadns.o: In function `should_filter_query':
/root/ChinaDNS/src/chinadns.c:767: undefined reference to `__ns_parserr'
chinadns.o: In function `dns_handle_remote':
/root/ChinaDNS/src/chinadns.c:655: undefined reference to `__ns_initparse'
chinadns.o: In function `dns_handle_local':
/root/ChinaDNS/src/chinadns.c:567: undefined reference to `__ns_initparse'
请问应该如何解决?本来想@ /t/124550 76L的szpunk,但是他似乎很久没上了