arla-0.41-RC1

Harald Barth haba at pdc.kth.se
Fri Nov 25 22:41:42 CET 2005



>   gcc -march=i686 -O2   -c -o bits.o bits.c
>   bits.c: In function 'main':
>   bits.c:142: error: 'HOST' undeclared (first use in this function)
>   bits.c:142: error: (Each undeclared identifier is reported only once
>   bits.c:142: error: for each function it appears in.)

My Makefile says:

CC              = gcc
DEFS            = -DHAVE_CONFIG_H -DHOST=\"i686-pc-linux-gnu\"

and thus..

gcc -g  -Wall -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wnested-externs  -DHAVE_CONFIG_H -DHOST=\"i686-pc-linux-gnu\" -I. -I../../arla-20051124/include   -c -o bits.o ../../arla-20051124/include/bits.c

Your config.log contains

CANONICAL_HOST='i686-pc-linux-gnu'

which is used in Makefile.in, so your Makefile should contain that, too.

then that is in DEFS and then that is used in CFLAGS. Did you override
CFLAGS somehow? According to what I see, it should be there.

Harald.





More information about the Arla-drinkers mailing list