RPM Community Forums

Mailing List Message of <rpm-users>

Re: Building a stripped-down RPM5

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Thu 25 Dec 2008 - 22:25:09 CET
Message-Id: <200812252225.09775.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At least that riddle I've solved: libdb-4.5 becomes a dynamic library 
dependency because of other external libraries (e. g. kerberos), so that's 
just my "fault".

		-- Eric

On Tuesday 16 December 2008, Eric MSP Veith <eveith@wwweb-library.net> 
wrote:
> Ok, I rebuilt rpm-5.1.6; this is a excerpt of the command used for
> compiling linking librpmdb-5.0.so:
>
> libtool: compile:
> i686-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I
> ../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../db3
> -I../db3 -I. ./lua/local -I../lua/local -I../lua -I../lua -I../file/src
> -I../file/src -I../fi le -I../file -I../xar/include -I../xar/include
> -I../xar -I../xar -DRPM_OS_LINUX= 020623 -I/usr/include/neon -O2 -Os
> -march=i686 -m32 -pipe -fPIC -DPIC -D_GNU_SOU RCE -D_REENTRANT
> -D_LARGEFILE64_SOURCE -DNE_LFS -MT
> rpmdb.lo -MD -MP -MF .deps/r
> pmdb.Tpo -c rpmdb.c  -fPIC -DPIC -o .libs/rpmdb.o
>
> [...]
>
> /bin/sh ../libtool --tag=CC   --mode=link
> i686-slackware-linux-gcc  -O2 -Os -mar
> ch=i686 -m32 -pipe -fPIC -DPIC -fpie -D_GNU_SOURCE -D_REENTRANT
> -D_LARGEFILE64_S OURCE -DNE_LFS     -release 5.0
> -Wl,--version-script=./librpmdb.vers -pie -pie         -o librpmdb.la
> -rpath /usr/lib dbconfig.lo fprint.lo hdrfmt.lo hd
> rNVR.lo header.lo header_internal.lo legacy.lo merge.lo pkgio.lo
> poptDB.lo rpmdb
> .lo rpmwf.lo signature.lo tagname.lo tagtbl.lo db3.lo
> sqlite.lo ../rpmio/librpmi
> o.la ../misc/librpmmisc.la -lpcreposix -lpcre -ldl -lm -lsqlite3 -lneon
> -lbeecry pt -lbz2 -lz -lpopt -lpthread -lrt  -lelf -lneon   -lpcre
> libtool: link:
> i686-slackware-linux-gcc -shared  .libs/dbconfig.o .libs/fprint.o
>  .libs/hdrfmt.o .libs/hdrNVR.o .libs/header.o .libs/header_internal.o
> .libs/lega cy.o .libs/merge.o .libs/pkgio.o .libs/poptDB.o .libs/rpmdb.o
> .libs/rpmwf.o .lib s/signature.o .libs/tagname.o .libs/tagtbl.o
> .libs/db3.o .libs/sqlite.o   -Wl,-r path
> -Wl,/usr/src/rpm/BUILD/rpm-5.1.6/rpmio/.libs -Wl,-rpath
> -Wl,/usr/src/rpm/BU ILD/rpm-5.1.6/misc/.libs
> -L/usr/src/rpm/BUILD/rpm-5.1.6/misc/.libs ../rpmio/.lib s/librpmio.so
> -L/usr/src/rpm/BUILD/rpm-5.1.6/db3 -L/usr/src/rpm/BUILD/rpm-5.1.6/ lua
> -L/usr/src/rpm/BUILD/rpm-5.1.6/file/src
> -L/usr/src/rpm/BUILD/rpm-5.1.6/file
> -L/usr/src/rpm/BUILD/rpm-5.1.6/xar/lib -L/usr/src/rpm/BUILD/rpm-5.1.6/xar
> -L/usr /kerberos/lib
> -L/usr/src/rpm/BUILD/gcc-g++-obj/i686-slackware-linux/libstdc++-v3 /src
> -L/usr/src/rpm/BUILD/gcc-g++-obj/i686-slackware-linux/libstdc++-v3/src/.l
>ib s -L/usr/src/rpm/BUILD/gcc-g++-obj/gcc -L/usr/i686-slackware-linux/bin
> -L/usr/i6 86-slackware-linux/lib
> -L/usr/src/rpm/BUILD/gcc-obj/i686-slackware-linux/libstdc ++-v3/src
> -L/usr/src/rpm/BUILD/gcc-obj/i686-slackware-linux/libstdc++-v3/src/.li bs
> -L/usr/src/rpm/BUILD/gcc-obj/./gcc
> -L/usr/lib/gcc/i686-slackware-linux/../../ ../i686-slackware-linux/lib
> -L/usr/lib/gcc/i686-slackware-linux/../.. -L/usr/lib
> /usr/src/rpm/BUILD/rpm-5.1.6/misc/.libs/librpmmisc.so
> ../misc/.libs/librpmmisc. so /usr/lib/libacl.so /usr/lib/libattr.so
> /usr/lib/libxml2.so -lc -lgcc_s /usr/l ib/libpcreposix.so -lm
> /usr/lib/libsqlite3.so /usr/lib/libbeecrypt.so /usr/lib/l ibstdc++.so
> /usr/lib/libpopt.so -lpthread -lrt -lelf /usr/lib/libneon.so -lssl /
> usr/kerberos/lib/libgssapi.so /usr/kerberos/lib/libkrb5.so
> /usr/kerberos/lib/lib asn1.so /usr/kerberos/lib/libcom_err.so -lcrypto
> /usr/kerberos/lib/libroken.so - ldb -lcrypt -ldl -lresolv
> /usr/lib/libexpat.so /usr/lib/libpcre.so -lz -lbz2  -m arch=i686 -m32
> -Wl,--version-script=./librpmdb.vers   -Wl,-soname -Wl,librpmdb-5 .0.so
> -o .libs/librpmdb-5.0.so
>
>
> I hope that suffices for diagnostics.
>
> Thanks for the help, again.
>
> 		-- Eric
>
> On Tuesday 16 December 2008, Jeff Johnson <n3npq@mac.com> wrote:
> > Its not *really* wrong, just unnnecessary.
> >
> > It will be easier (for me anyways) to identify the flaw from working
> > backwards
> > from the linkage line for one of the rpm libraries in the build log
> > that to try to work
> > forward from configure options.
>
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklT+jUACgkQfkUtd7QNU/t0eACeP1I1hCpBB7AEwNnC2Vfp8/+P
tMUAn2EkhhlKKczS3Uu7a1pbVwGRwTG4
=p0v3
-----END PGP SIGNATURE-----
Received on Thu Dec 25 22:25:13 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.