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 |
what is the contents of legacy.c line 12?
|
ah
nevermind i just reinstalled the whole thing there was too much trouble getting RPM to install and work properly Alex |
All times are GMT -5. The time now is 08:16 PM. |