RE: [3c509] Compile time error on SuSE 9 with latest netdrivers.tgz file

"Kevin Martin" <[email protected]> Thu, 29 Jan 2004 14:59:50 -0600
Newsgroups gmane.linux.drivers.vortex.devel,gmane.linux.drivers.3c509.devel
Message-ID <001f01c3e6aa$d6ccf150$57f1d80a@kmartlaptop>
This is what my param.h files consists of (in it's entirety):

#ifndef _ASMi386_PARAM_H
#define _ASMi386_PARAM_H

#ifdef __KERNEL__
# define HZ             1000            /* Internal kernel timer frequency
*/
# define USER_HZ        100             /* .. some user interfaces are in
"ticks
" */
# define CLOCKS_PER_SEC (USER_HZ)       /* like times() */
#endif

#ifndef HZ
#define HZ 100
#endif

#define EXEC_PAGESIZE   4096

#ifndef NGROUPS
#define NGROUPS         32
#endif

#ifndef NOGROUP
#define NOGROUP         (-1)
#endif

#define MAXHOSTNAMELEN  64      /* max length of hostname */

#endif

Thanks.

Kevin Martin
[email protected]



-----Original Message-----
From: Donald Becker [mailto:[email protected]] 
Sent: Thursday, January 29, 2004 1:24 PM
To: Kevin Martin
Cc: [email protected]; [email protected]
Subject: Re: [3c509] Compile time error on SuSE 9 with latest netdrivers.tgz
file


On Wed, 28 Jan 2004, Kevin Martin wrote:

> To: [email protected]

This should be sent to the [email protected] mailing list.

> Subject: [3c509] Compile time error on SuSE 9 with latest netdrivers.tgz
>     file
> 
> SuSE Kernel revision is 2.4.21-166-default.
> 
> I'm receiving the following error when trying to build the latest 
> 3c59x
> driver:
>
> make KERNVER=`uname -r`
> cc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6
> -I/lib/modules/2.4.21-166-default/build/include/  -pipe 
> -fno-strength-reduce -DMODVERSIONS   -c -o 3c59x.o 3c59x.c
> 3c59x.c:600: error: initializer element is not constant
> 3c59x.c:600: error: (near initialization for `media_tbl[0].wait')

Hmmm, it looks as if you are running a modified kernel.
The likely element in common here is 'HZ', which should be defined as a
constant in
   /usr/include/asm/param.h
The first few lines of the file should have

#ifndef HZ
#define HZ 100
#endif

-- 
Donald Becker				[email protected]
Scyld Computing Corporation		http://www.scyld.com
914 Bay Ridge Road, Suite 220		Scyld Beowulf cluster systems
Annapolis MD 21403			410-990-9993

_______________________________________________
vortex mailing list
[email protected]
http://www.scyld.com/mailman/listinfo/vortex