LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-17-2009, 05:24 AM   #1
R03L
Member
 
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Rep: Reputation: 31
Exclamation compiling rpm gives error poptQV.c 226


afther compiling all the packages for redhat's rpm i get this error running MAKE

Code:
C -DPIC -o .libs/poptQV.o
poptQV.c: In function 'queryArgCallback':
poptQV.c:226: error: 'POPT_READFILE_TRIMNEWLINES' undeclared (first use in this function)
poptQV.c:226: error: (Each undeclared identifier is reported only once
poptQV.c:226: error: for each function it appears in.)
make[3]: *** [poptQV.lo] Error 1
make[3]: Leaving directory `/home/admin/packages/rpm-5.1.8/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/admin/packages/rpm-5.1.8/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/admin/packages/rpm-5.1.8'
make: *** [all] Error 2
can anybody help me please or explain this error?

or where do i find a packages containging poptQV?

already thnks
 
Old 04-17-2009, 07:15 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,693
Blog Entries: 1

Rep: Reputation: 217Reputation: 217Reputation: 217
The package containing poptQV is RPM. But, that's not the error. This is the error message
Code:
error: 'POPT_READFILE_TRIMNEWLINES' undeclared (first use in this function)
However, you don't provide enough output to determine which header RPM is looking for POPT_READFILE_TRIMNEWLINES. I could presume it is looking in popt.h, but my popt.h doesn't define this variable. So maybe RPM is looking for this variable in an internal header or your version of popt is too old/new.

Edit: OK, I was bored enough to troubleshoot this a little. POPT_READFILE_TRIMNEWLINES is defined in popt version 1.15 or greater. Try updating your popt and see if that works. It did on my machine.

Last edited by weibullguy; 04-17-2009 at 08:06 AM.
 
Old 04-17-2009, 08:34 AM   #3
R03L
Member
 
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Original Poster
Rep: Reputation: 31
ok i dit install an older version of rpm and its compiling fine now.
rpm version 5.1.6

but now im getting this message from rpm.
Code:
#:RPM
rpm: error while loading shared libraries: librpmbuild-5.0.so: cannot open shared object file: No such file or directory
so were do i find librpmbuild or rpmlibs tar.gz tarball?

Last edited by R03L; 04-17-2009 at 09:23 AM.
 
Old 04-17-2009, 12:12 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,693
Blog Entries: 1

Rep: Reputation: 217Reputation: 217Reputation: 217
librpmbuild is provided by the rpm package. It should be installed in /usr/lib, /usr/local/lib, /usr/lib64, /usr/local/lib64, etc. depending on the prefix you used and the ABI you built. If it's not there, something went wrong with your install. If it is, you shouldn't have to, but you can try to execute ldconfig as root.

Last edited by weibullguy; 04-17-2009 at 12:17 PM.
 
Old 04-18-2009, 05:15 AM   #5
R03L
Member
 
Registered: Feb 2008
Distribution: mepis, ubuntu server ed. Debian. Redhat. Fedora, centos, LFS
Posts: 211

Original Poster
Rep: Reputation: 31
ok it's working now,, thank you
 
  


Reply

Tags
compile, redhat, rpm, tarball


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
how to configure host raid in ibm 226 server in red hat linux 4 mirlipi Linux - Server 1 02-20-2009 12:49 AM
error in compiling sourse rpm... vikas04522 Fedora 1 09-02-2006 08:18 AM
What Linux OS to use on my IBM eServer xSeries 226? Greywolf_WI Linux - Software 1 07-16-2006 07:32 AM
RH9 char-major-226 kdd281 Linux - General 1 12-10-2003 12:15 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration