Ticket #462 (closed defect: fixed)
commit e6c87a718936b070ce8983f0e95cbead7959629c not BSD-compatible
| Reported by: | alanpost | Owned by: | felix |
|---|---|---|---|
| Priority: | major | Milestone: | 4.9.0 |
| Component: | build system | Version: | 4.6.x |
| Keywords: | Cc: | alanpost@… |
Description
After updating Chicken past e6c87a718936b070ce8983f0e95cbead7959629c, I get the following error trying to build on OpenBSD 4.8:
gmake -f ./Makefile.bsd CONFIG= all gmake[1]: Entering directory `/home/a/wa/chicken/core' gcc -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -c -Os -fomit-frame-pointer -DC_BUILDING_LIBCHICKEN library.c -o library-static.o -I. -I./ In file included from library.c:11: chicken.h:157: error: conflicting types for 'alloca' gmake[1]: *** [library-static.o] Error 1 gmake[1]: Leaving directory `/home/a/wa/chicken/core' gmake: *** [all] Error 2
The OpenBSD man page indicates that alloca has a different signature than the one declared in chicken.h:
The macro '#if defined(__OpenBSD__)' can be used to add platform specific code in OpenBSD, though I suspect alloca is stable across the *BSD platforms.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
