Because the platform-compiler isn't GNU, the following fails: cc-1137 cc: ERROR File = file.h, Line = 332 Unnamed prototyped parameters not allowed when body is present. protected int file_printf(struct magic_set *, const char *, ...) ^ cc-1129 cc: ERROR File = file.h, Line = 333 A left brace ("{") is expected at this point. __attribute__((__format__(__printf__, 2, 3))); ^ cc-1012 cc: WARNING File = /usr/include/internal/stdlib_core.h, Line = 115 Parsing restarts here after previous syntax error. typedef struct { ^ cc-3604 cc: WARNING File = /usr/include/internal/stdlib_core.h, Line = 118 missing return statement at end of non-void function "file_printf" } div_t; ^ unable to proceed because of earlier errors 2 errors detected in the compilation of "magic.c". ... although this can be fixed by appending "-D__attribute__\(x\)=''" to $CFLAGS. The more serious problem is then: cc-1005 cc: ERROR File = getopt_long.c, Line = 33 The source file "err.h" is unavailable. #include <err.h> ^ 1 catastrophic error detected in the compilation of "getopt_long.c". Compilation terminated. make[2]: *** [getopt_long.lo] Error 1 make[2]: Leaving directory `/usr/opt/portage/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/opt/portage/var/tmp/portage/sys-apps/file-4.25/work/file-4.25' make: *** [all] Error 2 * ERROR: sys-apps/file-4.25 failed: * emake failed * * Call stack: * ebuild.sh: 49: <call src_compile> * environment:3052: emake || die "emake failed"; ... because IRIX does indeed lack <err.h> :( Neither of these were problems with file-4.23.
I had to mask it on Interix too, as Interix doesn't have getopt_long.
Stuart, can you try and see if the gnulib package compiles out of the box for you?
Module dependencies outputs: Notice from module error: If you are using GNU gettext version 0.16.1 or older, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=error:3:c-format --flag=error_at_line:5:c-format Notice from module vasprintf: If you are using GNU gettext version 0.16.1 or older, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=asprintf:2:c-format --flag=vasprintf:2:c-format Notice from module xvasprintf: If you are using GNU gettext version 0.16.1 or older, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=xasprintf:1:c-format aclocal warns: configure.ac:48: warning: macro `AM_XGETTEXT_OPTION' not found in library configure.ac:100: warning: macro `AM_XGETTEXT_OPTION' not found in library The build process also outputs: cc-1047 cc: WARNING File = /usr/include/stdint.h, Line = 153 Macro "WCHAR_MIN" (declared at line 121 of "/usr/include/internal/wchar_core.h") has an incompatible redefinition. #define WCHAR_MIN INT32_MIN ^ cc-1047 cc: WARNING File = /usr/include/stdint.h, Line = 154 Macro "WCHAR_MAX" (declared at line 118 of "/usr/include/internal/wchar_core.h") has an incompatible redefinition. #define WCHAR_MAX INT32_MAX ^ c-1047 cc: WARNING File = /usr/include/stdint.h, Line = 153 Macro "WCHAR_MIN" (declared at line 121 of "/usr/include/internal/wchar_core.h") has an incompatible redefinition. #define WCHAR_MIN INT32_MIN ^ cc-1047 cc: WARNING File = /usr/include/stdint.h, Line = 154 Macro "WCHAR_MAX" (declared at line 118 of "/usr/include/internal/wchar_core.h") has an incompatible redefinition. #define WCHAR_MAX INT32_MAX ^ (and I'm not sure if the make command executed in gnulib/doc - where every *.texi file is passed as an argument - would succeed if I hadn't raised my 'ncargs' value) ... but except for that, the package builds successfully!
*** Bug 209623 has been marked as a duplicate of this bug. ***
We are sorry to close this bug. We lack the man-power and devotion to support mips-irix in the tree.