On 2/5/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've just tried to compile the current CVS on OpenSUSE 10.2:
>
> cc -g -I/usr/local/include -DS2RAM -O2 -Wall -DCONFIG_COMPRESS 
> -DCONFIG_ENCRYPT  vt.o vbetool/x86-common.o vbetool/vbetool.o radeontool.o 
> dmidecode.o vbetool/thunk.o vbetool/x86emu/libx86emu.a s2ram.o -o s2ram 
> -L/usr/local/lib -lpci
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x49e): undefined reference to `gzopen'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x504): undefined reference to `gzgets'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x5f3): undefined reference to `gzclose'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x611): undefined reference to `gzeof'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x692): undefined reference to `gzclose'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0x9e9): undefined reference to `gzopen'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0xb4e): undefined reference to `gzerror'
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/libpci.a(names.o): 
> In function `pci_load_name_list':
> (.text+0xb6e): undefined reference to `gzclose'
> collect2: ld returned 1 exit status
> make: *** [s2ram] Error 1

pciutils 2.2.4 added support for compressed pci IDs file, introducing
the dependacy to libz.

Quick fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/suspend/suspend/Makefile,v
retrieving revision 1.49
diff -u -r1.49 Makefile
--- Makefile    2 Feb 2007 14:20:18 -0000       1.49
+++ Makefile    5 Feb 2007 18:16:23 -0000
@@ -25,7 +25,7 @@
 S2RAM_OBJ=vt.o vbetool/x86-common.o vbetool/vbetool.o radeontool.o dmidecode.o
 SWSUSP_OBJ=vt.o md5.o encrypt.o config.o loglevel.o splash.o bootsplash.o

-S2RAM_LD_FLAGS = $(LD_FLAGS) -lpci
+S2RAM_LD_FLAGS = $(LD_FLAGS) -lpci -lz
 SWSUSP_LD_FLAGS = $(LD_FLAGS)

 ifeq ($(ARCH), x86_64)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to