On Wed, Jul 15, 2009 at 1:29 AM, krushnaal pai<krisonearth@xxxxxxxxx> wrote: > i tried ksocket when i tried to to do make for the makefile in > sample/tcp/srv it gave me the foll error,plz help > > [root@localhost srv]# make > make -C /lib/modules/2.6.28/build M=/home/k/ksock/sample/tcp/srv modules > make[1]: Entering directory `/usr/src/linux-2.6.28' > CC [M] /home/k/ksock/sample/tcp/srv/ > ksocket_tcp_srv.o > /home/k/ksock/sample/tcp/srv/ksocket_tcp_srv.c: In function ‘tcp_srv’: > /home/k/ksock/sample/tcp/srv/ksocket_tcp_srv.c:50: error: implicit > declaration of function ‘ksocket_debug’ check this out - it is defined here: In ./src/ksocket.c: #ifdef _ksocket_debug_ # define ksocket_debug(fmt, args...) printk("ksocket : %s, %s, %d, "fmt, __FILE__, __FUNCTION__, __LINE__, ##args) # define ksocket_debug(fmt, args...) ksocket_debug("sock_create failed\n"); ksocket_debug("sock_create sk= 0x%p\n", sk); ksocket_debug("kbind ret = %d\n", ret); ksocket_debug("family = %d, type = %d, protocol = %d\n", > /home/k/ksock/sample/tcp/srv/ksocket_tcp_srv.c:76: error: implicit > declaration of function ‘inet_ntoa’ > /home/k/ksock/sample/tcp/srv/ksocket_tcp_srv.c:76: warning: format ‘%s’ > expects type ‘char *’, but argument 2 has type ‘int’ > make[2]: *** [/home/k/ksock/sample/tcp/srv/ksocket_tcp_srv.o] Error 1 > make[1]: *** [_module_/home/k/ksock/sample/tcp/srv] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.6.28' > make: *** [default] Error 2 > > also using wht cmd can i load the test-module(sample/tcp/srv) with a 6666 > port number parameter, > -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ