mq insmod problem(2)

"alex" <[email protected]> Sat, 05 Jul 2003 22:20:42 -0800
Newsgroups gmane.linux.redhat.install,gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
trying to create new pctel.o (ptmodule.c and Makefile are enclosed).
Did the "make clean" and "make". It did create pctel.o file.
"/sbin/insmod pctel.o" creates this in below:


Using /lib/modules/2.4.18-3/net/pctel.o
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol bh_mask
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol __put_user_4
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol request_region
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol bh_active
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol release_region
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol kfree_s
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol timer_table
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol bh_base
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol check_region
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol timer_active
/lib/modules/2.4.18-3/net/pctel.o: unresolved symbol bh_mask_count
/lib/modules/2.4.18-3/net/pctel.o:
Hint: You are trying to load a module without a GPL compatible license
      and it has unresolved symbols.  Contact the module supplier for
      assistance, only they can help you.


ptmodule.c

/*
 *      For the definition of __module_kernel_version[] so that
 *      the modem driver can be compatible with various Linux kernel
 *      versions.
 *
 *      This file is to be linked with the rest of the libraries in
 *      the distribution package.
 */

#include <linux/version.h>
const char __module_kernel_version[] __attribute__((section(".modinfo")))
=
"kernel_version=" UTS_RELEASE;
#ifdef MODVERSIONS
const char __module_using_checksums[]
__attribute__((section(".modinfo"))) =
"using_checksums=1";
#endif




Makefile  

#
# Makefile for the PCtel module
#
# Note! The CFLAGS definition is now inherited from the
# parent makefile.
#


HPATH           = /usr/src/linux-2.4.18-3/include
FINDHPATH       = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net

HOSTCC          =gcc -I$(HPATH)
HOSTCFLAGS      =-O -fomit-frame-pointer

CROSS_COMPILE   =

COL_DEBUG_FLAGS =

AS      =$(CROSS_COMPILE)as
LD      =$(CROSS_COMPILE)ld
CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -DMODULE -Wall $(HOSTCFLAGS)
-I$(HPATH) ${COL_DEBUG_FLAGS}
CPP     =$(CC) -E
AR      =$(CROSS_COMPILE)ar
NM      =$(CROSS_COMPILE)nm
STRIP   =$(CROSS_COMPILE)strip
MAKE    =make

EXTRA_LDFLAGS   :=


# object files directory

O_TARGET := ../../lib/pctel.o

# object files
O_OBJS  := \
        ptmodule.o \

OX_OBJS := \
        ../../lib/control.a \
        ../../lib/hal.a \
        ../../lib/dsp.a \
        ../../lib/ptserial.a

all_targets: $(O_TARGET) $(L_TARGET)

%.s: %.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o $@

%.o: %.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<

%.o: %.s
        $(AS) $(ASFLAGS) $(EXTRA_CFLAGS) -o $@ $<

ifdef O_TARGET
ALL_O = $(O_OBJS) $(OX_OBJS)
$(O_TARGET): $(ALL_O) Makefile
        rm -f $@
        $(LD) -r $(EXTRA_LDFLAGS) -o $@ $(ALL_O)
endif


clean:
        rm -f *.o
ifdef L_TARGET
        rm -f $(L_TARGET)
endif
ifdef O_TARGET
        rm -f $(O_TARGET)
endif



-- 
  alex
  [email protected]

-- 
http://www.fastmail.fm - mmm... Fastmail...


_______________________________________________
Redhat-install-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
[email protected]
Subject: unsubscribe