Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-19-2004, 03:47 AM   #1
LQ Newbie
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: cygwin
Posts: 2

Rep: Reputation: 0
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.


Melbourne, Australia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CygWin SpEcIeS Linux - General 1 02-17-2005 04:52 PM
Compile 2.6 kernel on Cygwin awillard69 Linux - Newbie 0 08-11-2004 10:56 AM
g++ under cygwin ganda|f Programming 1 04-15-2004 10:46 PM
Cygwin compile problems... jinksys Programming 0 04-10-2004 10:26 PM
LFS compile over SSH on cygwin slightcrazed Linux From Scratch 6 10-21-2003 03:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration