Bug 757088 - mysql-connector-odbc64 fails to build on 64bit if 32bit libtool-ltdl-devel is installed
Summary: mysql-connector-odbc64 fails to build on 64bit if 32bit libtool-ltdl-devel is...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mysql-connector-odbc64
Version: 5.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tom Lane
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-25 13:07 UTC by Karel Volný
Modified: 2013-03-06 04:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-06 04:05:34 UTC
Target Upstream Version:


Attachments (Terms of Use)
patch for spec file (825 bytes, patch)
2012-01-09 17:18 UTC, Honza Horak
no flags Details | Diff

Description Karel Volný 2011-11-25 13:07:42 UTC
Description of problem:
mysql-connector-odbc64 has build dependency on libtool-ltdl-devel

however, it needs it to be of the same arch - if both 32bit and 64bit version is installed, it fails to detect correct version and ends up in linker error

Version-Release number of selected component (if applicable):
mysql-connector-odbc64-5.1.8-1.el5.src.rpm

.qa.[root@x86-64-5s-m1 tps]# rpm -qf /usr/lib/libltdl.so
libtool-ltdl-devel-1.5.22-7.el5_4.i386
.qa.[root@x86-64-5s-m1 tps]# rpm -qf /usr/lib64/libltdl.so
libtool-ltdl-devel-1.5.22-7.el5_4.x86_64


How reproducible:
always

Steps to Reproduce:
1. use 64bit system
2. yum install libtool-ltdl-devel
3. rpmbuild --rebuild /mnt/redhat/brewroot/packages/mysql-connector-odbc64/5.1.8/1.el5/src/mysql-connector-odbc64-5.1.8-1.el5.src.rpm

  
Actual results:
...
gcc -O3 -DDBUG_OFF -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -o dltest dltest.o  /usr/lib/libltdl.so -ldl -lz -L/usr/lib -lodbcinst   -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib
/usr/lib/libltdl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [dltest] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-connector-odbc-5.1.8/dltest'
make: *** [all-recursive] Error 1
error: Špatný návratový kód z /var/tmp/rpm-tmp.47133 (%build)

Expected results:
(rebuild finishes without problem)

Additional info:
note that there are in fact two bugs here:

1) bug in spec: BuildRequires does not require 64bit libtool-ltdl-devel version on 64bit architecture, the dependency is satisfied by any of 32/64 bit versions - but 64bit mysql-connector-odbc64 package does not build with 32bit libtool-ltdl-devel

2) bug in buildsystem (configure?): if 32bit version of libtool-ltdl-devel is installed, it takes precedence even if 64bit version is installed too

Comment 1 Karel Volný 2011-11-25 14:32:48 UTC
um, "use 64bit system" - I mean multilib ... so far, I've experienced the problem on all x86_64 machines and on s390x (wonder why ppc64 was okay and not in the mood to try explicitly if it breaks too ...)

Comment 2 RHEL Program Management 2012-01-09 14:48:53 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.8 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 Honza Horak 2012-01-09 17:18:16 UTC
Created attachment 551620 [details]
patch for spec file

This patch adds unixODBC library path explicitly to the configure command and seems to fix the issue.

Comment 5 RHEL Program Management 2012-06-12 01:19:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 6 Tom Lane 2013-03-06 04:05:34 UTC
This is fixed in Fedora using Honza's patch, so it should be in RHEL7 and later, but I don't see that we'll bother in RHEL5.


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