Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232737 - sys-apps/file-4.25 fails to build on IRIX
Summary: sys-apps/file-4.25 fails to build on IRIX
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 209623 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-23 10:11 UTC by Stuart Shelton
Modified: 2011-12-15 18:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-07-23 10:11:02 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2008-07-23 10:23:55 UTC
I had to mask it on Interix too, as Interix doesn't have getopt_long.
Comment 2 Fabian Groffen gentoo-dev 2008-08-11 15:51:26 UTC
Stuart, can you try and see if the gnulib package compiles out of the box for you?
Comment 3 Stuart Shelton 2008-08-12 10:17:00 UTC
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!
Comment 4 Fabian Groffen gentoo-dev 2009-10-25 09:49:14 UTC
*** Bug 209623 has been marked as a duplicate of this bug. ***
Comment 5 Fabian Groffen gentoo-dev 2011-12-15 18:04:46 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.