Hide Forgot
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
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 ...)
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.
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.
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.
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.