Invalid kernel header included in userspace; multi-line string literals are deprecated
hi!
can somebody please tell me what's going on with this. i have been changing my makefiles, in which i have been going in circles now.
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux-sh-2.4.18//include -O -g -DSNULL_DEBUG -I.. -M snull.c > .depend In file included from /usr/src/linux-sh-2.4.18/include/linux/config.h:4,
from snull.c:25:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from snull.c:51:/usr/src/linux-sh-2.4.18/include/asm/checksum.h:72:30:
warning: multi-line string literals are deprecated /usr/src/linux-sh-2.4.18/include/asm/checksum.h:105:17:
warning: multi-line string literals are deprecated /usr/src/linux-sh-2.4.18/include/asm/checksum.h:121:13:
warning: multi-line string literals are deprecated /usr/src/linux-sh-2.4.18/include/asm/checksum.h:161:17:
warning: multi-line string literals are deprecated
make: *** [.depend] Error 1
thanks.
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Donald Duckie
hi!
can somebody please tell me what's going on with this. i have been changing my makefiles, in which i have been going in circles now.
You should have told us just what you are tying to do and how you are trying to achive it, yes one can see you are compiling, but what commands did you do beforehand, no way should you need to change Makefiles period, you may want to edit the Top dir Makefile and add an EXTRAVERSION number tho'. which may well save you a lot of problems if you succed in compiling and then the kernel wont boot.
Anyway, your directory sructure is broken, as i see it you have a directory or a symlink called /usr/src/inux-sh-2.4.18 you can have your source in any directory you want, _however_ you are well advised to create a symlink called linux pointing to where ever your source is, here is an example.
cd /usr/src
ls -al
linux -> linux-sh-2.4.18
linux-sh-2.4.18
Quoted 7 lines
gcc -Wall -D__KERNEL__ -DMODULE
(quoted diff) +0
-2-I/usr/src/linux-sh-2.4.18//include -O -g -DSNULL_DEBUG -I.. -M snull.c > .dependIn file included from
/usr/src/linux-sh-2.4.18/include/linux/config.h:4,from snull.c:25:
Quoted 12 lines
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from snull.c:51:/usr/src/linux-sh-2.4.18/include/asm/checksum.h:72:30:
warning: multi-line string literals are deprecated/usr/src/linux-sh-2.4.18/include/asm/checksum.h:105:17:
warning: multi-line string literals are deprecated/usr/src/linux-sh-2.4.18/include/asm/checksum.h:121:13:
warning: multi-line string literals are deprecated/usr/src/linux-sh-2.4.18/include/asm/checksum.h:161:17:
warning: multi-line string literals are deprecated
make: *** [.depend] Error 1
All the errors are from 'depend' that means you possably have NOT configured your kernel to start with.
For a quick HOWTO on making kernels goto;
http://people.zeelandnet.nl/pa3gcu/kernel.htm
Its old but is still valid for 2.4.x kernels.
Or read the README in the kernel source or read the Kernel-HOWTO found mostly in /usr/share/doc/*
Or
http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html
Quoted 1 line
thanks.
Signature · 14 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
hi!
thank you very much for your information.
and i'm so sorry for not stating everything that i was doing.
anyway, i was trying to compile the snull sample that i got from
http://www.oreilly.com.tw/editor_column/a138_read.html
on linux-sh-2.4.18. since i found some problem, i modified the Rules.make (not exactly the Makefile as previously mentioned).
the original errors were:
[aphrodite@aphrodite2 snull2]$ make clean;make rm -f *.o *~ core .depend
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -O -g -DSNULL_DEBUG -I.. -M snull.c > .depend
In file included from /usr/src/linux/include/linux/config.h:4,
from snull.c:25:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from snull.c:51:/usr/src/linux/include/asm/checksum.h:72:30: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:105:17: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:121:13: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:161:17: warning:
multi-line string literals are deprecated
make: *** [.depend] Error 1
linux wass already linked as
linux -> linux-sh-2.4.18
and now, seeing on the/usr/include/linux/autoconf.h:1:2: #error Invalid
kernel header included in userspace
in the /usr/src/linux-sh-2.4.18/include/linux i just put an empty autoconf.c
(i read this in one of the m-lists)
but got these errors:
[aprhodite@aprhodite2 snull2]$ make clean;make rm -f *.o *~ core .depend
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -O -g -DSNULL_DEBUG -I.. -M snull.c > .depend
In file included from snull.c:51:/usr/src/linux/include/asm/checksum.h:72:30: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:105:17: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:121:13: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:161:17: warning:
multi-line string literals are deprecated
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -O -g -DSNULL_DEBUG -I.. -c -o snull.o snull.c
In file included from /usr/src/linux/include/linux/prefetch.h:13,
from/usr/src/linux/include/linux/list.h:6,
from/usr/src/linux/include/linux/module.h:12,
from snull.c:26:
/usr/src/linux/include/asm/processor.h:56:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/asm/processor.h:56: requested alignment is not a constant
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from/usr/src/linux/include/linux/interrupt.h:45,
from snull.c:34:
/usr/src/linux/include/linux/irq.h:65:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/src/linux/include/linux/interrupt.h:45,
from snull.c:34:
/usr/src/linux/include/asm/hardirq.h:16:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from snull.c:34:/usr/src/linux/include/linux/interrupt.h:128:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/linux/interrupt.h:128:
requested alignment is not a constant
In file included from snull.c:37:/usr/src/linux/include/linux/netdevice.h:164:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/linux/netdevice.h:164:
requested alignment is not a constant
In file included from snull.c:37:/usr/src/linux/include/linux/netdevice.h:481:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/src/linux/include/linux/netdevice.h:481:
requested alignment is not a constant
In file included from snull.c:51:/usr/src/linux/include/asm/checksum.h:72:30: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:105:17: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:121:13: warning:
multi-line string literals are deprecated /usr/src/linux/include/asm/checksum.h:161:17: warning:
multi-line string literals are deprecated
make: *** [snull.o] Error 1
i am quite confused now since i think that i am just going in circles with this compilation . . .
any kind of information are greatly appreciated. (anyway, i will still also need to read the links that were given)
Quoted 35 lines · --- Richard Adams
Quoted 3 lines · Donald Duckie
hi!
can somebody please tell me what's going on with
this.
Quoted 2 lines
i have been changing my makefiles, in which i have been going in circles now.
You should have told us just what you are tying to do and how you are trying
to achive it, yes one can see you are compiling, but what commands did you do
beforehand, no way should you need to change Makefiles period, you may want
to edit the Top dirMakefileand add an EXTRAVERSION number tho'. which may
well save you a lot of problems if you succed in compiling and then the
kernel wont boot.
Anyway, your directory sructure is broken, as i see it you have a directory or
a symlink called/usr/src/inux-sh-2.4.18you can have your source in any
directory you want, _however_ you are well advised to create a symlink called
linux pointing to where ever your source is, here is an example.cd
/usr/src
ls -al
linux -> linux-sh-2.4.18
linux-sh-2.4.18Quoted 1 line
Quoted 11 lines
Quoted 10 lines
gcc -Wall -D__KERNEL__ -DMODULE
(quoted diff) +0
-2-I/usr/src/linux-sh-2.4.18//include -O -g -DSNULL_DEBUG -I.. -M snull.c > .dependIn file included from
/usr/src/linux-sh-2.4.18/include/linux/config.h:4,from snull.c:25:
/usr/include/linux/autoconf.h:1:2: #error Invalid
kernel header included in userspace
In file included from snull.c:51:
/usr/src/linux-sh-2.4.18/include/asm/checksum.h:72:30:
Quoted 3 lines
Quoted 2 lines
warning: multi-line string literals are deprecated
/usr/src/linux-sh-2.4.18/include/asm/checksum.h:105:17:
Quoted 3 lines
Quoted 2 lines
warning: multi-line string literals are deprecated
/usr/src/linux-sh-2.4.18/include/asm/checksum.h:121:13:
Quoted 3 lines
Quoted 2 lines
warning: multi-line string literals are deprecated
/usr/src/linux-sh-2.4.18/include/asm/checksum.h:161:17:
Quoted 11 lines
Quoted 2 lines
warning: multi-line string literals are deprecated
make: *** [.depend] Error 1All the errors are from 'depend' that means you
possably have NOT configured
your kernel to start with.For a quick HOWTO on making kernels goto;
http://people.zeelandnet.nl/pa3gcu/kernel.htm
Its old but is still valid for 2.4.x kernels.
Quoted 29 lines
Or read the README in the kernel source or read the Kernel-HOWTO found mostly
in/usr/share/doc/*
Or
http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.htmlQuoted 1 line
thanks.
Signature · 19 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 9 lines · Donald Duckie
hi!
thank you very much for your information.
and i'm so sorry for not stating everything that i was doing.anyway, i was trying to compile the snull sample that i got from
http://www.oreilly.com.tw/editor_column/a138_read.html
Unless you understand the langauage of China then i suggest you use,
http://www.oreilly.com/ forget the tw.
Quoted 3 lines
on linux-sh-2.4.18. since i found some problem, i modified the Rules.make (not exactly the
Makefileas previously mentioned).
You should not touch that file _at all_.
Quoted 12 lines
the original errors were:
[aphrodite@aphrodite2 snull2]$ make clean;make rm -f *.o *~ core .depend
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -O -g -DSNULL_DEBUG -I.. -Msnull.c> .depend
In file included from/usr/src/linux/include/linux/config.h:4,
from snull.c:25:/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
You are indeed doing things _all_ wrong, firstly one needs a fully configured kernel source, you do not need to fully compile a new kernel simply use your running kernels .config file, most distro's include a sample configuration file for the running kernel, it can be found in /boot, it could also be located in /usr/src/linux/configs/ (i have seen at lease one distro) that does that.
Now _before doing anything do;
cd /usr/src/linux
make mrproper
Now copy your sample config file to /usr/src/linux rename it .config and do the following.
make oldconfig
make dep
change to the directory where you have the snull source, i had it in
/home/pa3gcu/source/ldd2-samples/snull/
Now type 'make' in that directory i needed to edit nothing, i did get 2 warnings but you can safely ignore then, snull.o gets created ok.
Thats it, no going around in circels at all, remember one thing, third party code most always depends on a _configured_ kernel source, if one has a configured kernel source then files like autoconf.h and all the nessacary symlinks are in place and ready to go.
I compiled snull on a machine running 2.4.26 with gcc 3.3.4. Considering snull was first written for 2.0.x kernels and has been changed to suit most all kernel versions then i see no problem with 2.4.18.
Signature · 14 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
hi!
thank you very much :-)
the make mrproper; make oldconfig; and make dep were all that was lacking . . . whew!!!
for my next steps though, where can i find some
information on snull_load and snull_unload?
running them gave me the following errors:
[aphrodite@aphrodite2 snull]$ snull_load
./snull.o: ELF file ./snull.o not for this
architecture
local0: Host name lookup failure
ifconfig: `--help' gives usage information.
local1: Host name lookup failure
ifconfig: `--help' gives usage information.
[aphrodite@aphrodite2 snull]$ snull_unload
sn0: unknown interface: No such device
sn1: unknown interface: No such device
snull: Operation not permitted
Quoted 4 lines · --- Richard Adams
Quoted 2 lines · Donald Duckie
hi!
Quoted 10 lines
Quoted 2 lines
thank you very much for your information. and i'm so sorry for not stating everything that i
was
Quoted 3 lines
doing.
anyway, i was trying to compile the snull sample
that
Quoted 2 lines
i got from
http://www.oreilly.com.tw/editor_column/a138_read.html
Quoted 66 lines
Unless you understand the langauage of China then i suggest you use,
http://www.oreilly.com/ forget the tw.Quoted 2 lines
on linux-sh-2.4.18. since i found some problem, i modified the Rules.make (not exactly the
Makefileas
Quoted 1 line
previously mentioned).
You should not touch that file
_atall_.Quoted 6 lines
the original errors were:
[aphrodite@aphrodite2 snull2]$ make clean;make rm -f *.o *~ core .depend
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -O -g -DSNULL_DEBUG -I..-M
Quoted 6 lines
snull.c> .depend
In file included from/usr/src/linux/include/linux/config.h:4, from snull.c:25:/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspaceYou are indeed doing things _all_ wrong, firstly one needs a fully configured
kernel source, you do not need to fully compile a new kernel simply use your
running kernels .config file, most distro's include a sample configuration
file for the running kernel, it can be found in /boot, it could also be
located in/usr/src/linux/configs/(i have seen at lease one distro) that
does that.
Now_beforedoing anything do;cd
/usr/src/linux
make mrproperNow copy your sample config file to
/usr/src/linuxrename it .config and do
the following.make oldconfig
make depchange to the directory where you have the snull
source, i had it in
/home/pa3gcu/source/ldd2-samples/snull/Now type 'make' in that directory i needed to edit nothing, i did get 2
warnings but you can safely ignore then, snull.o gets created ok.Thats it, no going around in circels at all, remember one thing, third party
code most always depends on a _configured_ kernel source, if one has a
configured kernel source then files likeautoconf.hand all the nessacary
symlinks are in place and ready to go.
Quoted 28 lines
I compiled snull on a machine running 2.4.26 with gcc 3.3.4.
Considering snull was first written for 2.0.x kernels and has been changed to
suit most all kernel versions then i see no problem with 2.4.18.Signature · 19 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 9 lines · Donald Duckie
hi!
thank you very much :-)
the make mrproper; make oldconfig; and make dep were all that was lacking . . . whew!!!for my next steps though, where can i find some
information onsnull_loadandsnull_unload?
running them gave me the following errors:
No idea, but here is your answer(s).
Quoted 3 lines
[aphrodite@aphrodite2 snull]$
snull_load
./snull.o: ELF file ./snull.o not for this
architecture
You need to be root to insert modules.
As root do;
cd /to/where/snull_load/file/is
chmod a+x snull_load
./snull_load
But you will still get some errors because local0 and local1 are not know on your system, either define them in /etc/hosts or edit snull_load and replace local0 and local1 with an internal IP# as in.
ifconfig sn0 10.1.2.11
ifconfig sn1 10.1.2.12
Quoted 4 lines
local0: Host name lookup failure
ifconfig: `--help' gives usage information.
local1: Host name lookup failure
ifconfig: `--help' gives usage information.
They are not defined in /etc/hosts.
Quoted 5 lines
[aphrodite@aphrodite2 snull]$
snull_unload
sn0: unknown interface: No such device
sn1: unknown interface: No such device
snull: Operation not permitted
Because the ifconfig line had an invalid host nothing gets configured.
You can as root simply do;
cd /to/snull/dir
modprobe snull
ifconfig sn0 10.1.2.11 up
ifconfig sn1 10.1.2.12 up
route add -net 10.1.2.0 netmask 255.255.255.0 sn0
route add -net 10.1.2.0 netmask 255.255.255.0 sn1
You can also place the snull modules in /lib/modules/2.4.18/kernel/drivers/net run depmod -a
place the following in /etc/modules.conf
alias sn0 snull
alias sn1 snull
Now if you use ifconfig to up the interface without loading the module first then it should get loaded automaticly altho, i have not tryed it here because i do not intend to use snX ifc's.
--
If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime.
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
hi!
i do not want to be assuming now, since i only got some errors from my assumptions. i have performed the options mentioned below but got some errors.
what is sn0 and sn1?
can modprobe or insmod know that snull.o is snull? (or am i getting the wrong idea here?)
planning to do the following:
Quoted 6 lines
cd /to/snull/dir
modprobe snull
ifconfig sn0 10.1.2.11 up
ifconfig sn1 10.1.2.12 up
route add -net 10.1.2.0 netmask 255.255.255.0 sn0
route add -net 10.1.2.0 netmask 255.255.255.0 sn1
and the result:
---> cd /lib/modules/2.4.18-sh/misc
ls
snull.o
modprobe snull
modprobe: Can't locate module snull
(i supposed that i cant continue from here, but
just tried)
ifconfig sn0 101.11.21.111 up
SIOCSIFADDR: No such device
sn0: unknown interface: No such device
sn0: unknown interface: No such device
ifconfig sn1 101.11.21.121 up
SIOCSIFADDR: No such device
sn1: unknown interface: No such device
sn1: unknown interface: No such device
route add -net 101.11.21.0 netmask 255.255.255.0
sn0
SIOCADDRT: No such device
route add -net 101.11.21.0 netmask 255.255.255.0
sn1
SIOCADDRT: No such device
planning to do the following:
Quoted 1 line
You can also place the snull modules in
/lib/modules/2.4.18/kernel/drivers/net
Quoted 4 lines
run depmod -a
place the following in/etc/modules.conf
alias sn0 snull
alias sn1 snull
and the result:
---> cp /lib/modules/2.4.18-sh/misc/snull.o /lib/modules/2.4.18-sh/kernel/drivers/net/.
depmod -a
then edited /etc/modules.conf to add the
mentioned aliases
the redo the procedures: modprobe snull; ifconfig
sn0 101.11.21.111 up; ifconfig sn1 101.11.21.121 up; route add -net 101.11.21.0 netmask 255.255.255.0 sn0; route add -net 101.11.21.0 netmask 255.255.255.0 sn1
the same results were seen
what seems to be wrong with sn?
am i doing something wrong in here?
thanks for all the information and assistance . . .
Quoted 80 lines · --- Richard Adams
Quoted 4 lines · Donald Duckie
hi!
thank you very much :-)
the make mrproper; make oldconfig; and make depwere
Quoted 5 lines
all that was lacking . . . whew!!!
for my next steps though, where can i find some
information onsnull_loadandsnull_unload?
running them gave me the following errors:No idea, but here is your answer(s).
Quoted 3 lines
[aphrodite@aphrodite2 snull]$
snull_load
./snull.o: ELF file ./snull.o not for this
architectureYou need to be root to insert modules.
As root do;
cd /to/where/snull_load/file/is
chmod a+xsnull_load./snull_load
But you will still get some errors because local0
and local1 are not know on
your system, either define them in/etc/hostsor
editsnull_loadand replace
local0 and local1 with an internal IP# as in.
ifconfig sn0 10.1.2.11
ifconfig sn1 10.1.2.12Quoted 4 lines
local0: Host name lookup failure
ifconfig: `--help' gives usage information.
local1: Host name lookup failure
ifconfig: `--help' gives usage information.They are not defined in
/etc/hosts.Quoted 5 lines
[aphrodite@aphrodite2 snull]$
snull_unload
sn0: unknown interface: No such device
sn1: unknown interface: No such device
snull: Operation not permittedBecause the ifconfig line had an invalid host
nothing gets configured.You can as root simply do;
cd /to/snull/dir
modprobe snull
ifconfig sn0 10.1.2.11 up
ifconfig sn1 10.1.2.12 up
route add -net 10.1.2.0 netmask 255.255.255.0 sn0
route add -net 10.1.2.0 netmask 255.255.255.0 sn1You can also place the snull modules in
/lib/modules/2.4.18/kernel/drivers/net
run depmod -a
place the following in/etc/modules.confalias sn0 snull
alias sn1 snull
Now if you use ifconfig to up the interface without loading the module first
then it should get loaded automaticly altho, i have not tryed it here because
i do not intend to use snX ifc's.--
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/
Quoted 9 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.linux-learn.org/faqs
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Donald Duckie
hi!
i do not want to be assuming now, since i only got some errors from my assumptions. i have performed the options mentioned below but got some errors.
what is sn0 and sn1?
They are interface names, that and that only, compare them to ethernet devices, they are called ethX.
Quoted 2 lines
can modprobe or insmod know that snull.o is snull? (or am i getting the wrong idea here?)
Modprobe is the best to use as it is more intelligent, i suggest you read the manual page for modprobe.
Basicly modprobe looks in /lib/modules/uname -r/ for modules, now that suggests there is somthing wrong with your system IF everything is like you say below.
Quoted 9 lines
planning to do the following:
Quoted 6 lines
cd /to/snull/dir
modprobe snull
ifconfig sn0 10.1.2.11 up
ifconfig sn1 10.1.2.12 up
route add -net 10.1.2.0 netmask 255.255.255.0 sn0
route add -net 10.1.2.0 netmask 255.255.255.0 sn1
Quoted 6 lines
and the result:
---> cd/lib/modules/2.4.18-sh/misc
ls
snull.o
modprobe snull
modprobe: Can't locate module snull
This can be cause by at least 3 main factors,
1) You have not run 'depmod -a'
2) Your kernel is not called 2.4.18-sh
3) Your not root.
Quoted 8 lines
(i supposed that i cant continue from here, but
just tried)
ifconfig sn0 101.11.21.111 up
SIOCSIFADDR: No such device
sn0: unknown interface: No such device
sn0: unknown interface: No such device
ifconfig sn1 101.11.21.121 up
SIOCSIFADDR: No such device
Quoted 8 lines
sn1: unknown interface: No such device
sn1: unknown interface: No such device
route add -net 101.11.21.0 netmask 255.255.255.0
sn0
SIOCADDRT: No such device
route add -net 101.11.21.0 netmask 255.255.255.0
sn1
SIOCADDRT: No such device
You told me in a previous mail that you could load the module right.? But now trying it in anther way it fails right.???
Quoted 11 lines
planning to do the following:
Quoted 1 line
You can also place the snull modules in
/lib/modules/2.4.18/kernel/drivers/netQuoted 4 lines
run depmod -a
place the following in/etc/modules.conf
alias sn0 snull
alias sn1 snull
Quoted 6 lines
and the result:
---> cp/lib/modules/2.4.18-sh/misc/snull.o/lib/modules/2.4.18-sh/kernel/drivers/net/.
depmod -a
then edited/etc/modules.confto add the
mentioned aliases
Here you need to do 'depmod -a' to update the modules database, if its not run and you use modprobe you "should get a message" saying something like, modules.conf is more recent than bla bla bla.
Quoted 8 lines
the redo the procedures: modprobe snull; ifconfig
sn0 101.11.21.111 up; ifconfig sn1 101.11.21.121 up; route add -net 101.11.21.0 netmask 255.255.255.0 sn0; route add -net 101.11.21.0 netmask 255.255.255.0 sn1
the same results were seenwhat seems to be wrong with sn?
There should be nothing wrong with sn0 or sn1, you said the module compiled, i suggest you do the following to see once again if all is well.
su -
enter passwd for root. (and press enter of course) cd /path/to/ldd2-samples-1.0.1/snull insmod snull
ifconfig sn0 10.11.21.111 up
ifconfig sn1 10.11.21.121 up
That works here and "should work there as well".
Quoted 1 line
am i doing something wrong in here?
With all due respect, it certainly looks like it.
Now a few questions here,
1) What is the output of the command uname -r
2) What do you whant to use snull for.?
3) What distro are you using.
4) Again with all due respect, if one needs so much basic help to get something like this to work then surely one would not even know what to use them for would one, now i hope i am wrong on that one.
The following is showing that you dont seem to understand what i am saying,
Quoted 1 line
Quoted 1 line
[aphrodite@aphrodite2 snull]$
snull_unload
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The above indicates that you are NOT root.
Quoted 1 line
Quoted 1 line
snull: Operation not permitted
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This almost certainly indicates that you are _NOT_ root.
Quoted 2 lines
thanks for all the information and assistance . . .
Signature · 14 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
hi!
thank you for the patience in explaining things. there are some other things in linux that i still need to understand.
and to answer the questions:
Quoted 1 line
1) What is the output of the command uname -r
in my compilation machine, it is 2.4.21-4.EL.
- and i was cross-compiling with 2.4.18-SH. the /linux was linked to 2.4.18-SH/linux.
- how do I set my environment such that uname -r
can get the 2.4.18-SH? i think depmod uses it right? in the machine where i run modprobe but got the unresolved linking errors (this is a separate machine), it is 2.4.18-SH.
Quoted 1 line
2) What do you whant to use snull for.?
- currently i am studying the socket_buffers and
ifc2 implementation and happen to see the snull sample, and thought this would be a good example to see how it runs/works.
Quoted 1 line
3) What distro are you using.
- using 2.4.18-SH (redhat)
Quoted 1 line
4) [aphrodite@aphrodite2] whoami will return root.
(though maybe i would admit that in the several
attempts that i have done, there might be a time wherein i was not root). but i performed the suggested operations (insuring that i was root) and still got the same results.
and here are what i have just noticed lately:
in the machine where i run modprobe with unresolved linking errors, there is no depmod command, so i assume that i will run depmod where i compiled the snull files, transfer the makefile.dep to the other machine for modprobe to use. is this okey?
and just a minute ago (just came back to this task today since last week); i renamed /lib to /lib.redhat and am no longer able to perform any other command to the machine where i compiled. i can't run mv anymore. is there a way for me to be able to return /lib.redhat to /lib?
thank you very for your help . . .
Quoted 150 lines · --- Richard Adams
Quoted 4 lines · Donald Duckie
hi!
i do not want to be assuming now, since i only got some errors from my assumptions. i have performed
the
Quoted 4 lines
options mentioned below but got some errors.
what is sn0 and sn1?
They are interface names, that and that only,
compare them to ethernet
devices, they are called ethX.Quoted 1 line
can modprobe or insmod know that snull.o is snull?
(or
Quoted 1 line
am i getting the wrong idea here?)
Modprobe is the best to use as it is more intelligent, i suggest you read the
manual page for modprobe.
Basicly modprobe looks in/lib/modules/uname -r/ for modules, now that
suggests there is somthing wrong with your system IF everything is like you
say below.Quoted 7 lines
planning to do the following:
Quoted 5 lines
cd /to/snull/dir
modprobe snull
ifconfig sn0 10.1.2.11 up
ifconfig sn1 10.1.2.12 up
route add -net 10.1.2.0 netmask 255.255.255.0sn0
Quoted 1 line
Quoted 1 line
route add -net 10.1.2.0 netmask 255.255.255.0
sn1
Quoted 7 lines
and the result:
---> cd/lib/modules/2.4.18-sh/misc
ls
snull.o
modprobe snull
modprobe: Can't locate module snullThis can be cause by at least 3 main factors,
1) You have not run 'depmod -a'
2) Your kernel is not called 2.4.18-sh
3) Your not root.Quoted 1 line
(i supposed that i cant continue from here,
but
Quoted 10 lines
just tried)
ifconfig sn0 101.11.21.111 up
SIOCSIFADDR: No such device
sn0: unknown interface: No such device
sn0: unknown interface: No such device
ifconfig sn1 101.11.21.121 up
SIOCSIFADDR: No such device
sn1: unknown interface: No such device
sn1: unknown interface: No such device
route add -net 101.11.21.0 netmask255.255.255.0
Quoted 3 lines
sn0
SIOCADDRT: No such device
route add -net 101.11.21.0 netmask255.255.255.0
Quoted 2 lines
sn1
SIOCADDRT: No such deviceYou told me in a previous mail that you could load the module right.?
But now trying it in anther way it fails right.???Quoted 11 lines
planning to do the following:
Quoted 1 line
You can also place the snull modules in
/lib/modules/2.4.18/kernel/drivers/netQuoted 4 lines
run depmod -a
place the following in/etc/modules.conf
alias sn0 snull
alias sn1 snullQuoted 6 lines
and the result:
---> cp/lib/modules/2.4.18-sh/misc/snull.o/lib/modules/2.4.18-sh/kernel/drivers/net/.
depmod -a
then edited/etc/modules.confto add the
mentioned aliasesHere you need to do 'depmod -a' to update the
modules database, if its not run
and you use modprobe you "should get a message"
saying something like,
modules.conf is more recent than bla bla bla.Quoted 1 line
the redo the procedures: modprobe snull;ifconfig
Quoted 1 line
sn0 101.11.21.111 up; ifconfig sn1 101.11.21.121
up;
Quoted 1 line
route add -net 101.11.21.0 netmask 255.255.255.0
sn0;
Quoted 1 line
route add -net 101.11.21.0 netmask 255.255.255.0
sn1
Quoted 4 lines
the same results were seen
what seems to be wrong with sn?
There should be nothing wrong with sn0 or sn1, you said the module compiled,
i suggest you do the following to see once again if all is well.su -
enter passwd for root. (and press enter of course) cd /path/to/ldd2-samples-1.0.1/snull insmod snull
ifconfig sn0 10.11.21.111 up
ifconfig sn1 10.11.21.121 upThat works here and "should work there as well".
Quoted 1 line
am i doing something wrong in here?
With all due respect, it certainly looks like it.
Now a few questions here,
1) What is the output of the command uname -r
2) What do you whant to use snull for.?
3) What distro are you using.
4) Again with all due respect, if one needs so much basic help to get
something like this to work then surely one would not even know what to use
them for would one, now i hope i am wrong on that one.The following is showing that you dont seem to
understand what i am saying,Quoted 1 line
Quoted 1 line
[aphrodite@aphrodite2 snull]$
snull_unload^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The above indicates that you are NOT root.
Quoted 22 lines
Quoted 1 line
Quoted 1 line
snull: Operation not permitted
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This almost certainly indicates that you are _NOT_ root.Quoted 2 lines
thanks for all the information and assistance . .
.
Signature · 9 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
unresolved symbol __udivsi3_i4
hi!
Thank you very much for your help on
Subject: Invalid kernel header included in userspace; multi-line string literals are deprecated :-) I finally understood where I should be doing depmod and what I need to do with its generated files.
There is one thing that is currently bugging me though. Upon running modprobe, this is what I currently got:
Using /lib/modules/2.4.18-sh/kernel/drivers/net/snull.
<cut>
modprobe: unresolved symbol __udivsi3_i4
<cut>
The gcc version that is used is:
[aprhodite@aphrodite2 bin]$ sh-linux-gcc -v
Reading specs from/usr/lib/gcc-lib/sh-linux/3.0.3/specs
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --target=sh-linux
--host=i686-pc-linux-gnu --build=i
686-pc-linux-gnu --disable-c99 --disable-nls
--enable-languages=c,c++ --with-system-zlib
--with-gxx-include-dir=/usr/sh-
linux/include/g++-v3
--includedir=/usr/sh-linux/include
--enable-threads=posix --enable-long-long
Thread model: posix
gcc version 3.0.3
Running nm -l-s snull.o
00000000 a *ABS*
<cut>
U __udivsi3_i4
/home/aphrodite/snull/snull3/snull/snull.c:355
<cut>
the block in snull.c that contains ine 355 is:
352 if (lockup && ((priv->stats.tx_packets +
1) % lockup) == 0) {
353 /* Simulate a dropped transmit
interrupt */
354 netif_stop_queue(dev);
355 PDEBUG("Simulate lockup at %ld, txp
%ld\n", jiffies,
356 (unsigned long)
priv->stats.tx_packets);
357 }(which seems to be okey)
The only modification to the downloaded snull files is on snull.c:
30 //#include <linux/malloc.h> /* kmalloc() */
31 #include <linux/slab.h> /* kmalloc()deprecated use slab.h instead*/
can anyone please tell me how to deal with this
unresolved symbol __udivsi3_i4?
thank you very much.
-donald
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: unresolved symbol __udivsi3_i4
Quoted 2 lines · Donald Duckie
can anyone please tell me how to deal with this
unresolved symbol__udivsi3_i4?
Compile it on the machine you intend to use it on.
Signature · 13 lines
If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 1 line · Donald Duckie
hi!
Sorry for the long delay, i just returned from holiday.
Quoted 7 lines
thank you for the patience in explaining things. there are some other things in linux that i still need to understand.
and to answer the questions:Quoted 1 line
1) What is the output of the command uname -r
in my compilation machine, it is 2.4.21-4.EL.
Then you are using a kernel named 2.4.21-4.EL
Quoted 1 line
- and i was cross-compiling with 2.4.18-SH.
I doubt _very much_ that you were cross compiling,
Simply because the linux symlink points to another name other than the running kernel does _not_ mean you are cross compiling.
Quoted 3 lines
the /linux was linked to 2.4.18-SH/linux.
- how do I set my environment such that uname -r
can get the 2.4.18-SH? i think depmod uses it right?
WRONG, if you want uname-r to show 2.4.18-SH then you _must_ boot that kernel then and only then will uname -r show 2.4.18-SH as that would then be the running kernel.
Kernel modules compiled against 2.4.18-SH source will not normally be usable with another kernel.
Quoted 3 lines
in the machine where i run modprobe but got the unresolved linking errors (this is a separate machine), it is 2.4.18-SH.
You can compile a kernel and its modules on one machine and transfer them to another machine _only_ if the kernel is the same, if the kernel versions do not match then modules will give unresolved symbols period.
Quoted 11 lines
Quoted 2 lines
2) What do you whant to use snull for.?
- currently i am studying the
socket_buffersand
ifc2 implementation and happen to see the snull sample, and thought this would be a good example to see how it runs/works.Quoted 1 line
3) What distro are you using.
- using 2.4.18-SH (redhat)
Then compile modules on that machine and not on another using a different kernel.
Quoted 9 lines
Quoted 2 lines
4) [aphrodite@aphrodite2] whoami will return root.
(though maybe i would admit that in the several
attempts that i have done, there might be a time wherein i was not root). but i performed the suggested operations (insuring that i was root) and still got the same results.
Quoted 6 lines
and here are what i have just noticed lately:
in the machine where i run modprobe with unresolved linking errors, there is no depmod command, so i assume that i will run depmod where i compiled the snull files, transfer the makefile.dep to the other machine for modprobe to use. is this okey?
If you do not have the depmod command then you installation is !ucked up, it cannot possably work properly without it, depmod normally resides in /sbin Use the 'whereis' command to dind it.
whereis depmod
You run 'depmod -a' after;
1) Installing a new module
2) After editing /etc/modules.conf
3) Possably at startup (done automaticly).
No you _dont_ run depmod on another machine at all if the module(s) are to be transfered to another machine.
No you dont even use makefile.dep at all.
Quoted 7 lines
and just a minute ago (just came back to this task today since last week); i renamed /lib to /lib.redhat and am no longer able to perform any other command to the machine where i compiled. i can't run mv anymore. is there a way for me to be able to return /lib.redhat to /lib?
You seem to be trying to run before you can walk, you say you are studing socket_buffers and there workings which gives me the impression you know about things, then again you !uck up your system by doing a chilish 'mv' operation.
No unix system in the world will run without lib's, in its path enviroment.
You will quite possably need to use the install cd to boot your machine into resuce mode or start an install to be able to access a console.
I dont know how redhat does it anymore as i do not have a running redhat system here to try, The idea behind is to use a install boot meduim to be able to 'mount' the damaged partition, once mounted you can simply 'mv' back what you did wrong, then simply reboot start the system like you always do and all should then be fine.
I can explane into more detail but as i said i do not have a redhat system here so i may well get some or other redhat spesific then wrong and mislead you, with slackware i would do;
Place the install cd in the drive and start the system, at the lilo boot prompt i would smply hit enter to boot the default CD image. Type root to start.
I now have a root console
mount -t auto /dev/hda1 /mnt
cd /mnt/
mv lib.redhat lib
reboot
Under redhat i would try the same.
boot, let redhat start its installer
When it has started hit CTRL-ALT-F1 or 2 or 3 or 4 etc, find a console with a shell, there should be one where you can enter commands, now use my example above to change the dir structure back to how it should be.
As i said, its redhat so your mileage may vary.
Signature · 13 lines
If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs