flavorjones / mini_portile

mini_portile and mini_portile2 - Simple autoconf and cmake builder for developers
MIT License
114 stars 51 forks source link

Error Compiling c-ares 1.7.5 on RHEL container : using bundle exec rake test:examples #110

Closed saurabhghumnar closed 3 years ago

saurabhghumnar commented 3 years ago

bundler: 2.2.29

Running 'compile' for c-ares 1.7.5... ERROR, review '/home/tester/flavorjones/mini_portile/examples/tmp/ppc64le-redhat-linux/ports/c-ares/1.7.5/compile.log' to see what happened. Last lines are:

^~~~~

./ares_rules.h:73:4: error: unknown type name ‘Error’ Error Compilation_aborted_CARES_SIZEOF_LONG_is_missing ^~~~~ ./ares_rules.h:73:58: error: expected ‘;’ before ‘typedef’ Error Compilation_aborted_CARES_SIZEOF_LONG_is_missing ^ ; ./ares_rules.h:99:1: typedef char


./ares_rules.h:101:25: error: ‘CARES_SIZEOF_LONG’ undeclared here (not in a function); did you mean ‘SIZEOF_LONG’?
     [CareschkszEQ(long, CARES_SIZEOF_LONG)];
                         ^~~~~~~~~~~~~~~~~
./ares_rules.h:90:41: note: in definition of macro ‘CareschkszEQ’
 #define CareschkszEQ(t, s) sizeof(t) == s ? 1 : -1
                                         ^
make[1]: *** [Makefile:782: ares__close_sockets.lo] Error 1
make[1]: Leaving directory '/home/tester/flavorjones/mini_portile/examples/tmp/ppc64le-redhat-linux/ports/c-ares/1.7.5/c-ares-1.7.5'
make: *** [Makefile:585: all] Error 2
========================================================================
rake aborted!
saurabhghumnar commented 3 years ago

Issue resolved : configure the c-ares library and run the makefile

cd ./configure make