[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Compiling RPM 4.1 from source



I admit I'm a bit of a newbie to linux, so I'm sorry if my question

seems stupid

 

My build of RPM seemes to have messed up and now gives me a

segmentation fault whenever I try to update/install/erase something

(works fine for -qa --rebuilddb, etc...) so I have decided to upgrade

from 4.0.4 to 4.1 and see if that helps

 

naturally I can't upgrade using the rpm -Uvh since it gives me a

segmentation fault so I am now trying to compile rpm from source I've updated libtool, automake and autoconf to the required versions

and autogen seems to run fine, I then go on to compile by running

make and after a few good minutes I get the following error:

 

 

make[2]: Leaving directory `/root/rpm-4.1/doc'

Making all in .

make[2]: Entering directory `/root/rpm-4.1'

/bin/sh ./libtool --mode=link gcc  -g -O2 -D_GNU_SOURCE -D_REENTRANT - Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-

char-subscripts   -o rpm -all-static  

rpm.o ./build/librpmbuild.la ./lib/librpm.la ./rpmdb/librpmdb.la ./rpm io/librpmio.la ./popt/libpopt.la ./libelf/lib/libelf.la ./zlib/libz.la

  -lrt -lpthread  -L./zlib  -L/usr/local/lib  -lbz2

gcc -g -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes -Wno-char-subscripts -o rpm -static

rpm.o  ./build/.libs/librpmbuild.a ./lib/.libs/librpm.a ./rpmdb/.libs/ librpmdb.a ./rpmio/.libs/librpmio.a -lrt -lpthread -lrt -lpthread - L/root/rpm-4.1/zlib - L/usr/local/lib ./popt/.libs/libpopt.a ./libelf/lib/.libs/libelf.a ./z lib/.libs/libz.al -lrt -lpthread -lbz2

./build/.libs/librpmbuild.a(names.o)(.text+0x478): In function

`getGname':

/root/rpm-4.1/build/names.c:129: Using 'getgrgid' in statically

linked applications requires at runtime the shared libraries from the

glibc version used for linking

./build/.libs/librpmbuild.a(names.o)(.text+0x57c): In function

`getGnameS':

/root/rpm-4.1/build/names.c:153: Using 'getgrnam' in statically

linked applications requires at runtime the shared libraries from the

glibc version used for linking

./rpmio/.libs/librpmio.a(ugid.o)(.text+0x1f9): In function

`gnameToGid':

/root/rpm-4.1/rpmio/ugid.c:100: Using 'endgrent' in statically linked

applications requires at runtime the shared libraries from the glibc

version used for linking

./build/.libs/librpmbuild.a(names.o)(.text+0x1f8): In function

`getUnameS':

/root/rpm-4.1/build/names.c:81: Using 'getpwnam' in statically linked

applications requires at runtime the shared libraries from the glibc

version used for linking

./build/.libs/librpmbuild.a(names.o)(.text+0xf4): In function

`getUname':

/root/rpm-4.1/build/names.c:57: Using 'getpwuid' in statically linked

applications requires at runtime the shared libraries from the glibc

version used for linking

./lib/.libs/librpm.a(psm.o)(.text+0x4272): In function `rpmpsmStage':

/root/rpm-4.1/lib/psm.c:2243: Using 'endpwent' in statically linked

applications requires at runtime the shared libraries from the glibc

version used for linking

./lib/.libs/librpm.a(rpmchecksig.o)(.text+0xa96): In function

`rpmReSign':

/root/rpm-4.1/lib/rpmchecksig.c:349: the use of `mktemp' is

dangerous, better use `mkstemp'

./build/.libs/librpmbuild.a(names.o)(.text+0x7da): In function

`buildHost':

/root/rpm-4.1/build/names.c:206: Using 'gethostbyname' in statically

linked applications requires at runtime the shared libraries from the

glibc version used for linking

./rpmio/.libs/librpmio.a(url.o)(.text+0x1081): In function `urlSplit':

/root/rpm-4.1/rpmio/url.c:488: Using 'getservbyname' in statically

linked applications requires at runtime the shared libraries from the

glibc version used for linking

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libbz2.a(bzlib.o)

(.text+0x2703): In function `bzopen_or_bzdopen':

: undefined reference to `__ctype_b'

collect2: ld returned 1 exit status

make[2]: *** [rpm] Error 1

make[2]: Leaving directory `/root/rpm-4.1'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/rpm-4.1'

make: *** [all] Error 2

[root@secure rpm-4.1]#

 

 

 

help? :)

 

 

 

 

 

 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []