bugGNUstep - Bugs: bug #30285, Compile issue on Solaris9/SPARC64

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30285: Compile issue on Solaris9/SPARC64

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Mon 28 Jun 2010 08:36:56 PM UTC  
 
Category: Base/FoundationSeverity: 5 - Blocker
Item Group: InstallationStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 29 Jun 2010 07:09:21 AM UTC, comment #3:

This appears to be due to a bug in inttypes.h on older Solaris (I don't have sol9, but I'm looking at a sol8 system) ... it includes sys/inttypes.h, which includes sys/int_limits.h, which defines INTPTR_MAX as an empty string!

I added a workaround to NSKeyedUnarchiver.m

Richard Frith-Macdonald <CaS>
Project Member
Tue 29 Jun 2010 06:39:16 AM UTC, comment #2:

The Autoconf manual (node `Header Portability') says:

`inttypes.h' vs. `stdint.h'
The C99 standard says that `inttypes.h' includes `stdint.h', so
there's no need to include `stdint.h' separately in a standard
environment. Some implementations have `inttypes.h' but not
`stdint.h' (e.g., Solaris 7), but we don't know of any
implementation that has `stdint.h' but not `inttypes.h'.

So a simple solution seems to be to include <inttypes.h> only.

Yavor Doganov <yavor>
Mon 28 Jun 2010 11:11:37 PM UTC, comment #1:

I can confirm this on solaris 7 / sparc v9 (32 bit mode).

I tried importing stddef.h instead if stdint.h in runtime.h but it did not help.

Riccardo Mottola <rmottola>
Project Member
Mon 28 Jun 2010 08:36:56 PM UTC, original submission:

[root@palermo Source]$ make
This is gnustep-make 2.4.0. Type 'make print-gnustep-make-help' for help.
Making all in ObjectiveC2 ...
Making all for subproject ObjectiveC2...
make[3]: Nothing to be done for `internal-subproject-compile'.
Making all in Additions ...
Making all for subproject Additions...
make[3]: Nothing to be done for `internal-subproject-compile'.
Making all in subprojects of library libgnustep-base...
Making all for subproject ObjectiveC2...
make[4]: Nothing to be done for `internal-subproject-compile'.
Making all for subproject Additions...
make[4]: Nothing to be done for `internal-subproject-compile'.
Making all for subproject unix...
make[4]: Nothing to be done for `internal-subproject-compile'.
Making all for library libgnustep-base...
Compiling file NSKeyedUnarchiver.m ...
In file included from ../Headers/Additions/GNUstepBase/GSObjCRuntime.h:47,
from ../Headers/Foundation/NSObjCRuntime.h:81,
from ../Headers/Foundation/NSZone.h:57,
from common.h:28,
from NSKeyedUnarchiver.m:26:
././ObjectiveC2/runtime.h:1:20: warning: stdint.h: No such file or directory
NSKeyedUnarchiver.m:512:17: error: operator '<' has no left operand
NSKeyedUnarchiver.m: In function '-[NSKeyedUnarchiver decodeValueOfObjCType:at:]':
NSKeyedUnarchiver.m:728: warning: array subscript has type 'char'
NSKeyedUnarchiver.m: At top level:
NSKeyedUnarchiver.m:896: warning: cast increases required alignment of target type
NSKeyedUnarchiver.m:896: warning: cast increases required alignment of target type
NSKeyedUnarchiver.m:896: warning: cast increases required alignment of target type
NSKeyedUnarchiver.m:896: warning: cast increases required alignment of target type
make[3]: *** [obj/libgnustep-base.obj/NSKeyedUnarchiver.m.o] Error 1
make[2]: *** [internal-library-all_] Error 2
make[1]: *** [libgnustep-base.all.library.variables] Error 2
make: *** [internal-all] Error 2
[root@palermo Source]$ gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: ../gcc-4.3.4/configure --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-cpu=v7 --enable-threads=posix --enable-nls --prefix=/opt/csw/gcc4 --with-local-prefix=/opt/csw --enable-shared --enable-multilib --with-included-gettext --with-libiconv-prefix=/opt/csw --with-system-zlib --with-gmp=/opt/csw --with-mpfr=/opt/csw --enable-languages=c,c++,fortran,java,objc,ada --enable-bootstrap
Thread model: posix
gcc version 4.3.4 (GCC)
[root@palermo Source]$

Gregory John Casamento <gcasa>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by yavor (Posted a comment)
  • -unavailable- added by rmottola (Posted a comment)
  • -unavailable- added by gcasa (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Jun 2010 07:09:21 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1