RPM5 Build Errors

Daniel Murungi dmurungi at dicts.mak.ac.ug
Fri Mar 7 03:17:00 PST 2008


I looked through the Makefiles (rpm-5.0.3) like you suggested and they 
reference zlib as -lrpmz. I changed this to -lz and this takes care of the 
undefined references to Inflate* but not the xstrdup, xmalloc, xcalloc and 
xrealloc. 

I will compile rpm-4.0.4 again with -lz and see if this takes care of the  
SSP issues. 

hlfs-dev-request at linuxfromscratch.org writes: 

> Send hlfs-dev mailing list submissions to
> 	hlfs-dev at linuxfromscratch.org 
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
> or, via email, send a message with subject or body 'help' to
> 	hlfs-dev-request at linuxfromscratch.org 
> 
> You can reach the person managing the list at
> 	hlfs-dev-owner at linuxfromscratch.org 
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of hlfs-dev digest..." 
> 
> 
> Today's Topics: 
> 
>    1. Re: RPM5 Build Errors (Robert Connolly)
>    2. Goals (Robert Connolly) 
> 
> 
> ---------------------------------------------------------------------- 
> 
> Message: 1
> Date: Thu, 06 Mar 2008 19:20:45 -0500
> From: Robert Connolly <robert at linuxfromscratch.org>
> Subject: Re: RPM5 Build Errors
> To: Hardened LFS Development List <hlfs-dev at linuxfromscratch.org>
> Message-ID: <200803061920.48535.robert at linuxfromscratch.org>
> Content-Type: text/plain; charset="iso-8859-1" 
> 
> Looks like two problems. First start with zlib missing. Add '-lz' somehow, 
> like to LDFLAGS in /sources/rpm-5.0.3/tools/Makefile. Grep for 'libz.a', and 
> replace all of them with '-lz' if they exist. 
> 
> The segmentation fault / ssp error may fix itself after zlib is working. Let 
> me know. 
> 
> I'll try to install rpm5 too. 
> 
> robert 
> 
> On Wednesday March 5 2008 04:57:31 am Daniel Murungi wrote:
>> Hello 
>>
>> Thanks Robert for the HLFS SVN-20080222, it builds without issues (apart
>> from the tests, some sym links, and psmisc which istaken care of in the
>> devel archives). 
>>
>> I have tried to build RPM for my hlfs but I get the following error;
>> make[2]: Leaving directory `/sources/rpm-5.0.3/rpmconstant'
>> Making all in tools
>> make[2]: Entering directory `/sources/rpm-5.0.3/tools'
>> gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I../lib -I../rpmdb -I../rpmio
>>  -I../misc -I../db3 -I../db3  -DRPM_OS_LINUX=020621  -g -O2 -fPIC -DPIC
>> -fpie -D_GNU_SOURCE -D_REENTRANT -MT rpm2cpio.o -MD -MP -MF
>> .deps/rpm2cpio.Tpo -c -o rpm2cpio.o rpm2cpio.c
>> rpm2cpio.c: In function 'main':
>> rpm2cpio.c:15: warning: not protecting local variables: variable length
>> buffer
>> mv -f .deps/rpm2cpio.Tpo .deps/rpm2cpio.Po
>> /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -fPIC -DPIC -fpie
>>  -D_GNU_SOURCE -D_REENTRANT  -pie -o rpm2cpio rpm2cpio.o
>> ../build/librpmbuild.la ../lib/librpm.la ../rpmdb/librpmdb.la
>> ../rpmio/librpmio.la ../misc/librpmmisc.la  -lpopt -lbeecrypt -lpthread
>> gcc -g -O2 -fPIC -DPIC -fpie -D_GNU_SOURCE -D_REENTRANT -pie -o
>> .libs/rpm2cpio rpm2cpio.o  ../build/.libs/librpmbuild.so
>> /sources/rpm-5.0.3/lib/.libs/librpm.so -L/sources/rpm-5.0.3/db3
>>  -L/sources/rpm-5.0.3/zlib -L/sources/rpm-5.0.3/file/src
>>  -L/sources/rpm-5.0.3/file
>>  -L/sources/butterfly-build/i686-pc-linux-uclibc/libstdc++-v3/src
>>  -L/sources/butterfly-build/i686-pc-linux-uclibc/libstdc++-v3/src/.libs
>>  -L/sources/butterfly-build/./ld -L/sources/butterfly-build/./gcc
>>  -L/usr/lib/gcc/.. ../lib/.libs/librpm.so
>> /sources/rpm-5.0.3/rpmdb/.libs/librpmdb.so ../rpmdb/.libs/librpmdb.so
>> /sources/rpm-5.0.3/rpmio/.libs/librpmio.so ../rpmio/.libs/librpmio.so
>> /sources/rpm-5.0.3/misc/.libs/librpmmisc.so ../misc/.libs/librpmmisc.so
>> /usr/lib/libpopt.so -lc /usr/lib/libbeecrypt.so -ldl /usr/lib/libstdc++.so
>> /lib/libintl.so /usr/lib/libssp.so /usr/lib/libintl.so -lpthread
>>  -Wl,--rpath -Wl,/opt/rpm5/lib
>> /usr/lib/libssp.so: warning: the 'gets' function is dangerous and should
>> not be used.
>> ../build/.libs/librpmbuild.so: undefined reference to `xmalloc'
>> /sources/rpm-5.0.3/misc/.libs/librpmmisc.so: undefined reference to
>> `inflate'
>> ../build/.libs/librpmbuild.so: undefined reference to `xstrdup'
>> ../build/.libs/librpmbuild.so: undefined reference to `xcalloc'
>> ../build/.libs/librpmbuild.so: undefined reference to `xrealloc'
>> /sources/rpm-5.0.3/misc/.libs/librpmmisc.so: undefined reference to
>> `inflateEnd'
>> /sources/rpm-5.0.3/misc/.libs/librpmmisc.so: undefined reference to
>> `inflateInit2_'
>> collect2: ld returned 1 exit status
>> make[2]: *** [rpm2cpio] Error 1
>> make[2]: Leaving directory `/sources/rpm-5.0.3/tools'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/sources/rpm-5.0.3'
>> make: *** [all] Error 2
>> root:/sources/rpm-5.0.3# cd .. 
>>
>>
>> I also tried earlier versions of rpm ( 4.4 ,4.3, 4.2, 4.0) but get errors
>> as well. The only limited success I have had is with version 4.0.4 which
>> runs but has some SSP related issues; 
>>
>> root:/sources# /opt/rpm2/bin/rpm --help
>> Usage: rpm [OPTION...] 
>>
>> Query options (with -q or --query):
>>   -c, --configfiles                list all configuration files
>>   -d, --docfiles                   list all documentation files
>>   --dump                           dump basic file information
>>   -l, --list                       list files in package
>>   --queryformat=QUERYFORMAT        use the following query format
>>   -s, --state                      display the states of the listed files
>>   -v, --verbose                    display a verbose file listing
>>   -a, --all                        query/verify all packages
>>   -f, --file                       query/verify package(s) owning file
>>   -g, --group                      query/verify package(s) in group
>>   -p, --package                    query/verify a package file (i.e. a
>> binary
>>                                    *.rpm file)
>> *** stack smashing detected ***: rpm terminated
>> Illegal instruction 
>>
>> If anyone has successfully built working rpm binaries for HLFS, please help
>  
> 
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: not available
> Url : http://linuxfromscratch.org/pipermail/hlfs-dev/attachments/20080306/81c5cf80/attachment-0001.bin  
> 
> ------------------------------ 
> 
> Message: 2
> Date: Thu, 06 Mar 2008 23:05:15 -0500
> From: Robert Connolly <robert at linuxfromscratch.org>
> Subject: Goals
> To: Hardened LFS Development List <hlfs-dev at linuxfromscratch.org>
> Message-ID: <200803062305.19797.robert at linuxfromscratch.org>
> Content-Type: text/plain; charset="us-ascii" 
> 
> Hi. 
> 
> I need goals for 1.0. A democratic (more than three people) vote on what to 
> do, and why. I'm a soldier, not a general. I need a roadmap. 
> 
> Before 1.0 I'd like to do some auditing effort, such as checking how each 
> package handles temp files, and how each package opens files with 
> permissions, and document it. Small things, that nowdays need to be done. 
> 
> I have been trying to get better at stabilization, while trying to diversify 
> hlfs at the same time. I have no doubt in my efforts will continue, but I am 
> concerned with the reputation of hlfs. I'm losing count of how many years 
> have gone by. 
> 
> The LFS project has been very generous in hosting this project, and I have 
> always believed it is worthwhile, but the scope of this project is quite 
> broad and some definitions should be set. Goals for 2.0 and 1.0 should 
> probably be set at the same time, to help contain the scope of 1.0. I would 
> like 1.0 to be as broad as possible, such as featuring more than the 
> toolchain.  
> 
> Please feel free to comment. 
> 
> robert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: not available
> Url : http://linuxfromscratch.org/pipermail/hlfs-dev/attachments/20080306/4e66ff63/attachment-0001.bin  
> 
> ------------------------------ 
> 
> -- 
> http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page 
> 
> 
> End of hlfs-dev Digest, Vol 884, Issue 1
> ****************************************



More information about the hlfs-dev mailing list