Discussion:
[wish-info] unable to compile with stock RH9 2.4.20 kernel
Stewart Allen
2003-06-06 03:25:53 UTC
Permalink
I starts out with this error and I get about 3 pages worth of errors:

gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4/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/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/kernel.h:60: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:60: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/kernel.h:61: parse error before numeric
constant

any ideas?

thanks,

stewart
Steve W
2003-06-06 06:17:14 UTC
Permalink
Oops :) sorry about my first reply directly to you Stewart, I thought
the message was for the Bandwidth Arbitrator list I also get. My
mistake.

But I have recently compiled the x10 stuff on Redhat 9 and 2.4.20.

I didn't put mine in the kernel source, I did make the symbolic link
/usr/src/linux pointing to my kernel directory though as I mentioned in
the previous email. The install without problems.

The procedure I followed was as written here:

Type "make KENRNLDIR=<kernel source directory>" where <kernel source
dir> is the directory where the kernel sources are installed. Do not
proceed if any errors occur. You can leave off the KERNELDIR parameter
if you have your kernel source in /usr/src/linux. Othewise, you can
specify the directory for your kernel sources. For example, if the
kernel source is located in /usr/src/linux-2.4.20, type the following
command:

# make KERNELDIR=/usr/src/linux-2.4.20
2. To automatically install the drivers and the utilities, type
"make installall KERNELDIR=<kernel source directory>" (without
the quotes) in the top level directory of the WiSH source code.
This will copy the modules to your /lib/modules/<kernel
version>/kernel/drivers/char/x10 directory. It will also copy
the utilities to /usr/sbin and /usr/bin as well as make the
devices in /dev/x10 if the directory doesn't exist.
Note that the logic used for determining the kernel version is:

1. If KERNELDIR is specified on the make commandline, it will be
used. If not specified, go to #2
2. If /usr/src/linux/ exists, it will be used. If /usr/src/linux/
doesn't exist, go to #3
3. The directory /usr/src/linux-`uname -r` will be used. If
/usr/src/linux-`uname -r` doesn't exist, the make will fail


Steve...
Post by Stewart Allen
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4/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/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/kernel.h:60: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:60: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/kernel.h:61: parse error before numeric
constant
any ideas?
thanks,
stewart
-------------------------------------------------------
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
Scott Hiles
2003-06-06 06:44:18 UTC
Permalink
I just installed RedHat 9 today and tested the drivers. You will get a
warning when compiling because the newest kernel drivers include macros for
warn and info. You can ignore the warnings as they don't affect the driver
loading. I successfully loaded the driver under 2.4.20-8, 2.4.20-13.7, and
the stock 2.4.20 under RedHat 9 using both DEVFS and non DEVFS before
killing my PowerLinc USB. 1.6.7 works for all 4 transceivers under RedHat 9
with all 2.4.20 releases. I won't be releasing any new code until I can get
another PL USB to finish testing changes.

Remember to remove HID before loading x10_plusb. Otherwise the driver will
never get control of the PowerLinc USB. If you need HID to manage keyboards
or mice, you can add it after x10_plusb has loaded. The scripts distributed
with 1.6.7 have this:

# rmmod hid
# insmod x10_plusb
# if hid was loaded before, insmod hid

The "if hid was loaded before" is a bit more complex than I just put in, but
you get the jist.

Scott
-----Original Message-----
Sent: Friday, June 06, 2003 2:17 AM
Subject: Re: [wish-info] unable to compile with stock RH9
2.4.20 kernel
Oops :) sorry about my first reply directly to you Stewart, I
thought the message was for the Bandwidth Arbitrator list I
also get. My mistake.
But I have recently compiled the x10 stuff on Redhat 9 and 2.4.20.
I didn't put mine in the kernel source, I did make the
symbolic link /usr/src/linux pointing to my kernel directory
though as I mentioned in the previous email. The install
without problems.
Type "make KENRNLDIR=<kernel source directory>" where <kernel source
dir> is the directory where the kernel sources are installed. Do not
proceed if any errors occur. You can leave off the KERNELDIR
parameter if you have your kernel source in /usr/src/linux.
Othewise, you can specify the directory for your kernel
sources. For example, if the kernel source is located in
/usr/src/linux-2.4.20, type the following
# make KERNELDIR=/usr/src/linux-2.4.20
2. To automatically install the drivers and the utilities, type
"make installall KERNELDIR=<kernel source directory>" (without
the quotes) in the top level directory of the WiSH
source code.
This will copy the modules to your /lib/modules/<kernel
version>/kernel/drivers/char/x10 directory. It will also copy
the utilities to /usr/sbin and /usr/bin as well as make the
devices in /dev/x10 if the directory doesn't exist.
1. If KERNELDIR is specified on the make commandline, it will be
used. If not specified, go to #2
2. If /usr/src/linux/ exists, it will be used. If
/usr/src/linux/
doesn't exist, go to #3
3. The directory /usr/src/linux-`uname -r` will be used. If
/usr/src/linux-`uname -r` doesn't exist, the make will fail
Steve...
Post by Stewart Allen
I starts out with this error and I get about 3 pages worth
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
-Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer
Post by Stewart Allen
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4/include/linux/modversions.h -nostdinc
-iwithprefix
Post by Stewart Allen
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/include/linux/kernel.h:60: invalid
suffix on integer constant
Post by Stewart Allen
/usr/src/linux-2.4/include/linux/kernel.h:60: parse error
before numeric
Post by Stewart Allen
constant
function declaration
Post by Stewart Allen
isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:61: invalid
suffix on integer constant
Post by Stewart Allen
/usr/src/linux-2.4/include/linux/kernel.h:61: parse error
before numeric
Post by Stewart Allen
constant
any ideas?
thanks,
stewart
-------------------------------------------------------
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
-------------------------------------------------------
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/w> ish-info
Loading...