Bug 208057

Summary: missing buildrequire
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: mod_auth_mysqlAssignee: Joe Orton <jorton>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-26 07:41:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Wouters 2006-09-26 05:35:44 UTC
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

Comment 1 Joe Orton 2006-09-26 07:41:41 UTC
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.