Bug 756832

Summary: postgresql-odbc64 does not build on ppc and ia64
Product: Red Hat Enterprise Linux 5 Reporter: Karel Volný <kvolny>
Component: postgresql-odbc64Assignee: Tom Lane <tgl>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: hhorak
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-29 14:45:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 757126    
Bug Blocks:    

Description Karel Volný 2011-11-24 19:18:43 UTC
Description of problem:
postgresql-odbc64 fails the rebuild test on ppc and ia64

happens on stablesystems - the brew build obviously passed ...

Version-Release number of selected component (if applicable):
postgresql-odbc64-09.00.0200-1.el5.src.rpm

How reproducible:
always

Steps to Reproduce:
1. rpmbuild --rebuild /mnt/redhat/brewroot/packages/postgresql-odbc64/09.00.0200/1.el5/src/postgresql-odbc64-09.00.0200-1.el5.src.rpm
  
Actual results:
build fails

Expected results:
build succeeds

Additional info:
I believe the relevant log snippet is this:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -c info.c  -fPIC -DPIC -o .libs/info.o
In file included from /usr/include/sql.h:19,
                 from psqlodbc.h:62,
                 from info.c:19:
/usr/include/sqltypes.h:56:2: error: #error "Needs to know how big a long int is to continue!!!"

Comment 1 Tom Lane 2011-11-26 23:41:42 UTC
Since it builds fine in brew, I'm inclined to close this as NOTABUG.  We can't promise that SRPMS will rebuild correctly in any random environment.  In particular, I'm guessing that this has something to do with having devel RPMs for multiple architectures installed, something that isn't really feasible to deal with.

Comment 2 Honza Horak 2011-12-16 09:46:08 UTC
It builds again with newer unixODBC64-2.2.14-3.el5.ia64, tested on ia64 only. See bug #757126.

Comment 3 Karel Volný 2011-12-19 14:55:38 UTC
(In reply to comment #2)
> It builds again with newer unixODBC64-2.2.14-3.el5.ia64, tested on ia64 only.
> See bug #757126.

I can confirm that ia64 build goes fine with that new version

however, there are still doubts about ppc, and the testing machine is down (ticket already filed)

Comment 4 Karel Volný 2011-12-29 14:45:01 UTC
ok, ppc now builds fine too, closing