[Bridge] SUSE 8.1 build failure

Gareth Wheelton gareth at hasslemonkey.net
Wed Aug 18 09:26:20 PDT 2004

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.


-----Original Message-----
From: Torsten Luettgert [mailto:t.luettgert at pressestimmen.de] 
Sent: 17 August 2004 08:45
To: Gareth Wheelton
Cc: bridge at 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

More information about the Bridge mailing list