lsb

missing bits in elf.h

Bug #1327865 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
Fix Committed
Medium
Unassigned
Mandriva
Fix Released
Medium

Bug Description

Trying to build kompozer again to exercise the new nss/nspr things and I'm
falling down on elf.h:

/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c: In
function
 ‘remap_rel_section’:
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:766:
warning
: implicit declaration of function ‘ELF32_R_TYPE’
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:768: error:
‘EM_386’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:768: error:
(Each undeclared identifier is reported only once
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:768: error:
for each function it appears in.)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:769: error:
‘R_386_RELATIVE’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:769: error:
‘R_386_JMP_SLOT’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:780: error:
‘EM_PPC’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c: In
function
 ‘remap_rela_section’:
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:804: error:
‘EM_386’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:805: error:
‘R_386_RELATIVE’ undeclared (first use in this function)

/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:805: error:
‘R_386_JMP_SLOT’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:816: error:
‘EM_PPC’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c: In
function
 ‘main’:
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:1112:
error:
 ‘EM_386’ undeclared (first use in this function)
/home/stew/rpm/BUILD/kompozer-0.7.10/mozilla/config/elf-dynstr-gc.c:1113:
error:
 ‘EM_PPC’ undeclared (first use in this function)

Chatted with Mats on IRC, and it looks like these would be safe to add:

09:07 < mwichmann> the elf things look like mistakes on our part, not so odd...
                   now we're using our own elf.h
09:07 < mwichmann> ELF32_R_TYPE is a macro for extracting info, not anything
                   new in elf, so safe
09:08 < stewb> it's supposed to detect the 4arg vs 5 arg versions and adapt,
               but failing,even when I try to force the necessary defines
09:08 < mwichmann> the EM stuff we should have, /* Legal values for e_machine
                   (architecture). */
09:08 < mwichmann> those have ALWAYS been part of the low-level-abi description
09:09 < stewb> shall I bug it?
09:09 < mwichmann> yes, please, the 386 relocs also look like they have no
                   reason to be excluded
09:09 < mwichmann> we must not have pursued this since we got "our own elf.h"

Tags: errata
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.