Re: compile warning: could not find versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




this neither shows your build script nor the source code... and isn't
useful at all.
Am sorry for that. Here is my Makefile (I hope thats what you meant by build script):
------
DEV_HANDLERS_DIR = dev_handlers

ifneq ($(KERNELRELEASE),)
obj-m := scsi_tgt.o
scsi_tgt-objs := scst.o scst_targ.o scst_lib.o scst_proc.o

obj-$(BUILD_DEV) += $(DEV_HANDLERS_DIR)/

else
ifeq ($(KVER),)
 ifeq ($(KDIR),)
   KDIR := /lib/modules/$(shell uname -r)/build
 endif
else
 KDIR := /lib/modules/$(KVER)/build
endif

all:
       $(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_DEV=m

scst:
       $(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_DEV=n

install: all
       $(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_DEV=m \
               modules_install
       install -d $(INSTALL_DIR_H)
       install -m 644 ../include/scsi_tgt.h $(INSTALL_DIR_H)
       install -m 644 ../include/scst_debug.h $(INSTALL_DIR_H)
       install -m 644 ../include/scst_debug.c $(INSTALL_DIR_H)
       depmod -a
uninstall:
       cd $(DEV_HANDLERS_DIR) && $(MAKE) $@
       rm -f $(INSTALL_DIR)/scsi_tgt.ko
       -rmdir $(INSTALL_DIR) 2>/dev/null
       -/sbin/depmod -a
       rm -rf $(INSTALL_DIR_H)
endif

INSTALL_DIR := /lib/modules/$(shell uname -r)/extra
INSTALL_DIR_H := /usr/local/include/scst

INC_DIR := $(SUBDIRS)/../include

EXTRA_CFLAGS += -I$(INC_DIR)

#EXTRA_CFLAGS += -DSTRICT_SERIALIZING

EXTRA_CFLAGS += -DEXTRACHECKS

#EXTRA_CFLAGS += -fno-inline

#EXTRA_CFLAGS += -DTRACING
#EXTRA_CFLAGS += -DDEBUG_SHOW_STATICS

EXTRA_CFLAGS += -DDEBUG

clean:
       rm -f *.o *.ko .*.cmd *.mod.c .*.d .depend
       rm -rf .tmp_versions

extraclean: clean
       cd $(DEV_HANDLERS_DIR) && $(MAKE) $@

.PHONY: all install uninstall clean extraclean
------------

Source file is a bit big. I feel there should not be any problem with the source file or Makefile because, as I mentioned this works just fine on a 2.6.14 kernel, leaving me to suspect the 2.6.9 kernel sources.

--NaGp.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux