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

Group
 
 

bug #30285: Compile issue on Solaris9/SPARC64

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Mon 28 Jun 2010 08:36:56 PM UTC
   
 
Category:  Base/Foundation Severity:  5 - Blocker
Item Group:  Installation Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-29 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code