And I forgot to say to Andreas:
Thanks for your persistence and patience!
On 09/19/2012 08:44 AM, Alan Robertson wrote:
> Hi Andreas,
>
> This one appears to be an actual bug (although a harmless bug). I'm
> running tests on the version that has the fix in it.
>
> I actually finished the fixes (and a couple of similar ones) a few
> minutes ago, but my procedures for updating the upstream repository
> involve running all the tests and rebuilding and updating the
> documentation on the web site.
>
> So this adds a few minutes to the process.
>
> -- Alan Robertson
> [email protected]
>
>
>
> On 09/19/2012 07:15 AM, Andreas Scheuring wrote:
>> OK, that one is gone now. Thanks
>> Unfortunately, while moving on, the next error occurred. I'm really sorry
>> for that! But it's seems impossible to debug this c-code on my own. Hope
>> we'll get it running, soon!
>>
>> Thanks a lot for your help!
>>
>> So this is what make returns:
>>
>> [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
>> [ 16%] Building C object
>> clientlib/CMakeFiles/clientlib.dir/generic_tlv_min.c.o
>> [ 18%] Building C object clientlib/CMakeFiles/clientlib.dir/pcap_GSource.c.o
>> [ 20%] Building C object clientlib/CMakeFiles/clientlib.dir/tlvhelper.c.o
>> [ 23%] Building C object clientlib/CMakeFiles/clientlib.dir/frameset.c.o
>> [ 25%] Building C object clientlib/CMakeFiles/clientlib.dir/frame.c.o
>> [ 27%] Building C object clientlib/CMakeFiles/clientlib.dir/intframe.c.o
>> [ 30%] Building C object clientlib/CMakeFiles/clientlib.dir/addrframe.c.o
>> [ 32%] Building C object clientlib/CMakeFiles/clientlib.dir/cstringframe.c.o
>> [ 34%] Building C object clientlib/CMakeFiles/clientlib.dir/signframe.c.o
>> [ 37%] Building C object clientlib/CMakeFiles/clientlib.dir/unknownframe.c.o
>> [ 39%] Building C object clientlib/CMakeFiles/clientlib.dir/seqnoframe.c.o
>> [ 41%] Building C object clientlib/CMakeFiles/clientlib.dir/packetdecoder.c.o
>> [ 44%] Building C object clientlib/CMakeFiles/clientlib.dir/discovery.c.o
>> [ 46%] Building C object
>> clientlib/CMakeFiles/clientlib.dir/switchdiscovery.c.o
>> [ 48%] Building C object clientlib/CMakeFiles/clientlib.dir/netio.c.o
>> cc1: warnings being treated as errors
>> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/netio.c: In
>> function â_netio_sendapacketâ:
>> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/netio.c:303:
>> error: format â%iâ expects type âintâ, but argument 6 has type âlong
>> unsigned intâ
>> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/netio.c: In
>> function â_netio_recvapacketâ:
>> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/netio.c:427:
>> error: format â%zdâ expects type âsigned size_tâ, but argument 5 has type
>> âgssizeâ
>> /assimmon/Experimental-Assimilation-3195581b5863/clientlib/netio.c:427:
>> error: format â%zdâ expects type âsigned size_tâ, but argument 6 has type
>> âgssizeâ
>> make[2]: *** [clientlib/CMakeFiles/clientlib.dir/netio.c.o] Error 1
>> make[1]: *** [clientlib/CMakeFiles/clientlib.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>>
>>> 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?
>>>
>>>
>
--
Alan Robertson <[email protected]> - @OSSAlanR
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/