LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compile under cygwin (https://www.linuxquestions.org/questions/linux-newbie-8/compile-under-cygwin-195236/)

Ackmeco 06-19-2004 02:47 AM

Compile under cygwin
 
Hi there,
I am having some problems compiling under cygwin. I'm not sure if I should be doing this at all with my newb linux skills but im sure its possible for me to do this. Details as follows for libpcap:

Owner@HOST /stuff/libpcap/libpcap-0.8.3
$ configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... no
checking for ANSI ioctl definitions... no
configure: error: see the INSTALL for more info


And when trying to compile an ids program:

Owner@HOST /stuff/pot1/ids-0.3/src
$ gcc ids.c emulate.c -o ids -W
ids.c:182: warning: conflicting types for built-in function `log'
ids.c: In function `rawsock':
ids.c:656: warning: assignment from incompatible pointer type
ids.c:707: warning: assignment from incompatible pointer type
ids.c: In function `sniff_all':
ids.c:949: error: `SOCK_PACKET' undeclared (first use in this function)
ids.c:949: error: (Each undeclared identifier is reported only once
ids.c:949: error: for each function it appears in.)
ids.c:984: error: `SIOCSIFFLAGS' undeclared (first use in this function)
ids.c:1135:14: missing terminating " character
ids.c: In function `log':
ids.c:1136: error: stray '\' in program
ids.c:1136: error: `s' undeclared (first use in this function)
ids.c:1136: error: syntax error before "n"
ids.c:1136:5: missing terminating " character
emulate.c:132: warning: conflicting types for built-in function `log'
emulate.c: In function `ftp_emulate':
emulate.c:928: warning: assignment from incompatible pointer type
emulate.c:929: warning: assignment from incompatible pointer type


Any help on the above would be greatly appreciated, I have looked all over the place and had no luck thus far.

Cheers,

Ackmeco
Melbourne, Australia


All times are GMT -5. The time now is 09:11 PM.