Discussion:
[wish-info] Wish 1.6.7 compile fails on RH9 linux-2.4.20-18.9 kernel
Willem Riede
2003-06-07 20:39:54 UTC
Permalink
I have the same problem as Steward Allen, and the previous answers do not help.

I did:

cd /usr/src/linux-2.4.20-18.9

cp configs/kernel-2.4.20-i686.config .config
vi Makefile (to take the "custom" out of EXTRAVERSION)
make oldconfig
make dep

cd ~/wish-1.6.7

make KERNELDIR=/usr/src/linux-2.4.20-18.9

and get:

/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.c > .depend
/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.h > .hdepend
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h -nostdinc -iwithprefix include -pipe
-mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=x10_core -c -o x10_core.o x10_core.c
In file included from x10_core.c:52:
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: `panic_R_ver_str' declared as function
returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as
function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: warning: function declaration isn't a
prototype

and so on...

What did I do wrong?

Thanks, Willem Riede.
Willem Riede
2003-06-07 20:39:54 UTC
Permalink
I have the same problem as Steward Allen, and the previous answers do not help.

I did:

cd /usr/src/linux-2.4.20-18.9

cp configs/kernel-2.4.20-i686.config .config
vi Makefile (to take the "custom" out of EXTRAVERSION)
make oldconfig
make dep

cd ~/wish-1.6.7

make KERNELDIR=/usr/src/linux-2.4.20-18.9

and get:

/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.c > .depend
/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.h > .hdepend
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h -nostdinc -iwithprefix include -pipe
-mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=x10_core -c -o x10_core.o x10_core.c
In file included from x10_core.c:52:
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: `panic_R_ver_str' declared as function
returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as
function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: warning: function declaration isn't a
prototype

and so on...

What did I do wrong?

Thanks, Willem Riede.
Steve W
2003-06-07 21:07:15 UTC
Permalink
You might try making the symbolic link

cd /usr/src
ln -s linux-2.4.20-18.9 linux

Then try it.

Just in case something is hard coded for /usr/src/linux

Then leave off the KERNELDIR=/usr/src/linux-2.4.20-18.9

Steve...
Post by Willem Riede
I have the same problem as Steward Allen, and the previous answers do not help.
cd /usr/src/linux-2.4.20-18.9
cp configs/kernel-2.4.20-i686.config .config
vi Makefile (to take the "custom" out of EXTRAVERSION)
make oldconfig
make dep
cd ~/wish-1.6.7
make KERNELDIR=/usr/src/linux-2.4.20-18.9
/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.c > .depend
/usr/src/linux-2.4.20-18.9/scripts/mkdep -- *.h > .hdepend
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h -nostdinc -iwithprefix include -pipe
-mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=x10_core -c -o x10_core.o x10_core.c
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:60: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: `panic_R_ver_str' declared as function
returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:62: warning: function declaration isn't a
prototype
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as
function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/kernel.h:68: warning: function declaration isn't a
prototype
and so on...
What did I do wrong?
Thanks, Willem Riede.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
wish-info mailing list
https://lists.sourceforge.net/lists/listinfo/wish-info
Willem Riede
2003-06-07 21:54:37 UTC
Permalink
Post by Steve W
You might try making the symbolic link
cd /usr/src
ln -s linux-2.4.20-18.9 linux
Then try it.
Just in case something is hard coded for /usr/src/linux
Then leave off the KERNELDIR=/usr/src/linux-2.4.20-18.9
Actually, I tried that before I had seen the suggestion to use KERNELDIR.
Same problem. Other ideas, please?

Thanks, Willem Riede.
Skippy
2003-06-08 13:36:20 UTC
Permalink
The problem is that with RedHat, something is messed up at the version numbers seem to have future dates so that they are not updated. Execute:

# rm -f include/linux/modules/*

from the linux root tree. Then proceed with the "make dep".

This seemed to solve Stewart's problem.

Scott

BTW...construction dug up the phone system in our area and Verizon won't have it fixed for a while so I won't be responding. I am at a friends house just checking important messages.


-------Original Message-------
From: Willem Riede <***@riede.org>
Sent: 06/07/03 05:54 PM
To: wish-***@lists.sourceforge.net
Subject: [wish-info] Re: Wish 1.6.7 compile fails on RH9 linux-2.4.20-18.9 kernel
Post by Steve W
You might try making the symbolic link
cd /usr/src
ln -s linux-2.4.20-18.9 linux
Then try it.
Just in case something is hard coded for /usr/src/linux
Then leave off the KERNELDIR=/usr/src/linux-2.4.20-18.9
Actually, I tried that before I had seen the suggestion to use KERNELDIR.
Same problem. Other ideas, please?

Thanks, Willem Riede.


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Willem Riede
2003-06-08 22:06:15 UTC
Permalink
Post by Skippy
# rm -f include/linux/modules/*
from the linux root tree. Then proceed with the "make dep".
This seemed to solve Stewart's problem.
And it solved my problem too.

Thanks! Willem Riede.
Scott Hiles
2003-06-09 13:45:24 UTC
Permalink
I did get my test installation to report that it was still in the
"initialization" phase even though it was fully working. I will try to
figure this one out. The impact is that you can't unload the driver if it
thinks it is busy.

Scott

Loading...