Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

make 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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    dear all

    could you give me how to a websever base boa and cgi ?thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by nwpu_zhf2004@Jul 9 2006, 10:57 PM

    dear all

    could you give me how to a websever base boa and cgi ?thanks

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16726)

    --- quote end ---

    --- Quote End ---

    You should select,

    [*] generic cgi

    but not cgihtml