Re: how to run old module program on RH9?

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

 





Hi Sunnesh,
     No i am compiling on my own with following
command
[root@localhost snull]# gcc -c snull.c -I
/usr/src/linux-2.4.20-8/include/
[root@localhost snull]# sh snull_load
./snull.o: unresolved symbol htons
./snull.o:
Hint: You are trying to load a module without a GPL
compatible license
     and it has unresolved symbols.  Contact the
module supplier for
     assistance, only they can help you.

local0: Host name lookup failure
ifconfig: `--help' gives usage information.
local1: Host name lookup failure
ifconfig: `--help' gives usage information.
[root@localhost snull]#

what should i do? what is required? is i am missing
something?

regards,
linux_lover2004.

Compile it with
gcc -c snull.c -I /usr/src/linux-2.4.20-8/include -O -Wall

because gcc does not expand inline functions unless optimization (-O)
is enabled.

Regards

Suneesh



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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