Bug 351701

Summary: [PATCH] IA64: elilo build err, missing a link to /usr/lib/libz
Product: [Fedora] Fedora Reporter: Zhan, Yi <yi.zhan>
Component: eliloAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dchapman
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-25 14:25:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 163350    
Attachments:
Description Flags
elilo-3.6-libz.patch none

Description Zhan, Yi 2007-10-25 03:40:15 UTC
Description of problem:

When rebuilding from the elilo srpm under Fedora, we encounter errors as below
and failed to build the binary rpm:

cc -DEFIBOOTMGR_VERSION=\"0.5.3\" -Wall -g -D_FILE_OFFSET_BITS=64 -Isrc/lib
-Isrc/include    src/efibootmgr/efibootmgr.c src/lib/crc32.o src/lib/disk.o
src/lib/efi.o src/lib/efichar.o src/lib/gpt.o src/lib/scsi_ioctls.o
src/lib/unparse_path.o src/lib/efivars_procfs.o src/lib/efivars_sysfs.o
/usr/lib/libpci.a   -o src/efibootmgr/efibootmgr
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0xd72): undefined reference to `gzopen'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0xe02): undefined reference to `gzgets'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x13e2): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x14e2): undefined reference to `gzeof'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1522): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x16f2): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1ea2): undefined reference to `gzopen'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1f22): undefined reference to `gzerror'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1f62): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1f92): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x1fd2): undefined reference to `gzclose'
/usr/lib/libpci.a(names.o): In function `pci_load_name_list':
(.text+0x2002): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make: *** [src/efibootmgr/efibootmgr] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.21440 (%build)

It seems that a link to /usr/lib/libz is missing when compiling
efibootmgr-0.5.3/src/efibootmgr/efibootmgr. Adding a '-lz' to the variable
'LIBS' in efiefibootmgr-0.5.3/src/bootmgr/module.mk can fix it. 

Version-Release number of selected component (if applicable):
elilo-3.6-2

How reproducible:
Always

Steps to Reproduce:
1. run "rpmbuild --rebuild <path>/elilo-3.6-2.src.rpm" under Fedora 
2.
3.
  
Actual results:
Build error as described above

Expected results:
Build successful

Additional info:
Patch attached

Comment 1 Zhan, Yi 2007-10-25 03:40:15 UTC
Created attachment 236991 [details]
elilo-3.6-libz.patch

Comment 2 Chris Lumens 2007-10-25 14:25:37 UTC
This is fixed in the fedora-cvs tree for elilo.  We don't have all the secondary
arch stuff set up yet to make automatic builds of the secondary arches but you
can pull from CVS and get the latest stuff to rebuild your own packages.  The
spec file is set to build elilo-3.6-4.