[Rpm-maint] Building rpm-4.14.0

Michael Schroeder mls at suse.de
Mon Dec 11 14:56:23 UTC 2017


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.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX GmbH,           GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-maint mailing list