Portál AbcLinuxu, 26. dubna 2024 15:35


Dotaz: kompilace irda-utils

13.8.2007 15:51 penguin666 | skóre: 26 | blog: Slacked_Life
kompilace irda-utils
Přečteno: 220×
Odpovědět | Admin
Dobrý den, snažím se kompilovat irda-utils-0.9.18 a make na mě vyhodí tohle:
bash-3.1$ make
 [CC]  irattach.c
irattach.c: In function 'attach_dongle':
irattach.c:616: warning: cast to pointer from integer of different size
 [CC]  util.c
 [CC]  irattach
 [CC]  dongle_attach.c
dongle_attach.c: In function 'main':
dongle_attach.c:118: warning: cast to pointer from integer of different size
 [CC]  dongle_attach
 [CC]  irdaping.c
 [CC]  irdaping
 [CC]  irnetd.c
 [CC]  irnetd
 [CC]  irkbd.c
 [CC]  irkbd
 [CC]  findchip.c
 [CC]  smc.c
 [CC]  nsc.c
 [CC]  winbond.c
 [CC]  findchip
 [CC]  irdadump.c
 [CC]  irlap.c
 [CC]  irlmp.c
 [CC]  obex.c
 [CC]  ircomm.c
 [CC]  netbuf.c
 [CC]  capture.c
 [AR]  lib_irdadump.a
 [RANLIB]  lib_irdadump.a
 [CC]  main.c
 [CC]  irdadump
 [CC]  smcinit.c
 [CC]  smcinit
/usr/lib/gcc/x86_64-pc-linux/4.1.2/../../../../lib/libpci.a(names.o): In function `pci_load_name_list':
names.c:(.text+0x4d4): undefined reference to `gzopen'
names.c:(.text+0x550): undefined reference to `gzgets'
names.c:(.text+0x67c): undefined reference to `gzclose'
names.c:(.text+0x81d): undefined reference to `gzclose'
names.c:(.text+0x8e2): undefined reference to `gzeof'
names.c:(.text+0xc03): undefined reference to `gzopen'
names.c:(.text+0xc2a): undefined reference to `gzerror'
names.c:(.text+0xc4b): undefined reference to `gzclose'
collect2: ld returned 1 exit status
make[1]: *** [smcinit] Error 1
make: [all] Error 2 (ignored)
Té chybě nějak nerozumím a netuším, co s tím? můžete mě nějak nakopnout? Mám kernel 2.6.22.1, 64-bit architektura, distro Bluewhite64. Díky.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

13.8.2007 16:24 R
Rozbalit Rozbalit vše Re: kompilace irda-utils
Odpovědět | | Sbalit | Link | Blokovat | Admin
Treba tam niekde pridat parameter "-lz", je to tusim kvoli novej verzii libpci.
13.8.2007 16:36 penguin666 | skóre: 26 | blog: Slacked_Life
Rozbalit Rozbalit vše Re: kompilace irda-utils
díky, ale čemu nebo kam mám ten parametr předat?
13.8.2007 16:48 penguin666 | skóre: 26 | blog: Slacked_Life
Rozbalit Rozbalit vše Re: kompilace irda-utils
vyřešeno úpravou Makefile v adresáři smcinit:
include ../output.mak

CC = gcc
RM = rm -f

RM_CMD = $(ECMD)$(RM) *.BAK *.bak *.o ,* *~ *.a

INCLUDES  = $(SYS_INCLUDES) -I../include/
LIBRARIES = $(SYS_LIBRARIES)
LIBPATH   = $(SYS_LIBPATH)

#
# System stuff
#
SYS_INCLUDES = -I/usr/include
SYS_LIBRARIES =
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib

CFLAGS= -O2 -W -Wall -I.

SMCINIT_OBJS = smcinit.o tosh1800-smcinit.o tosh2450-smcinit.o

SMCINIT_TARGETS = smcinit tosh1800-smcinit tosh2450-smcinit

all: $(SMCINIT_TARGETS)

smcinit: smcinit.o
        $(prn_cc_o)
        $(ECMD)$(CC) -o $@ $^ $(LIBS) -lpci -lz


tosh1800-smcinit: tosh1800-smcinit.o
        $(prn_cc_o)
        $(ECMD)$(CC) $(XCFLAGS) -o $@ $^ $(LIBS) -lpci -lz


tosh2450-smcinit: tosh2450-smcinit.o
        $(prn_cc_o)
        $(ECMD)$(CC) $(XCFLAGS) -o $@ $^ $(LIBS) -lpci -lz


%o: %c
        $(prn_cc)
        $(ECMD)$(CC) $(CFLAGS) $(INCLUDES) -c $<

install: $(SMCINIT_TARGETS)
        $(prn_install)
        $(ECMD)install smcinit $(ROOT)/usr/sbin
        $(ECMD)install tosh1800-smcinit $(ROOT)/usr/sbin
        $(ECMD)install tosh2450-smcinit $(ROOT)/usr/sbin

clean:
        $(RM_CMD)

distclean:
        $(RM_CMD)
        $(ECMD)$(RM) $(SMCINIT_TARGETS)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.