Portál AbcLinuxu, 13. května 2025 21:47
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.
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)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.