Skip to contentSkip to conversation

SUSE 8.1 build failure

Bridge Gareth Wheelton 3 participants 5 messages Aug 15, 2004 – Aug 24, 2004 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Cheers gareth

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Gareth Wheelton
Sent: 15 August 2004 15:12
To: [email protected]
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

#2 lore raw
Quoted 1 line · Gareth Wheelton

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

#3 lore raw

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:[email protected]]
Sent: 17 August 2004 08:45
To: Gareth Wheelton
Cc: [email protected]
Subject: RE: [Bridge] SUSE 8.1 build failure

Quoted 1 line · Gareth Wheelton

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