Bug 56255 - RPM build error: File not found by glob: apr_dbd_pgsql*
Summary: RPM build error: File not found by glob: apr_dbd_pgsql*
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: 1.5.3
Hardware: PC Linux
: P2 major with 3 votes (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 02:17 UTC by Widyachacra Rajapaksha
Modified: 2014-03-13 15:43 UTC (History)
1 user (show)



Attachments
config.log file on ./BUILD/apr-util-1.5.3/config.log (15.59 KB, application/x-bzip)
2014-03-13 02:17 UTC, Widyachacra Rajapaksha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Widyachacra Rajapaksha 2014-03-13 02:17:51 UTC
Created attachment 31386 [details]
config.log file on ./BUILD/apr-util-1.5.3/config.log

I'm trying to build apr-util-1.5.3.tar.bz2 which I downloaded from your site.

I'm getting the bellow error while building the RPM using rpmbuild -tb apr-util-1.5.3.tar.bz2 and I couldn't find a solution to resolve this from the internet. 


Distro: CentOS release 6.5 (Final)

Installed RPM version(s);

[root@node1 test]# rpm -qa|grep -i apr
apr-1.5.0-1.x86_64

I was able to build apr-1.5.0-1.tar.bz2 without any issues.


Command I tried: #rpmbuild -tb apr-util-1.5.3.tar.bz2


Error I'm getting:
......>
+ exit 0
Provides: libtool(/usr/lib64/libaprutil-1.la) pkgconfig(apr-util-1) = 1.5.3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires: /bin/sh /usr/bin/perl /usr/bin/pkg-config libaprutil-1.so.0()(64bit) pkgconfig(apr-1)
Processing files: apr-util-dbm-1.5.3-1.x86_64
Provides: apr_dbm_db-1.so()(64bit) libtool(/usr/lib64/apr-util-1/apr_dbm_db.la)
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: apr_dbm_db-1.so()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libdb-4.7.so()(64bit) libpthread.so.0()(64bit) rtld(GNU_HASH)
Processing files: apr-util-pgsql-1.5.3-1.x86_64
error: File not found by glob: /root/rpmbuild/BUILDROOT/apr-util-1.5.3-1.x86_64/usr/lib64/apr-util-1/apr_dbd_pgsql*


RPM build errors:
    File not found by glob: /root/rpmbuild/BUILDROOT/apr-util-1.5.3-1.x86_64/usr/lib64/apr-util-1/apr_dbd_pgsql*
<......

[root@node1 SOURCES]# arch
x86_64


[root@node1 SOURCES]# rpm -qa|grep -i apr
apr-1.5.0-1.x86_64
apr-devel-1.5.0-1.x86_64

[root@node1 rpmbuild]# cd ./BUILD/apr-util-1.5.3/test/
[root@node1 test]# ldd testall
    linux-vdso.so.1 =>  (0x00007fffd9d6b000)
    libaprutil-1.so.0 => /root/rpmbuild/BUILD/apr-util-1.5.3/.libs/libaprutil-1.so.0 (0x00007fde1601e000)
    libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fde15dec000)
    libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00007fde15bb9000)
    libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fde159b5000)
    librt.so.1 => /lib64/librt.so.1 (0x00007fde157ac000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fde15575000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fde15358000)
    libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007fde1510a000)
    liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007fde14efb000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fde14b67000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fde16247000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007fde148ef000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fde146d5000)
    libssl3.so => /usr/lib64/libssl3.so (0x00007fde14497000)
    libsmime3.so => /usr/lib64/libsmime3.so (0x00007fde1426a000)
    libnss3.so => /usr/lib64/libnss3.so (0x00007fde13f2c000)
    libnssutil3.so => /usr/lib64/libnssutil3.so (0x00007fde13d00000)
    libplds4.so => /lib64/libplds4.so (0x00007fde13afb000)
    libplc4.so => /lib64/libplc4.so (0x00007fde138f6000)
    libnspr4.so => /lib64/libnspr4.so (0x00007fde136b9000)
    libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fde1349e000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fde1329a000)
    libz.so.1 => /lib64/libz.so.1 (0x00007fde13083000)
   
[root@node1 test]# rpm -qf /usr/lib64/libapr-1.so.0
apr-1.5.0-1.x86_64

[root@node1 test]# rpm -qa|grep -i apr
apr-1.5.0-1.x86_64
apr-devel-1.5.0-1.x86_64

[root@node1 test]# ./testall
teststrmatch        : SUCCESS
testuri             : SUCCESS
testuuid            : SUCCESS
testbuckets         : SUCCESS
testpass            : SUCCESS
testmd4             : SUCCESS
testmd5             : SUCCESS
testcrypto          : SUCCESS
testldap            : SUCCESS
testdbd             : FAILED 1 of 2
testdate            : SUCCESS
testmemcache        : SUCCESS
testxml             : SUCCESS
testxlate           : SUCCESS
testrmm             : SUCCESS
testdbm             : FAILED 1 of 2
testqueue           : SUCCESS
testreslist         : SUCCESS
Failed Tests           Total    Fail    Failed %
===================================================
testdbd                    2       1     50.00%
testdbm                    2       1     50.00%

[root@node1 test]# pwd
/root/rpmbuild/BUILD/apr-util-1.5.3/test

[root@node1 test]# cat /etc/redhat-release
CentOS release 6.5 (Final)
Comment 1 Widyachacra Rajapaksha 2014-03-13 15:43:40 UTC
Dear Devs,

I guess I found the issue. But Sorry I didn't give you the completed details to reproduce this error. So, please kindly find the below steps for it;

Steps to reproduce the error;

1)
Install CentOS 6.5(Final) x86_64

2)
add below repo;

[pgdg93]
name=PostgreSQL 9.3 $releasever - $basearch
baseurl=http://yum.postgresql.org/9.3/redhat/rhel-$releasever-$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-93


3)
Install 'postgresql93-devel-9.3.3-1PGDG.rhel6.x86_64' from below repo but not the default 'postgresql-devel-8.4.20-1.el6_5.x86_64'

4)
download the latest apr & apr-utils from 'http://apr.apache.org/download.cgi'

5)
Installed all the required dependancies to compile these sources(apr,apr-utils)

6)
login from root

7)
cd ~/
mkdir -p {BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}

8)
copy downloaded sources(apr,apr-utils) to SOURCES

9)
rpmbuild -tb apr-1.5.0.tar.bz2

***This should build without any issues***

10)
rpmbuild -tb apr-util-1.5.3.tar.bz2

***sure you will end up with the above said error***

---

Resolution;

1)
Installed the default 'postgresql-devel' pacakge(postgresql-devel-8.4.20-1.el6_5.x86_64);

yum install postgresql-devel

2)
rpmbuild -tb apr-util-1.5.3.tar.bz2

now everything will go smoothly.

So, I guess this 'apr-util-1.5.3.tar.bz2' package is not build with 'postgresql93-devel-9.3.3-1PGDG.rhel6.x86_64'