ksocket problem

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

 



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’
/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,

[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