Description of problem: [root@untap-xenu SPECS]# rpmbuild -bb mod_auth_mysql.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.24097 + umask 022 [...] /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_auth_mysql.la -rpath /usr/lib64/httpd/modules -module -avoid-version mod_auth_mysql.lo -L/usr/lib/mysql -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . error: Bad exit status from /var/tmp/rpm-tmp.24097 (%build) Version-Release number of selected component (if applicable): 3.0.0-3 How reproducible: not tried Steps to Reproduce: 1.xenguest.py install a stock FC5 2. yum install mysql-devel httpd-devel 3. try to compile mod_auth_mysql Actual results: linking fialure with libmysqlclient Expected results: an rpm :) Additional info: Neither installing mysqlclient10 or mysqlclient14 resolved this problem It might matter that the xen0 and xenU is x86_64
Look at the %build output: it lists "-L/usr/lib/mysql". This means %{_libdir} is expanding as /usr/lib rather than /usr/lib64 - this is some build environment problem, not a packaging problem.