bugGNUstep - Bugs: bug #36721, Error when building with ObjC++


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

bug #36721: Error when building with ObjC++

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Sun Jun 24 23:57:26 2012  
Category: MakefilesSeverity: 5 - Blocker
Item Group: BugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

(Jump to the original submission Jump to the original submission)

Wed May 6 13:45:29 2015, comment #6:

You said you would come up with a concrete test. That's what I asked, "small test not depending on".

Riccardo Mottola <rmottola>
Project Member
Wed May 6 11:46:21 2015, comment #5:

No, building Berkelium is pretty much pointless. What needs to happen here is that I need to come up with a minimal test case to replicate the issue. This could also be an issue specific to Berkelium and, as such, we don't need to worry about it anymore since Berkelium has been deprecated in favor of CEF.

Gregory John Casamento <gcasa>
Project Administrator
Tue May 5 20:25:30 2015, comment #4:

Were you able to cobble together a small test not depending on Berkelium?

Riccardo Mottola <rmottola>
Project Member
Mon Jan 12 04:06:59 2015, comment #3:

Work in berkelium has ceased as the library isn't supported anymore. I have however not seen this since so I believe it's not happening anymore. I will come up with a concrete test to verify.

Gregory John Casamento <gcasa>
Project Administrator
Fri Jan 9 15:13:09 2015, comment #2:

Gregory, does this problem still happen? Even if you don't work anymore on Berkelium.

Riccardo Mottola <rmottola>
Project Member
Thu Dec 26 14:47:28 2013, comment #1:

I don't know why this happend and whether it is still the case. in NSObjCRuntime.h we have this settings (actually twice as they are already in GSConfig.h):

#ifdef __cplusplus

This should ensure that limits get defined when stdint.h is included, even for C++.

Could you please check the file GSConfig.h? This gets generated by the configure script and should be in the directory Source/GNUstepBase. In my case I can see an include for "inttypes.h" which includes "stdint.h". There shoul dbe code here to redefine INTPTR_MAX if it is missing or buggy on your system.

Fred Kiefer <FredKiefer>
Project Member
Sun Jun 24 23:57:26 2012, original submission:

The Berkelium.mm file has only the #include for Foundation.h and a skeletal definition for the class. I am getting the following error which doesn't happen when I compile the very same class as ObjC:

g++ Berkelium.mm -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fgnu-runtime -fconstant-string-class=NSConstantString -I./derived_src -I. -I/home/heron/GNUstep/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers \
-o obj/Berkelium.obj/Berkelium.mm.o
In file included from /usr/GNUstep/System/Library/Headers/Foundation/NSObject.h:30,
from /usr/GNUstep/System/Library/Headers/Foundation/FoundationErrors.h:29,
from /usr/GNUstep/System/Library/Headers/Foundation/Foundation.h:33,
from Berkelium.h:28,
from Berkelium.mm:25:
/usr/GNUstep/System/Library/Headers/Foundation/NSObjCRuntime.h:154: error: ‘INTPTR_MAX’ was not declared in this scope
make[2]: *** [obj/Berkelium.obj/Berkelium.mm.o] Error 1
make[1]: *** [internal-framework-run-compile-submake] Error 2
make: *** [Berkelium.all.framework.variables] Error 2

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 rmottola (Posted a comment)
  • -unavailable- added by FredKiefer (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):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1