Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265468 - media-libs/libsdl-1.2.x breaks if allowed to use <strings.h> on IRIX
Summary: media-libs/libsdl-1.2.x breaks if allowed to use <strings.h> on IRIX
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 17:27 UTC by Stuart Shelton
Modified: 2011-12-15 18:08 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 2009-04-08 17:27:26 UTC
Adding 'ac_cv_header_strings_h="no"' to the ebuild (for CHOST == "*-irix*") fixes this.

Without, the build process halts with:

 cc -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970 -I/opt/gentoo/usr/include -I./include -D_GNU_SOURCE=1 -I/opt/gentoo/usr/include -I/opt/gentoo/usr/include -DXTHREADS -D_SGI_MP_SOURCE -c ./src/video/x11/SDL_x11dga.c  -DPIC -o build/.libs/SDL_x11dga.o
cc-1047 cc: WARNING File = /opt/gentoo/usr/include/X11/XlibConf.h, Line = 33
  Macro "XTHREADS" has an incompatible redefinition.
  
  #define XTHREADS
          ^

cc-1047 cc: WARNING File = /opt/gentoo/usr/include/X11/Xlibint.h, Line = 219
  Macro "_SGI_MP_SOURCE" has an incompatible redefinition.
  
  #define _SGI_MP_SOURCE  /* turn this on to get MP safe errno */
          ^
 
 cc -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970 -I/opt/gentoo/usr/include -I./include -D_GNU_SOURCE=1 -I/opt/gentoo/usr/include -I/opt/gentoo/usr/include -DXTHREADS -D_SGI_MP_SOURCE -c ./src/video/x11/SDL_x11dga.c -o build/SDL_x11dga.o >/dev/null 2>&1
/opt/gentoo/bin/bash ./libtool --mode=compile cc -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970  -I/opt/gentoo/usr/include -I./include -D_GNU_SOURCE=1 -I/opt/gentoo/usr/include    -I/opt/gentoo/usr/include -DXTHREADS -D_SGI_MP_SOURCE -c ./src/video/x11/SDL_x11dyn.c  -o build/SDL_x11dyn.lo
 cc -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -diag_error 1035 -woff 1174,1183,1185,1552,3968,3970 -I/opt/gentoo/usr/include -I./include -D_GNU_SOURCE=1 -I/opt/gentoo/usr/include -I/opt/gentoo/usr/include -DXTHREADS -D_SGI_MP_SOURCE -c ./src/video/x11/SDL_x11dyn.c  -DPIC -o build/.libs/SDL_x11dyn.o
cc-1047 cc: WARNING File = /opt/gentoo/usr/include/X11/XlibConf.h, Line = 33
  Macro "XTHREADS" has an incompatible redefinition.
  
  #define XTHREADS
          ^

cc-1047 cc: WARNING File = /opt/gentoo/usr/include/X11/Xlibint.h, Line = 219
  Macro "_SGI_MP_SOURCE" has an incompatible redefinition.
  
  #define _SGI_MP_SOURCE  /* turn this on to get MP safe errno */
          ^

cc-1079 cc: ERROR File = /usr/include/strings.h, Line = 30
  A type specifier is expected.
  
  extern void   bzero(void *, size_t);
                ^

cc-1143 cc: ERROR File = /usr/include/strings.h, Line = 30
  Declaration is incompatible with "void *memset(void *, int, size_t)" (declared
          at line 101 of "/usr/include/internal/string_core.h").
  
  extern void   bzero(void *, size_t);
                ^

cc-3421 cc: WARNING File = /usr/include/strings.h, Line = 40
  expecting function name
  
  #pragma intrinsic (bzero)
                          ^

2 errors detected in the compilation of "./src/video/x11/SDL_x11dyn.c".
make: *** [build/SDL_x11dyn.lo] Error 1
 * ERROR: media-libs/libsdl-1.2.13-r1 failed:
 *   emake failed
 *
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>                                                                                                                                                  
 *             environment:2879: <call _eapi2_src_compile>                               
 *               ebuild.sh: 628:                emake || die "emake failed"
Comment 1 Fabian Groffen gentoo-dev 2011-12-15 18:08:57 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.