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?



On 09/17/2012 06:53 AM, Andreas Scheuring wrote:
>
> Hey everybody,
>
> That's an very interesting project you're working on. Would like to
> make a test installation but I'm still running against errors while
> making the code. I would be very thankful for a hint on that.
> Otherwise I'll wait for the first stable version with an install-routine.
>
>  
>
> So I'm running rhel6.2 in a virtual machine. I downloaded the .bz2
> file "Assimilation-e9992f9d655a.tar.bz2"
>
>  
>
> These dependencies where solved as described in the readme file:
>
>   * Cmake: yum install cmake (2.8.4-1)
>   * C compiler: yum install gcc
>   * make tools: yum install make
>   * Recent version of Glib2: glib2.22.5-7
>   * libpcap (or winpcap): yum install libpcap
>   * pkg-config (even for Windows): :/configure -- make -- make install
>   * valgrind: yuminstall valgrind
>   * Testify: just downloaded!
>   * Doxygen: yum install doxygen
>   * Dot: graphviz.2.28.0
>   * Ctypesgen: just downloaded!
>
>  
>
> Now c-making your code returns the following (looks fine):
>
> #cmake ../Experimental-Assimilation-e9992f9d655a/
>
> -- 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
>
>  
>
>  
>
> But making it afterwards returns the following output with errors:
>
> # 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
>
> cc1: warnings being treated as errors
>
> In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
>
>                  from /usr/include/glib-2.0/glib.h:34,
>
>                  from
> /assimmon/Experimental-Assimilation-e9992f9d655a/include/projectcommon.h:37,
>
>                  from
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:12:
>
> /usr/include/glib-2.0/glib/gthread.h: In function âg_once_init_enterâ:
>
> /usr/include/glib-2.0/glib/gthread.h:344: error: cast to pointer from
> integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_register_objectâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:100:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_register_debug_counterâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:121:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:121:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_register_subclassedâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:188:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:194:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_dissociateâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:216:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:219:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:226:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_is_aâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:253:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_castasâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:276:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_castasconstâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:296:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_classnameâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:312:
> error: cast from pointer to integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_quark_add_superclass_relationshipâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:322:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:322:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:
> In function âproj_class_quark_is_aâ:
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:335:
> error: cast to pointer from integer of different size
>
> /assimmon/Experimental-Assimilation-e9992f9d655a/clientlib/proj_classes.c:335:
> error: cast from pointer to integer of different size
>
> make[2]: *** [clientlib/CMakeFiles/clientlib.dir/proj_classes.c.o] Error 1
>
> make[1]: *** [clientlib/CMakeFiles/clientlib.dir/all] Error 2
>
> make: *** [all] Error 2
>
>  
>
>  
>
> Any idea what's wrong or missing?
>
>  
>
> Thanks Andreas
>
>  
>
>
>
> _______________________________________________
> Assimilation mailing list - Discovery-Driven Monitoring
> [email protected]
> http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
> http://assimmon.org/


-- 
    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/

Reply via email to