Hi Sam, On Fri, Aug 21, 2009 at 11:51 PM, Sam Ravnborg<sam@xxxxxxxxxxxx> wrote: > 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. According to Kbuild Documentation in Linux Kernel source : "Kbuild needs to know which the parts that you want to build your module from, so you have to tell it by setting an $(<module_name>-objs) variable." I tried changing ktcpvs-y to ktcpvs-objs, but it didn't help. > > Sam > Thanks for your quick response! Cheers, Nipun -- 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