RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Compile Error on 5.0a1

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Mon 12 Nov 2007 - 09:03:59 CET
Message-ID: <20071112080359.GA95025@engelschall.com>
On Sun, Nov 11, 2007, Andrey Falko wrote:

> I get the following compile error on "make" on a freshly extracted
> rpm-5.0a1.tar.gz:
>
> i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -DRPM_OS_LINUX=020622
> -g -O2 -D_GNU_SOURCE -D_REENTRANT -MT librpmmisc.lo -MD -MP -MF .deps/
> librpmmisc.Tpo -c librpmmisc.c -o librpmmisc.o >/dev/null 2>&1
> mv -f .deps/librpmmisc.Tpo .deps/librpmmisc.Plo
> /bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -g -O2
> -D_GNU_SOURCE -D_REENTRANT -release 5.0 -Wl,--version-script=./librpmmisc.vers
> -L../db3  -L../zlib   -o librpmmisc.la -rpath /usr/lib librpmmisc.lo -ldb-4.6
> -lrpmz -lpopt -lbeecrypt -lbz2 -lpthread
> i686-pc-linux-gnu-gcc -shared  .libs/librpmmisc.o -Wl,--whole-archive /tmp/rpm-
> 5.0a1/db3/.libs/libdb- 4.6.a /tmp/rpm-5.0a1/zlib/.libs/librpmz.a
> -Wl,--no-whole-archive  -L/tmp/rpm-5.0a1/db3 -L/tmp/rpm-5.0a1/zlib /usr/lib/
> libpopt.so /usr/lib/libbeecrypt.so -lbz2 -lpthread  -Wl,--version-script=./
> librpmmisc.vers -Wl,-soname -Wl, librpmmisc-5.0.so -o .libs/librpmmisc-5.0.so
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
> cannot open linker script file ./librpmmisc.vers: No such file or directory
> collect2: ld returned 1 exit status
> make[2]: *** [librpmmisc.la] Error 1
> make[2]: Leaving directory /tmp/rpm- 5.0a1'
> make: *** [all] Error 2
>
> My configure options (a plain old "./configure" also gives the same error):
>
> ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
> --localstatedir=/var/lib --prefix=/usr --without-selinux --enable-nls
> --without-libelf --with-python --without-dmalloc --with-bzip2
> --without-keyutils --without-file --without-neon --without-sqlite --without-lua
> --without-xar --build=i686-pc-linux-gnu
>
> I can get error to go away with:
>
>     sed -i 's#--version-script=/librpmmisc.vers##' \
>         misc/Makefile.am \
>         misc/Makefile.in
>
> Before doing ./configure. Obviously that is not the right solution. The source
> directory does not have a librpmmisc.vers file.
>
> Is this error on my end? I've been seeing it in snapshots since mid-October.

The "librpmmisc.vers" file was missing from the "EXTRA_DIST"
variable in "misc/Makefile.am" and this way was not picked up by
"make dist" for inclusion into the release tarball. Now fixed:
http://rpm5.org/cvs/chngview?cn=8738. Thanks for your feedback.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Mon Nov 12 09:12:19 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.