On 12/11/2017 10:29 AM, Baho Utot wrote:
On 12/11/2017 9:56 AM, Michael Schroeder wrote:
On Mon, Dec 11, 2017 at 09:32:50AM -0500, Baho Utot wrote:
OK here is now what I am trying:
tar xvf rpm-4.14.0.tar.bz2
cd rpm-4.14.0
tar ../db-6.0.20.tar.gz
ln -s db-6.0.20 db
./configure --prefix=/usr --with-crypto=openssl --without-external-db
--without-archive
make
the configure seems to go ok
If get the following from the make
relocation R_X86_64_32 against 'rodata' can not be used when making
a shared
object; recompile with -fPIC ../db3/.libs/libdb-6.0.a(mut_tas.o): error
adding symbols: Bad value
I have no idea what this is or how to fix it.
Hey, you're running into the same errors as I did. ;-)
This is broken because CFLAGS is no longer exported.
(commit bd3eb213360df1843182b881659d9a3eeff309bb)
Please add --with-pic as in the following patch:
--- db3/configure
+++ db3/configure
@@ -10,9 +10,9 @@
# XXX edit CFLAGS= ... out of invocation args ???
ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^
]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
-CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
+CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
--enable-shared --enable-static \
- --with-uniquename=_rpmdb --srcdir=$db_dist
+ --with-uniquename=_rpmdb --srcdir=$db_dist --with-pic
mv Makefile Makefile.orig
cat Makefile.orig | sed -e '/^install[:-]/c\
Cheers,
Michael.
Ok I applied the patch and now I get
/home/lfs/rpm-4.14.0/rpmio/.libs/librpmio.so: undefined reference to
'EVP_md2'
Is this because of how I compiled openssl?
I supect it is
Ok I recompiles openssl like this
./config \
--prefix=%{_prefix} \
--libdir=lib \
--openssldir=/etc/ssl \
shared \
zlib-dynamic \
enable-md2
The tried rpm once again
tar xvf rpm-4.14.0.tar.bz2
pushd rpm-4.14.0
tar ../db-6.0.20.tar.gz
ln -s db-6.0.20 db
added this to db3/configure by using vim as the patch I could not get
working( I'll remake patch )
+ --with-uniquename=_rpmdb --srcdir=$db_dist --with-pic
./configure --prefix=/usr --with-crypto=openssl --without-external-db
--without-archive
make
Now make completes
I think I can handle it from here and make an rpm.spec file to build this.
Thank you for all your help
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint