Redhat compilation woes

"Christopher Piggott HOME" <[email protected]>
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
This isn't making any sense.  Here is what I did:

Step 1: Network install redhat 9 on a blank computer.  Installed from a
redhat mirror, including development tools and kernel development packages.
No X, to make things faster.  Note: a binary kernel was installed as part of
this process - no kernel built on this system yet.

Step 2: download at76c503 v.11 and go into its directory and type "make."
Everything builds.

Step 3: go into /usr/local/linux-2.4.20-8 and type:
	make clean && make dep && make
to build the kernel from source.

Step 4: go into at75c503 v.11 directory, still as root, and try to compile.
Many, many errors.

As you suggested, I chased down some of the offending lines.  Here are some
examples of what I found:

******
In file included from at76c503.c:78:
/lib/modules/2.4.20-8/build/include/linux/kernel.h:60: invalid suffix on
integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:60: parse error before
numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:60: warning: function
declaration isn't a prototype
/lib/modules/2.4.20-8/build/include/linux/kernel.h:61: invalid suffix on
integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:61: parse error before
numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:62: `panic_R_ver_str'
declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:62: warning: function
declaration isn't a prototype

The offending section reads:

58: struct completion;
59:
60: extern struct notifier_block *panic_notifier_list;
61: NORET_TYPE void panic(const char * fmt, ...)
62:         __attribute__ ((NORET_AND format (printf, 1, 2)));


Here are some errors from usbdfu.c:

In file included from /lib/modules/2.4.20-8/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-8/build/include/linux/slab.h:14,
                 from usbdfu.c:24:
/lib/modules/2.4.20-8/build/include/linux/sched.h:6: invalid suffix on
integer constant
/lib/modules/2.4.20-8/build/include/linux/sched.h:6: parse error before
numeric constant
/lib/modules/2.4.20-8/build/include/linux/sched.h:6: warning: function
declaration isn't a prototype

This is even more perplexing:

4: #include <asm/param.h>  /* for HZ */
5:
6: extern unsigned long event;
7:
8: #include <linux/config.h>


So it's getting an invalid suffix on integer constant error by declaring an
extern?


It goes on and on.

I'm not sure what to do here.  The thing is, this is very much an
out-of-the-box redhat.

Any ideas?

--Chris

P.S. Jörg, I'd be happy to let you log on to this computer if it would help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.