kbuild list on sourceforge is long defunct. Please use linux-kbuild@xxxxxxxxxxxxxxxx On Fri, Aug 21, 2009 at 10:45:14PM +0200, Nipun sehrawat wrote: > Hi List, > > I am porting KTCPVS (last released for 2.6.18) to the latest kernel. I > was able to compile most of the files on 2.6.30, until I got struck at > a strange "KBUILD_MODNAME undefined warning" The Makefile of KTCPVS is > : > > ---------------------------------Makefile > Starts------------------------------------- > # ktcpvs migrate to 2.6 > > ifneq ($(KERNELRELEASE),) > ifdef CONFIG_MODVERSIONS > EXTRA_CFLAGS := -DCONFIG_TCP_VS_DEBUG > endif > obj-m := ktcpvs.o tvs_hhttp.o tvs_phttp.o tvs_chttp.o tvs_http.o tvs_wlc.o > LIBS := tcp_vs_sched.o tcp_vs_ctl.o misc.o redirect.o > tcp_vs_srvconn.o tcp_vs_timer.o tcp_vs.o fault.o regex/regcomp.o > LIBS += regex/kernel.o regex/regfree.o > ktcpvs-y := $(LIBS) If you are building a module use "-m" not "-y". Try that and see if it hepls you. Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html