You need to install libpcap-dev or -devel or whatever.  The development 
package for libpcap.  That's where the missing headers are found.

On 9/19/2012 2:04 AM, Andreas Scheuring wrote:
> So I downloaded the new version and edited the corresponding line in the file 
> "/Experimental-Assimilation-3195581b5863/CMakeLists.txt" the following
> added -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast
> and removed -Wcast-qual
>
> The last problem seems to be solved, but now a new compiling error occurred:
>
> [root@assimmon59 bin]# cmake ../Experimental-Assimilation-3195581b5863/
> -- The C compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- checking for module 'glib-2.0'
> --   found glib-2.0, version 2.22.5
> -- found gnu
> -- Found Doxygen: /usr/bin/doxygen
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /assimmon/bin
>
> [root@assimmon59 bin]# make
> Scanning dependencies of target generate_framesettypes
> [  0%] Generating ../include/framesettypes.h
> [  2%] Built target generate_framesettypes
> Scanning dependencies of target generate_frametypes
> [  2%] Generating ../include/frametypes.h
> [  4%] Built target generate_frametypes
> Scanning dependencies of target clientlib
> [  6%] Building C object clientlib/CMakeFiles/clientlib.dir/proj_classes.c.o
> [  9%] Building C object clientlib/CMakeFiles/clientlib.dir/cdp_min.c.o
> [ 11%] Building C object clientlib/CMakeFiles/clientlib.dir/lldp_min.c.o
> [ 13%] Building C object clientlib/CMakeFiles/clientlib.dir/pcap_min.c.o
> In file included from 
> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/pcap_min.c:25:
> /assimmon/Experimental-Assimilation-3195581b5863/include/pcap_min.h:16:18: 
> error: pcap.h: No such file or directory
> In file included from 
> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/pcap_min.c:25:
> /assimmon/Experimental-Assimilation-3195581b5863/include/pcap_min.h:32: 
> error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
> /assimmon/Experimental-Assimilation-3195581b5863/include/pcap_min.h:33: 
> error: expected â)â before â*â token
> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/pcap_min.c:51: 
> error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/pcap_min.c:166: 
> error: expected â)â before â*â token
> make[2]: *** [clientlib/CMakeFiles/clientlib.dir/pcap_min.c.o] Error 1
> make[1]: *** [clientlib/CMakeFiles/clientlib.dir/all] Error 2
> make: *** [all] Error 2
>
>
> --------------------------------------------------------------------------
> From: Alan Robertson <[email protected]>
> Date: 2012/9/19
> Subject: Re: [Assimilation] Compiling Code
> To: Andreas Scheuring <[email protected]>
> Cc: [email protected], Clint Byrum <[email protected]>
>
>
> There were some source changes necessary to allow this to build with
> older software.  I've now made them.
>
> BUT there is also a change to CMakeLists.txt which I don't want to
> make in the base system - because it disables a few specific warning
> checks.
>
> The comments in CMakeLists.txt say:
> #
> #       For some older versions of gcc and/or glib (not sure quite
> which versions)
> #       Add -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast
> #       Remove -Wcast-qual
> #
> So, if you modify the next add_definitions() call below this, as
> described above I think it will likely compile for you.
>
> Clint:  How do we go about make cmake detect this and add the flags
> (or remove them) according to the environment we're compiling in?
>
>
_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to