Hi, trying to build inn-CURRENT-20020423 on an SGI system running IRIX 6.5.15f using MIPSpro Compiler 7.3.1.3 failed for the following reasons: 1) configure uses inn_cv_c99_vamacros instead of inn_cv_c_c99_vamacros which probably is a typo. Attachment 1 contains a patch to configure.in to correct this problem. BTW: it would be nice if configure.in could be made compatible with autoconf 2.53. At this time the older version 2.13 is needed. 2) support/mksystem does not work as expected because awk tries to read from stdio and not the '<<' input. It also does not honor the awk path specified in Makefile.global. Attachment 2 contains a patch for support/mksystem and include/Makefile to correct the problem and it works on my system. I don't know how portable it really is but I assume it cause much less problems than the current code. 3) storage/buffindexed/buffindexed.c can't be compiled because of error messages: "The expression must be a pointer to a complete object type." The reason seems to be calculating with void-pointers which is not allowed. Casting the variables to char-pointers fixes the problem and should not cause any harm. Attachment 4 contains a patch for storage/buffindexed/buffindexed.c Heiko Heiko Schlichting | Freie Universität Berlin heiko@FU-Berlin.DE | Zentraleinrichtung für Datenverarbeitung (ZEDAT) Telefon +49 30 838-54327 | Fabeckstraße 32 Telefax +49 30 838454327 | 14195 Berlin -- Attached file included as plaintext by Ecartis -- --- configure.in.org Tue Apr 23 11:00:03 2002 +++ configure.in Wed Apr 24 10:36:01 2002 @@ -956,7 +956,7 @@ [#include #define error(...) fprintf(stderr, __VA_ARGS__)], [error("foo"); error("foo %d", 0); return 0;], -[inn_cv_c_c99_vamacros=yes], [inn_cv_c99_vamacros=no])]) +[inn_cv_c_c99_vamacros=yes], [inn_cv_c_c99_vamacros=no])]) if test $inn_cv_c_c99_vamacros = yes ; then AC_DEFINE(HAVE_C99_VAMACROS, 1, [Define if the compiler supports C99 variadic macros.]) -- Attached file included as plaintext by Ecartis -- --- support/mksystem.org Tue Apr 23 11:01:10 2002 +++ support/mksystem Wed Apr 24 11:03:51 2002 @@ -31,18 +31,16 @@ EOF -awk -f - $1 <<'---END-OF-AWK-SCRIPT---' - +$1 ' /^#define HAVE_C99_VAMACROS/ { print save $1 " INN_" $2 " " $3 "\n" } /^#define HAVE_GNU_VAMACROS/ { print save $1 " INN_" $2 " " $3 "\n" } /^#define HAVE_INTTYPES_H/ { print save $1 " INN_" $2 " " $3 "\n" } /^#define HAVE_STDBOOL_H/ { print save $1 " INN_" $2 " " $3 "\n" } /^#define HAVE_SYS_BITTYPES_H/ { print save $1 " INN_" $2 " " $3 "\n" } -{ save = $0 "\n" } - ----END-OF-AWK-SCRIPT--- +{ save = $0 "\n" }' $2 cat < $@ + $(top)/support/mksystem $(AWK) config.h > $@ inn/version.h: $(top)/support/mkversion $(top)/Makefile.global $(top)/support/mkversion '$(VERSION)' '$(VERSION_EXTRA)' > $@ -- Attached file included as plaintext by Ecartis -- --- storage/buffindexed/buffindexed.c.org Tue Apr 23 11:01:02 2002 +++ storage/buffindexed/buffindexed.c Wed Apr 24 11:13:44 2002 @@ -1527,7 +1527,7 @@ ovgroupunmap(); return FALSE; } - ovblock = (OVBLOCK *)(addr + pagefudge); + ovblock = (OVBLOCK *)((char *)addr + pagefudge); if (ov.index == ge->curindex.index && ov.blocknum == ge->curindex.blocknum) { limit = ge->curindexoffset; } else { @@ -1596,7 +1596,7 @@ ovgroupunmap(); return FALSE; } - gdb->data = gdb->addr + pagefudge; + gdb->data = (char *)gdb->addr + pagefudge; gdb->mmapped = TRUE; } } @@ -1726,11 +1726,11 @@ syslog(L_ERROR, "%s: ovsearch could not mmap data block: %m", LocalLogName); return FALSE; } - gdb->data = search->gdb.data = search->gdb.addr + pagefudge; + gdb->data = search->gdb.data = (char *)search->gdb.addr + pagefudge; search->gdb.mmapped = TRUE; } } - *data = gdb->data + Gib[search->cur].offset; + *data = (char *)gdb->data + Gib[search->cur].offset; } } }