Bug 1074095 - Build errors on EL5
Summary: Build errors on EL5
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luis Pabón
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-07 22:52 UTC by Joe Julian
Modified: 2016-11-08 22:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-21 13:21:08 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
makelog (36.43 KB, application/octet-stream)
2014-03-07 22:53 UTC, Joe Julian
no flags Details

Description Joe Julian 2014-03-07 22:52:23 UTC
Following the instructions at http://www.gluster.org/community/documentation/index.php/CompilingRPMS , cmockery causes the build to fail.

Comment 1 Joe Julian 2014-03-07 22:53:08 UTC
Created attachment 872046 [details]
makelog

Comment 2 Justin Clift 2014-03-10 15:29:19 UTC
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

Comment 3 Anand Avati 2014-03-11 11:43:19 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build error in EL5) posted (#1) for review on master by Luis Pabon (lpabon)

Comment 4 Anand Avati 2014-03-13 02:10:55 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#2) for review on master by Luis Pabon (lpabon)

Comment 5 Anand Avati 2014-03-13 02:13:16 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#3) for review on master by Luis Pabon (lpabon)

Comment 6 Anand Avati 2014-03-13 02:14:33 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#4) for review on master by Luis Pabon (lpabon)

Comment 7 Anand Avati 2014-03-13 13:19:53 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#5) for review on master by Luis Pabon (lpabon)

Comment 8 Anand Avati 2014-03-13 14:46:59 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#6) for review on master by Luis Pabon (lpabon)

Comment 9 Anand Avati 2014-03-14 18:48:56 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#7) for review on master by Luis Pabon (lpabon)

Comment 10 Anand Avati 2014-03-14 18:51:26 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#8) for review on master by Luis Pabon (lpabon)

Comment 11 Anand Avati 2014-03-17 13:24:41 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#9) for review on master by Luis Pabon (lpabon)

Comment 12 Anand Avati 2014-06-17 21:04:06 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#10) for review on master by Luis Pabon (lpabon)

Comment 13 Anand Avati 2014-06-17 23:15:57 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#11) for review on master by Luis Pabon (lpabon)

Comment 14 Anand Avati 2014-06-25 15:47:30 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#12) for review on master by Luis Pabon (lpabon)

Comment 15 Anand Avati 2014-06-30 15:39:19 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#13) for review on master by Luis Pabon (lpabon)

Comment 16 Anand Avati 2014-07-01 14:57:20 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#14) for review on master by Luis Pabon (lpabon)

Comment 17 Anand Avati 2014-07-01 14:57:29 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#15) for review on master by Luis Pabon (lpabon)

Comment 18 Anand Avati 2014-07-10 12:34:43 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#16) for review on master by Luis Pabon (lpabon)

Comment 19 Anand Avati 2014-07-10 17:33:04 UTC
REVIEW: http://review.gluster.org/7215 (build: Fix build issues with cmockery2) posted (#17) for review on master by Luis Pabon (lpabon)

Comment 20 Niels de Vos 2015-04-21 13:21:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.