Altera_Forum
Honored Contributor
19 years agomake cgi error
dear all,
when i configure the kernal according to hippo, and i make menuconfig ,select the cgi , then save configure. -------------------- Miscellaneous Configuration ---> (None) RAMFS Image [ ] generic cgi │ │ │ │ [*] cgihtml │ │ │ │ [ ] SnapGear Button daemon │ │ │ │ [ ] SnapGear Latch daemon │ │ │ │ [ ] SnapGear Morse demo │ │ │ │ [ ] SnapGear R2100 daemon when i type the :make ,just the fllowing error ,could you help me ! thanks make[3]: Entering directory `/home/fzh/uClinux-dist-test/user/boa-new/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/fzh/uClinux-dist-test/user/boa-new/src' make[2]: Leaving directory `/home/fzh/uClinux-dist-test/user/boa-new' make[2]: Entering directory `/home/fzh/uClinux-dist-test/user/busybox' sh ./mkconfig > .config.tmp if cmp -s .config.mkconfig .config.tmp ; then rm -f .config.tmp ; else make clean; mv -f .config.tmp .config.mkconfig ; fi make[2]: Leaving directory `/home/fzh/uClinux-dist-test/user/busybox' make[2]: Entering directory `/home/fzh/uClinux-dist-test/user/cgihtml/examples' cd ..; make cgihtml.a make[3]: Entering directory `/home/fzh/uClinux-dist-test/user/cgihtml' nios2-linux-uclibc-gcc -Os -g -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/fzh/uClinux-dist-test -fno-builtin -DUNIX -DUPLOADDIR='"/usr/tmp"' -c -o cgi-lib.o cgi-lib.c cgi-lib.c:181: error: conflicting types for 'getline' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-include/stdio.h:579: error: previous declaration of 'getline' was here cgi-lib.c:181: error: conflicting types for 'getline' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-include/stdio.h:579: error: previous declaration of 'getline' was here make[3]: *** [cgi-lib.o] Error 1 make[3]: Leaving directory `/home/fzh/uClinux-dist-test/user/cgihtml' make[2]: *** [../cgihtml.a] Error 2 make[2]: Leaving directory `/home/fzh/uClinux-dist-test/user/cgihtml/examples' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/fzh/uClinux-dist-test/user' make: *** [subdirs] Error 1 [fzh@localhost uClinux-dist-test