Hi Sam,

On Fri, Aug 21, 2009 at 11:51 PM, Sam Ravnborg<s...@ravnborg.org> wrote:
> kbuild list on sourceforge is long defunct.
> Please use linux-kbu...@vger.kernel.org.
>
>
> 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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to