LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2004, 09:32 PM   #1
ababkin
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Posts: 76

Rep: Reputation: 15
Can't Use Rpm No More


Hi

I am relatively new to linux
I installed RH9 and wanted to upgrade and play around with new 2.6.4 kernel.
But first i decided to upgrade RPM to version 4.1, and downloaded not an rpm package but the source.
After I compiled and installed it, (./configure; make; make install) i cannot use RPM no more as it complains about db3 and db4, for example:
error: cannot open Packages index using db3 - Function not implemented (38)

What is a sure way to make RPM work again? I tried to reinstall RPM packages from distro but that did not work

I tried to find answer on google and forums but no luck thus far

Also I read somwhere that its better to install packages and apps, compiling them on my machine rather than using rpm packages. Is that true? and why.

Please help
I dont want to reinstall the whole linux again

Thanks
Alex

PS:
the RPM 4.1 does not compile for some reason
here are the messages it gives right before terminating build:

legacy.c:12:18: gelf.h: No such file or directory
legacy.c: In function `open_dso':
legacy.c:75: `Elf' undeclared (first use in this function)
legacy.c:75: (Each undeclared identifier is reported only once
legacy.c:75: for each function it appears in.)
legacy.c:75: `elf' undeclared (first use in this function)
legacy.c:76: `Elf_Scn' undeclared (first use in this function)
legacy.c:76: `scn' undeclared (first use in this function)
legacy.c:77: `Elf_Data' undeclared (first use in this function)
legacy.c:77: `data' undeclared (first use in this function)
legacy.c:78: `GElf_Ehdr' undeclared (first use in this function)
legacy.c:78: parse error before "ehdr"
legacy.c:79: `GElf_Shdr' undeclared (first use in this function)
legacy.c:80: `GElf_Dyn' undeclared (first use in this function)
legacy.c:83: warning: implicit declaration of function `elf_version'
legacy.c:83: `EV_CURRENT' undeclared (first use in this function)
legacy.c:85: warning: implicit declaration of function `elf_begin'
legacy.c:85: `ELF_C_READ' undeclared (first use in this function)
legacy.c:86: warning: implicit declaration of function `elf_kind'
legacy.c:87: `ELF_K_ELF' undeclared (first use in this function)
legacy.c:87: warning: implicit declaration of function `gelf_getehdr'
legacy.c:87: `ehdr' undeclared (first use in this function)
legacy.c:88: warning: comparison between pointer and integer
legacy.c:88: `ET_DYN' undeclared (first use in this function)
legacy.c:88: `ET_EXEC' undeclared (first use in this function)
legacy.c:93: warning: implicit declaration of function `elf_nextscn'
legacy.c:94: warning: implicit declaration of function `gelf_getshdr'
legacy.c:94: `shdr' undeclared (first use in this function)
legacy.c:95: `SHT_DYNAMIC' undeclared (first use in this function)
legacy.c:97: warning: implicit declaration of function `elf_getdata'
legacy.c:102: warning: implicit declaration of function `gelf_getdyn'
legacy.c:102: `dyn' undeclared (first use in this function)
legacy.c:142: warning: implicit declaration of function `elf_end'
make[3]: *** [legacy.lo] Error 1
make[3]: Leaving directory `/home/ababkin/archive/rpm-4.1/rpmdb'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ababkin/archive/rpm-4.1/rpmdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ababkin/archive/rpm-4.1'
make: *** [all] Error 2


Can anyone tell me what is the problem here?
 
Old 04-01-2004, 09:44 PM   #2
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
Do you have the sources for your current kernel and a sym link to them called /usr/linux? It seems as if that's the problem.
 
Old 04-01-2004, 10:21 PM   #3
ababkin
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Posts: 76

Original Poster
Rep: Reputation: 15
so i actually have to have the source for my current kernel in order to compile RPM?

i have the kernel source at usr/src

how exactly should i make a soft link ?

Thanks
Alex
 
Old 04-01-2004, 11:08 PM   #4
ababkin
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Posts: 76

Original Poster
Rep: Reputation: 15
nothing

Last edited by ababkin; 04-01-2004 at 11:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 06:24 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 01:44 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 10:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 05:55 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration