[bug #30285] Compile issue on Solaris9/SPARC64

2010-06-29 Thread Yavor Doganov

Follow-up Comment #2, bug #30285 (project gnustep):

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.

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?30285

___
  Message sent via/by Savannah
  http://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep


[bug #30285] Compile issue on Solaris9/SPARC64

2010-06-29 Thread Richard Frith-Macdonald

Update of bug #30285 (project gnustep):

  Status:None = Fixed  
 Open/Closed:Open = Closed 

___

Follow-up 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

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?30285

___
  Message sent via/by Savannah
  http://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep


[bug #30285] Compile issue on Solaris9/SPARC64

2010-06-28 Thread Gregory John Casamento

URL:
  http://savannah.gnu.org/bugs/?30285

 Summary: Compile issue on Solaris9/SPARC64
 Project: GNUstep
Submitted by: gcasa
Submitted on: Mon 28 Jun 2010 04:36:56 PM EDT
Category: Base/Foundation
Severity: 5 - Blocker
  Item Group: Installation
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

[r...@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
[r...@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) 
[r...@palermo Source]$ 




___

Reply to this item at:

  http://savannah.gnu.org/bugs/?30285

___
  Message sent via/by Savannah
  http://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep


[bug #30285] Compile issue on Solaris9/SPARC64

2010-06-28 Thread Riccardo mottola

Follow-up Comment #1, bug #30285 (project gnustep):

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.

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?30285

___
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep