LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-22-2005, 06:09 PM   #1
HintS_Cumulus
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
installing rpm on LFS 6.1


ok, i just installed LFS 6.1 and know want to use RPM as my package manager (please don't ask why, i have my reasons ;-) )
i downloaded a source rpm and extracted the source (tar.gz) archive from it (version 4.2)
as i tried to compile it, i got some errors... searching on the net, i found out, that it had to do with libelf, i didn't hat that installed. after installing libelf, i got another error withing rpmmodule.c. again searching, i found out, that it had to do with the "python-part" of rpm.
so i installed python, but that didn't solve the problem, so i disabled python support (configure --without-python)
after that another error arised, and this time i could not find any informations on the net, so you are my last hope
make fails with the following error(s):

Quote:
debugedit.c:23:22: byteswap.h: No such file or directory
debugedit.c:24:20: endian.h: No such file or directory
In file included from /usr/include/gelf.h:11,
from debugedit.c:36:
/usr/include/libelf.h:28:2: #error "large files are not supported by libelf"
debugedit.c:37:19: dwarf.h: No such file or directory
debugedit.c: In function `read_abbrev':
debugedit.c:289: `DW_FORM_indirect' undeclared (first use in this function)
debugedit.c:289: (Each undeclared identifier is reported only once
debugedit.c:289: for each function it appears in.)
debugedit.c: In function `edit_dwarf2_line':
debugedit.c:479: warning: implicit declaration of function `alloca'
debugedit.c: In function `edit_attributes':
debugedit.c:676: `DW_AT_stmt_list' undeclared (first use in this function)
debugedit.c:678: `DW_FORM_data4' undeclared (first use in this function)
debugedit.c:685: `DW_AT_comp_dir' undeclared (first use in this function)
debugedit.c:686: `DW_FORM_strp' undeclared (first use in this function)
debugedit.c:711: `DW_TAG_compile_unit' undeclared (first use in this function)
debugedit.c:713: `DW_AT_name' undeclared (first use in this function)
debugedit.c:751: `DW_FORM_addr' undeclared (first use in this function)
debugedit.c:754: `DW_FORM_ref1' undeclared (first use in this function)
debugedit.c:755: `DW_FORM_flag' undeclared (first use in this function)
debugedit.c:756: `DW_FORM_data1' undeclared (first use in this function)
debugedit.c:759: `DW_FORM_ref2' undeclared (first use in this function)
debugedit.c:760: `DW_FORM_data2' undeclared (first use in this function)
debugedit.c:763: `DW_FORM_ref4' undeclared (first use in this function)
debugedit.c:767: `DW_FORM_ref8' undeclared (first use in this function)
debugedit.c:768: `DW_FORM_data8' undeclared (first use in this function)
debugedit.c:771: `DW_FORM_sdata' undeclared (first use in this function)
debugedit.c:772: `DW_FORM_ref_udata' undeclared (first use in this function)
debugedit.c:773: `DW_FORM_udata' undeclared (first use in this function)
debugedit.c:776: `DW_FORM_ref_addr' undeclared (first use in this function)
debugedit.c:780: `DW_FORM_string' undeclared (first use in this function)
debugedit.c:783: `DW_FORM_indirect' undeclared (first use in this function)
debugedit.c:786: `DW_FORM_block1' undeclared (first use in this function)
debugedit.c:789: `DW_FORM_block2' undeclared (first use in this function)
debugedit.c:793: `DW_FORM_block4' undeclared (first use in this function)
debugedit.c:797: `DW_FORM_block' undeclared (first use in this function)
debugedit.c: In function `fdopen_dso':
debugedit.c:1017: `ELF_C_RDWR_MMAP' undeclared (first use in this function)
make: *** [debugedit.o] Error 1
oh, the only information i could find was a hint to installing libdwarf, but that didn't solve these errors

i hope you can help me, thanks in advance

oh and: if this isn't the right forum for this thread, sorry for that.
and sorry for my very very very very very ....... baaaad english i'm from germany
 
Old 08-22-2005, 06:41 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
http://www.linuxfromscratch.org/blfs...portant-pkgmgt

did you read up on package management in the BLFS book? also there is a "hints" section that LFS users have written that should help.........

http://www.linuxfromscratch.org/hints/downloads/files/
 
Old 08-23-2005, 06:02 AM   #3
HintS_Cumulus
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
yes, i know about other possibilities of package managing but i want rpm!^^
ok, i looked at the rpm hint and it tells about some other dependencies, which i havn't installed yet.
i'll install them and try again
 
Old 08-25-2005, 08:49 AM   #4
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
hi,

i have installed and used RPM in LFS 6.0 and LFS 6.1 test build. There are certain dependencies, ( oops..i dont remember them since now am out of home...sorry for that..)..hey just read the hints section and there would dependencies available.....RPM got installed without any errors for me.....

with regards,
C.C.Chakkaradeep
 
Old 08-26-2005, 04:45 PM   #5
HintS_Cumulus
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
sorry for the late reply, i had nearly no time the last days (holidays are over... ^^").
at last i could solve thr problem! :-)

after installing the dependencies listed in the hint, it still didn't work...
i forgot to copy some headers from the libdwarf >.<", this solved the problems with the "DW_FORM_* undeclared" errors.
to solve the "ELF_C_RDWR_MMAP error, i just changed the reference to it in the debugedit.c file to ELF_C_RDWR, which was defined in libelf.h
then more problems arised... i had to add libelf.a to the linker flags, because gcc didn't link rpm to it, so it found a lot of undefined functions...
but now it works!!!^^

thank you for your help and again, sorry for my bad english^^
 
  


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
Prob installing checkinstall in lfs donbellioni Linux - Software 3 11-04-2010 02:42 AM
installing LFS under AMD64 Basel Linux From Scratch 8 07-27-2005 02:27 PM
Installing X on LFS CVS euangray Linux From Scratch 1 10-18-2003 04:00 PM
Is anyone else installing LFS with shell scripts SparceMatrix Linux From Scratch 25 06-12-2003 02:29 AM
Help installing xfree86 4.1 on LFS RecoilUK Linux - Software 2 12-24-2001 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:41 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
Open Source Consulting | Domain Registration