[Rpm-maint] Building rpm-4.14.0
Baho Utot
baho-utot at columbus.rr.com
Mon Dec 11 15:29:12 UTC 2017
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
More information about the Rpm-maint
mailing list