All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] SUSE 8.1 build failure
@ 2004-08-15 14:12 Gareth Wheelton
  2004-08-17  0:35 ` Gareth Wheelton
  2004-08-24 20:59 ` Stephen Hemminger
  0 siblings, 2 replies; 5+ messages in thread
From: Gareth Wheelton @ 2004-08-15 14:12 UTC (permalink / raw)
  To: bridge

Hi

RE: bridge-utils-1.0.4, linux 2.4.21-241-athlon


I'm receiving the following groan when I attempt to build bridge-utils on
SUSE 8.1(linux 2.4.21-241-athlon)

Any help most appreciated.


for x in libbridge brctl doc; do make  -C $x ; done
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/libbridge'
gcc -Wall -g -I/usr/src/linux/include  -c libbridge_devif.c
In file included from libbridge_devif.c:28:
libbridge_private.h: In function `__tv_to_jiffies':
libbridge_private.h:68: `HZ' undeclared (first use in this function)
libbridge_private.h:68: (Each undeclared identifier is reported only once
libbridge_private.h:68: for each function it appears in.)
libbridge_private.h: In function `__jiffies_to_tv':
libbridge_private.h:75: `HZ' undeclared (first use in this function)
make[1]: *** [libbridge_devif.o] Error 1
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/libbridge'
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/brctl'
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl.c
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl_cmd.c
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl_disp.c
make[1]: *** No rule to make target `../libbridge/libbridge.a', needed by
`brctl'.  Stop.
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/brctl'
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/doc'


cheers gareth



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Bridge] SUSE 8.1 build failure
  2004-08-15 14:12 [Bridge] SUSE 8.1 build failure Gareth Wheelton
@ 2004-08-17  0:35 ` Gareth Wheelton
  2004-08-17  7:45   ` Torsten Luettgert
  2004-08-24 20:59 ` Stephen Hemminger
  1 sibling, 1 reply; 5+ messages in thread
From: Gareth Wheelton @ 2004-08-17  0:35 UTC (permalink / raw)
  To: bridge

Does anyone know where 'HZ' is declared in the 2.4.xx source?


Cheers gareth

-----Original Message-----
From: bridge-bounces@lists.osdl.org [mailto:bridge-bounces@lists.osdl.org]
On Behalf Of Gareth Wheelton
Sent: 15 August 2004 15:12
To: bridge@lists.osdl.org
Subject: [Bridge] SUSE 8.1 build failure

Hi

RE: bridge-utils-1.0.4, linux 2.4.21-241-athlon


I'm receiving the following groan when I attempt to build bridge-utils on
SUSE 8.1(linux 2.4.21-241-athlon)

Any help most appreciated.


for x in libbridge brctl doc; do make  -C $x ; done
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/libbridge'
gcc -Wall -g -I/usr/src/linux/include  -c libbridge_devif.c
In file included from libbridge_devif.c:28:
libbridge_private.h: In function `__tv_to_jiffies':
libbridge_private.h:68: `HZ' undeclared (first use in this function)
libbridge_private.h:68: (Each undeclared identifier is reported only once
libbridge_private.h:68: for each function it appears in.)
libbridge_private.h: In function `__jiffies_to_tv':
libbridge_private.h:75: `HZ' undeclared (first use in this function)
make[1]: *** [libbridge_devif.o] Error 1
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/libbridge'
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/brctl'
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl.c
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl_cmd.c
gcc -Wall -g -O2 -I../libbridge -I/usr/src/linux/include  -c brctl_disp.c
make[1]: *** No rule to make target `../libbridge/libbridge.a', needed by
`brctl'.  Stop.
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/brctl'
make[1]: Entering directory `/home/gareth/bridge-utils-1.0.4/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/gareth/bridge-utils-1.0.4/doc'


cheers gareth





^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Bridge] SUSE 8.1 build failure
  2004-08-17  0:35 ` Gareth Wheelton
@ 2004-08-17  7:45   ` Torsten Luettgert
  2004-08-18 16:26     ` Gareth Wheelton
  0 siblings, 1 reply; 5+ messages in thread
From: Torsten Luettgert @ 2004-08-17  7:45 UTC (permalink / raw)
  To: Gareth Wheelton; +Cc: bridge

On Die, 2004-08-17 at 02:35, Gareth Wheelton wrote:
> Does anyone know where 'HZ' is declared in the 2.4.xx source?

grep is your friend:

# fgrep -r '#define HZ' /usr/src/linux
[...]
/usr/src/linux/include/asm-i386/param.h:#define HZ 100
[...]

so, you should insert

#include <asm/param.h>

into the module that doesn't compile.

- Torsten


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Bridge] SUSE 8.1 build failure
  2004-08-17  7:45   ` Torsten Luettgert
@ 2004-08-18 16:26     ` Gareth Wheelton
  0 siblings, 0 replies; 5+ messages in thread
From: Gareth Wheelton @ 2004-08-18 16:26 UTC (permalink / raw)
  To: bridge

I think 'libbride_private.h' was missing '#include <linux/hz.h>'

OK that's sorts out the compile, leaving the following link error:

gcc  brctl.o brctl_cmd.o brctl_disp.o  -L ../libbridge -lbridge  -o brctl
../libbridge/libbridge.a(libbridge_devif.o): In function `get_hz':
/usr/src/linux/include/linux/hz.h:19: undefined reference to `__HZ'
collect2: ld returned 1 exit status
make: *** [brctl] Error 1


Using 'nm' I found many modules under '/lib/modules/2.4.21-241-athlon'
referencing an undefined symbol '__HZ_R799069f6'. Maybe this is related?

My kernel is configured correctly i.e. CONFIG_BRIDGE=m


So where does '__HZ' live?


Cheers again.


gareth



-----Original Message-----
From: Torsten Luettgert [mailto:t.luettgert@pressestimmen.de] 
Sent: 17 August 2004 08:45
To: Gareth Wheelton
Cc: bridge@lists.osdl.org
Subject: RE: [Bridge] SUSE 8.1 build failure

On Die, 2004-08-17 at 02:35, Gareth Wheelton wrote:
> Does anyone know where 'HZ' is declared in the 2.4.xx source?

grep is your friend:

# fgrep -r '#define HZ' /usr/src/linux
[...]
/usr/src/linux/include/asm-i386/param.h:#define HZ 100
[...]

so, you should insert

#include <asm/param.h>

into the module that doesn't compile.

- Torsten




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bridge] SUSE 8.1 build failure
  2004-08-15 14:12 [Bridge] SUSE 8.1 build failure Gareth Wheelton
  2004-08-17  0:35 ` Gareth Wheelton
@ 2004-08-24 20:59 ` Stephen Hemminger
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2004-08-24 20:59 UTC (permalink / raw)
  To: Gareth Wheelton; +Cc: bridge

The inline functions in libbridge_private.h expect HZ defined in /usr/include/asm/param.h
What does that look like on your system?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-24 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 14:12 [Bridge] SUSE 8.1 build failure Gareth Wheelton
2004-08-17  0:35 ` Gareth Wheelton
2004-08-17  7:45   ` Torsten Luettgert
2004-08-18 16:26     ` Gareth Wheelton
2004-08-24 20:59 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.