ThisIsTiger / opendpi

Automatically exported from code.google.com/p/opendpi
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Compile fails on Fedora 11 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download OpenDPI with
http://opendpi.googlecode.com/files/OpenDPI_1.0.1.tar.gz 
2. untar and in the OpenDPI directory run make
3. [root@localhost OpenDPI]# uname -r
2.6.29.4-167.fc11.i586

What is the expected output? What do you see instead?
compile fails as:
OpenDPI]# make
cd ./lib && cc -c -I ../include -O2 -g -pipe -Wall -Wimplicit -Wunused
-Wcomment -Wchar-subscripts -Wuninitialized -Wparentheses -Wformat -Winline
-Wreturn-type -fPIC -Wmissing-prototypes -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -maccumulate-outgoing-args
-Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer
-Werror -D_FILE_OFFSET_BITS=64 *.c
cd ./lib/protocols && cc -c -I .. -I ../../include -O2 -g -pipe -Wall
-Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized
-Wparentheses -Wformat -Winline -Wreturn-type -fPIC -Wmissing-prototypes
-Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -maccumulate-outgoing-args
-Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer
-Werror -D_FILE_OFFSET_BITS=64 *.c
ar rcs ./libOpenDPI.a ./lib/*.o ./lib/protocols/*.o
cc -O2 -g -pipe -Wall -Wimplicit -Wunused -Wcomment -Wchar-subscripts
-Wuninitialized -Wparentheses -Wformat -Winline -Wreturn-type -fPIC
-Wmissing-prototypes -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-maccumulate-outgoing-args -Wno-sign-compare
-fno-asynchronous-unwind-tables -fomit-frame-pointer -Werror
-D_FILE_OFFSET_BITS=64 -I include OpenDPI_demo.c libOpenDPI.a -lpcap -o
OpenDPI_demo
OpenDPI_demo.c:37:18: error: pcap.h: No such file or directory
OpenDPI_demo.c:45: error: âPCAP_ERRBUF_SIZEâ undeclared here (not in a
function)
OpenDPI_demo.c:46: error: expected â=â, â,â, â;â, âasmâ or 
â__attribute__â
before â*â token
OpenDPI_demo.c: In function âopenPcapFileâ:
OpenDPI_demo.c:465: error: â_pcap_handleâ undeclared (first use in this
function)
OpenDPI_demo.c:465: error: (Each undeclared identifier is reported only once
OpenDPI_demo.c:465: error: for each function it appears in.)
OpenDPI_demo.c:465: error: implicit declaration of function 
âpcap_open_offlineâ
OpenDPI_demo.c:471: error: implicit declaration of function âpcap_datalinkâ
OpenDPI_demo.c: In function âclosePcapFileâ:
OpenDPI_demo.c:476: error: â_pcap_handleâ undeclared (first use in this
function)
OpenDPI_demo.c:477: error: implicit declaration of function âpcap_closeâ
cc1: warnings being treated as errors
OpenDPI_demo.c: At top level:
OpenDPI_demo.c:482: error: âstruct pcap_pkthdrâ declared inside parameter list
OpenDPI_demo.c:482: error: its scope is only this definition or
declaration, which is probably not what you want
OpenDPI_demo.c: In function âpcap_packet_callbackâ:
OpenDPI_demo.c:493: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:494: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:505: error: âDLT_EN10MBâ undeclared (first use in this 
function)
OpenDPI_demo.c:506: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:508: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:508: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:528: error: dereferencing pointer to incomplete type
OpenDPI_demo.c:528: error: dereferencing pointer to incomplete type
OpenDPI_demo.c: In function ârunPcapLoopâ:
OpenDPI_demo.c:535: error: â_pcap_handleâ undeclared (first use in this
function)
OpenDPI_demo.c:536: error: implicit declaration of function âpcap_loopâ
make: *** [demo_program] Error 1
[root@localhost OpenDPI]# 

What version of the product are you using? On what operating system?

2.6.29.4-167.fc11.i586

Original issue reported on code.google.com by mailtofa...@gmail.com on 6 Oct 2009 at 2:19

GoogleCodeExporter commented 9 years ago
Ah never mind..
Forgot to add the libpcap-devel package. This can be added to the Readme though.

Original comment by mailtofa...@gmail.com on 6 Oct 2009 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by martin.w...@ipoque.com on 5 Nov 2009 at 3:45