Following the instructions at http://www.gluster.org/community/documentation/index.php/CompilingRPMS , cmockery causes the build to fail.
Created attachment 872046 [details] makelog
TLDR: Pull request here fixes the problem: https://github.com/lpabon/cmockery2/pull/1 Long version: These lines in the build process are where the problem starts (from "make glusterrpms"): + ./autogen.sh ... GlusterFS autogen ... Generate gf-error-codes.h ... `gf-error-codes.h' -> `libglusterfs/src/gf-error-codes.h' Running aclocal... Running autoheader... Running libtoolize... Running autoconf... Running automake... Obtaining git module cmockery2 ... You need to run this command from the toplevel of the working tree. Running autogen.sh in argp-standalone ... Running autogen.sh in cmockery2 ... ./autogen.sh: line 117: ./autogen.sh: No such file or directory Which led to the failure further along: Making all in cmockery2 In file included from src/example/calculator_test.c:20: ./src/cmockery/cmockery.h:116: error: conflicting types for 'uintptr_t' /usr/include/stdint.h:129: error: previous declaration of 'uintptr_t' was here cc1: warnings being treated as errors src/example/calculator_test.c: In function 'test_find_operator_function_by_string_valid_null_functions': src/example/calculator_test.c:146: warning: cast from pointer to integer of different size src/example/calculator_test.c: In function 'test_find_operator_function_by_string_not_found': src/example/calculator_test.c:157: warning: cast from pointer to integer of different size src/example/calculator_test.c: In function 'test_find_operator_function_by_string_found': src/example/calculator_test.c:170: warning: cast from pointer to integer of different size src/example/calculator_test.c: In function 'test_perform_operation': src/example/calculator_test.c:370: warning: cast from pointer to integer of different size make[3]: *** [calculator_test-calculator_test.o] Error 1 make[3]: *** Waiting for unfinished jobs.... mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I./src/cmockery -I./src -I./src/cmockery -I./src/cmockery -g -O0 -Wall -Werror --coverage -MT libcmockery_la-cmockery.lo -MD -MP -MF .deps/libcmockery_la-cmockery.Tpo -c src/cmockery.c -fPIC -DPIC -o .libs/libcmockery_la-cmockery.o In file included from src/cmockery.c:50: ./src/cmockery/cmockery.h:116: error: conflicting types for 'uintptr_t' /usr/include/stdint.h:129: error: previous declaration of 'uintptr_t' was here make[3]: *** [libcmockery_la-cmockery.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/jjulian/glusterfs/extras/LinuxRPM/rpmbuild/BUILD/glusterfs-3git' error: Bad exit status from /var/tmp/rpm-tmp.30340 (%build) The cmockery2 lines in [root]/autogen.sh are: # Update git modules echo "Obtaining git module cmockery2 ..." git submodule update --init cmockery2 and further along: echo "Running autogen.sh in cmockery2 ..." ( cd cmockery2; ./autogen.sh ) The git submodule error message wasn't causing the problem, so can be ignored. The problem was that "cmockery2/autogen.sh" wasn't being captured into the tar file generated by "make dist". This led to the "./autogen.sh: line 117: ./autogen.sh: No such file or directory" error. Adding "autogen.sh" and "m4" to the EXTRA_DIST line in cmockery2/Makefile.am fixes this, allowing the build on EL5.x 10 complete. Pull request to fix this in upstream cmockery2 source is here: https://github.com/lpabon/cmockery2/pull/1 + Justin
REVIEW: http://review.gluster.org/7215 (build: Fix build error in EL5) posted (#1) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#2) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#3) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#4) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#5) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#6) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#7) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#8) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#9) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#10) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#11) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#12) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#13) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#14) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#15) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#16) for review on master by Luis Pabon (lpabon)
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#17) for review on master by Luis Pabon (lpabon)
The patch has been abandoned, it should have been fixed with an update to cmockery2. Also note that the current master (and release-3.7) use cmocka instead.