這裏就是我沒有... #tar -xzvf的libnet-0.10.11.tar.gz #CD的libnet麻煩上安裝的libnet-0.10.11 Ubuntu的9.10
然後我複製了linux.mak文件添加到父目錄中的port.mak文件中。 那麼,作爲文檔中說,我曾經使本目錄...
[email protected]:~/Desktop/Software/libnet$ make
make -C lib/ lib
make[1]: Entering directory `/home/naman/Desktop/Software/libnet/lib'
gcc -O2 -Wall -Werror -Wno-unused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -I../include -Iinclude -DTARGET_LINUX -c -o core/config.o core/config.c
cc1: warnings being treated as errors
core/config.c: In function ‘__libnet_internal__seek_section’:
core/config.c:87: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
core/config.c: In function ‘__libnet_internal__get_setting’:
core/config.c:111: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
make[1]: *** [core/config.o] Error 1
make[1]: Leaving directory `/home/naman/Desktop/Software/libnet/lib'
make: *** [lib] Error 2
任何人都可以請解釋的錯誤給我的細節,以及如何糾正呢?任何幫助將非常感激。