[Apt-Rpm] apt-0.5.15lorg3.94 build fails on RH7 and RHEL2.1
Dag Wieers
dag at wieers.com
Wed Jun 11 14:19:31 PDT 2008
On Wed, 11 Jun 2008, Dag Wieers wrote:
> Hi,
>
> Building newer apt packages for RPMforge (for testing purposes) and I noticed
> that apt-0.5.15lorg3.94 fails to build for RH7 and RHEL2.1.
>
> The main reason is that it fails to find rpmlib.h or rpm.pc on the dated
> rpm-4.0.4-7x release and bails out. The easiest solution would be to patch
> configure, but I would prefer if there was an option to configure in the
> future to have it work.
>
> On RHEL2.1:
>
> checking pkg-config is at least version 0.9.0... yes
> checking for RPM... yes
> Package rpm was not found in the pkg-config search path.
> Perhaps you should add the directory containing `rpm.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'rpm' found
> checking for RPM version... configure: error: can't parse RPM version
> error: Bad exit status from /dar/tmp/rpm-tmp.97583 (%build)
>
> On RH7:
>
> checking pkg-config is at least version 0.9.0... yes
> checking for RPM... Package rpm was not found in the pkg-config
> search
> path.
> Perhaps you should add the directory containing `rpm.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'rpm' found
> no
> checking for rpm... /bin/rpm
> checking for RPM version... 4.0.4
> checking db1/db.h usability... yes
> checking db1/db.h presence... yes
> checking for db1/db.h... yes
> checking for rpmdbOpen in -lrpmdb... yes
> checking for RPM libraries... -lrpm -lrpmdb -lrpmio -lz -lbz2 -lpopt
> checking rpm/rpmlib.h usability... no
> checking rpm/rpmlib.h presence... no
> checking for rpm/rpmlib.h... no
> configure: error: Can't find rpmlib.h
> error: Bad exit status from /dar/tmp/rpm-tmp.24965 (%build)
>
> And for apt-0.5.15lorg3.2 I already have to provide some environment
> variables to make configure happy on RHEL2.1:
>
> export PKG_CONFIG="/bin/true"
> export LIBXML2_CFLAGS="$(xml2-config --cflags)"
> export LIBXML2_LIBS="$(xml2-config --libs)"
>
> Especially the PKG_CONFIG should be unneeded to make the LIBXML environment
> variables work.
And also a link problem with apt-0.5.15lorg3.94 and apt-0.5.15lorg3.94a:
g++ -O2 -pipe -march=i386 -mcpu=i686 -o .libs/cdrom cdrom.o ../apt-pkg/.libs/libapt-pkg.so /usr/lib/libxml2.so /usr/lib/librpm.so -L/usr/src/build/229501-i386/BUILD/rpm-4.2/zlib -L/usr/local/lib /usr/lib/librpmdb.so -lelf /usr/lib/librpmio.so -lrt -lpthread /usr/lib/libpopt.so -ldl -lz -lbz2
../apt-pkg/.libs/libapt-pkg.so: undefined reference to `rpmsqCaught'
collect2: ld returned 1 exit status
make[1]: *** [cdrom] Error 1
make[1]: Leaving directory `/dar/build/apt-0.5.15lorg3.94a/methods'
make: *** [all-recursive] Error 1
error: Bad exit status from /dar/tmp/rpm-tmp.56315 (%build)
Thanks in advance,
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the Apt-Rpm
mailing list