LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 15
How to configure path to needed *.h files ???


Hi


I am trying to compile new RPM (4.1) but it errors with the following (at the bottom of the message)

aparently legacy.c doesnt see gelf.h, which i found to be in usr/local/include/libelf
how do i set the include path properly, or is there a workaround?

Thanks

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
 
Old 04-02-2004, 02:56 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
what is the contents of legacy.c line 12?
 
Old 04-02-2004, 11:40 AM   #3
ababkin
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Posts: 76

Original Poster
Rep: Reputation: 15
ah

nevermind
i just reinstalled the whole thing
there was too much trouble getting RPM to install and work properly

Alex
 
  


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
configure: error: no acceptable ld found in $PATH rover Linux - Newbie 2 12-04-2009 06:35 AM
path problem during configure ALInux Linux - Software 2 08-18-2005 04:58 AM
./configure: how can I force PATH? palanca Linux - Newbie 1 07-21-2005 03:07 PM
Path help needed please. I'm getting odd results. m15a4 Linux - General 6 02-10-2004 09:27 PM
how to check the rpm default configure path eksxjeff Linux - Software 2 11-18-2003 02:32 PM


All times are GMT -5. The time now is 10:59 AM.

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