Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1031067

Summary: FTBFS on big endians
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: sphinxtrainAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: loganjerry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sphinxtrain-1.0.8-10.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-24 04:05:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
proposed fix
none
complete change for fedora git none

Description Dan Horák 2013-11-15 14:45:22 UTC
Created attachment 824572 [details]
proposed fix

build on big endian arches fails with

...
 -DLT_OBJDIR=\".libs/\" -DWORDS_BIGENDIAN=1 -D_FILE_OFFSET_BITS=64 -DHAVE_FSEEKO=1 -DHAVE_LONG_LONG=1 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DSIZEOF_INT=4 -DSIZEOF_OFF_T=8 -DHAVE_LIBM=1 -DG2P_DECODER=1 -I.  -I../../../include -I/usr/include/sphinxbase   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m31 -march=z9-109 -mtune=z10 -fPIC -DPIC -c mk_s2sendump.c
In file included from mk_s2sendump.c:60:0:
mk_s2sendump.c: In function 'fwrite_int32':
mk_s2sendump.c:85:5: error: invalid type argument of unary '*' (have 'int32')
     SWAP_LE_32(val);
     ^
mk_s2sendump.c:85:5: error: invalid type argument of unary '*' (have 'int32')
     SWAP_LE_32(val);
     ^
mk_s2sendump.c:85:5: error: invalid type argument of unary '*' (have 'int32')
     SWAP_LE_32(val);
     ^
mk_s2sendump.c:85:5: error: invalid type argument of unary '*' (have 'int32')
     SWAP_LE_32(val);
     ^
mk_s2sendump.c:85:5: error: invalid type argument of unary '*' (have 'int32')
     SWAP_LE_32(val);
     ^
make[3]: *** [mk_s2sendump.o] Error 1
make[3]: *** Waiting for unfinished jobs....

Version-Release number of selected component (if applicable):
sphinxtrain-1.0.8-9.fc20

Comment 1 Dan Horák 2013-11-15 14:46:44 UTC
Created attachment 824573 [details]
complete change for fedora git

If you agree I can do the change in git and build the updates in all relevant branches.

Comment 2 Jerry James 2013-11-15 15:45:29 UTC
I agree, that is the correct fix.  Please go ahead with the builds.  Thanks for the diagnosis and fix.  I will send your patch upstream.

Comment 3 Fedora Update System 2013-11-15 17:11:31 UTC
sphinxtrain-1.0.8-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/sphinxtrain-1.0.8-10.fc20

Comment 4 Fedora Update System 2013-11-16 07:04:57 UTC
Package sphinxtrain-1.0.8-10.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sphinxtrain-1.0.8-10.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-21464/sphinxtrain-1.0.8-10.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-11-24 04:05:17 UTC
sphinxtrain-1.0.8-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.