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
Created attachment 236991 [details] elilo-3.6-libz.patch
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.