On Mon, 2007-11-19 at 21:33 +0100, Holger Levsen wrote:
> Hi,
> 
> On Monday 19 November 2007 15:36, Bernd Petrovitsch wrote:
> > So you should add "-D__FreeBSD__" also explicitly to CPPFLAGS in some
> > way (if only for testing/trying) and see it it works.
> 
> With that, it fails with:
> 
>  
> WARNINGS="-Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wnested-externs -Winline -Wdisabled-optimization -finline-functions-called-once -fearly-inlining -finline-limit=50" -C 
> src/cfgparser
> make[1]: Entering directory `/home/holger/src/olsrd-0.5.4/src/cfgparser'
> gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wnested-externs -Winline -Wdisabled-optimization -finline-functions-called-once -fearly-inlining -finline-limit=50 -O2  -Isrc -I../../src -pthread -DSUPPORT_OLD_PLUGIN_VERSIONS=1 -DOLSRD_GLOBAL_CONF_FILE=\"/usr/local/etc/olsrd.conf\" -D__FreeBSD__   -DMAKELIB  -c -o 
> olsrd_conf.o olsrd_conf.c
> In file included from /usr/include/stdio.h:34,
>                  from olsrd_conf.c:43:
> /usr/lib/gcc/i486-kfreebsd-gnu/4.1.3/include/stddef.h:58:26: error: 
> machine/ansi.h: No such file or directory

Hmm, machine/ansi.h is included by the stddef.h file which was included
by stdio.h.
Since I assume that there are some programs (e.g. the typical "hello
world" program) using stdio.h it's IHO a Debian bug/problem.
We probably miss something simple and basic.
Just some magic include directory?

> make[1]: *** [olsrd_conf.o] Fehler 1
> make[1]: Leaving directory `/home/holger/src/olsrd-0.5.4/src/cfgparser'
> make: *** [cfgparser] Fehler 2

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




