SourceForge has been redesigned. Learn more.
Close

#1344 Bochs refuses to compile in OSX 10.9, gets lots of errors

can't_reproduce
closed
nobody
None
3
2015-02-13
2014-03-23
Brandon Sky
No

When I run configure and then make in Mac OSX 10.9, we get these errors:
carbon.cc:155:1: error: unknown type name 'CIconHandle'
CIconHandle bx_cicn[BX_MAX_PIXMAPS];
^
carbon.cc:270:3: error: use of undeclared identifier 'GetWindowPortBounds'
GetWindowPortBounds(myWindow, &box);
^
carbon.cc:271:13: error: use of undeclared identifier 'blackColor'; did you mean 'NPickColor'?
BackColor(blackColor);
^~~~~~~~~~
NPickColor
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:498:1: note:
'NPickColor' declared here
NPickColor(NColorPickerInfo * theColorInfo) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
^
carbon.cc:271:3: error: use of undeclared identifier 'BackColor'; did you mean 'NPickColor'?
BackColor(blackColor);
^~~~~~~~~
NPickColor
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:498:1: note:
'NPickColor' declared here
NPickColor(NColorPickerInfo * theColorInfo) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
^
carbon.cc:271:13: error: cannot initialize a parameter of type 'NColorPickerInfo ' with an lvalue of type 'OSErr (NColorPickerInfo )'
BackColor(blackColor);
^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:498:31: note:
passing argument to parameter 'theColorInfo' here
NPickColor(NColorPickerInfo * theColorInfo) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
^
carbon.cc:272:3: error: use of undeclared identifier 'EraseRect'
EraseRect(&box);
^
carbon.cc:311:3: error: use of undeclared identifier 'GetWindowPortBounds'
GetWindowPortBounds(myWindow, &box);
^
carbon.cc:402:10: error: use of undeclared identifier 'FindWindow'
part = FindWindow(wheresMyMouse, &whichWindow);
^
carbon.cc:408:5: error: use of undeclared identifier 'MenuSelect'
MenuSelect(wheresMyMouse);
^
carbon.cc:444:7: error: use of undeclared identifier 'CreateStandardAlert'
CreateStandardAlert(
^
carbon.cc:451:7: error: use of undeclared identifier 'RunStandardAlert'
RunStandardAlert(
^
carbon.cc:475:11: error: use of undeclared identifier 'IsWindowVisible'
if (IsWindowVisible(toolwin))
^
carbon.cc:489:11: error: use of undeclared identifier 'IsWindowVisible'
if (IsWindowVisible(toolwin) || menubarVisible)
^
carbon.cc:493:13: error: use of undeclared identifier 'IsWindowVisible'
if (IsWindowVisible(toolwin))
^
carbon.cc:500:14: error: use of undeclared identifier 'IsWindowVisible'
if (!IsWindowVisible(toolwin))
^
carbon.cc:536:3: error: use of undeclared identifier 'StopAlert'
StopAlert(200, NULL);
^
carbon.cc:544:3: error: use of undeclared identifier 'InitCursor'
InitCursor();
^
carbon.cc:554:5: error: no matching function for call to 'NewAEEventHandlerUPP'
NewAEEventHandlerUPP(QuitAppleEventHandler), 0, false);
^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h:2725:65: note:
candidate function not viable: no known conversion from 'OSErr (const AppleEvent , AppleEvent , SInt32)' to 'AEEventHandlerProcPtr' (aka 'OSErr ()(const AppleEvent , AppleEvent *, SRefCon)') for 1st
argument
inline AEEventHandlerUPP NewAEEventHandlerUPP(AEEventHandlerProcPtr userRoutine) { return userRoutine; }
^
carbon.cc:556:5: warning: 'ExitToShell' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
ExitToShell();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:725:6: note:
'ExitToShell' declared here
void ExitToShell( void ) attribute (( noreturn )) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_9;
^
carbon.cc:576:5: error: use of undeclared identifier 'GetGWorld'
GetGWorld(&savePort, &saveDevice);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make[1]: [carbon.o] Error 1
make:
[gui/libgui.a] Error 2

Discussion

  • Brandon Sky

    Brandon Sky - 2014-03-23

    I also tried .conf.macosx (which OSX unfairly hides due to the dot at the beginning), but we get this:
    logio.cc:524:3: error: use of undeclared identifier 'InitCursor'
    InitCursor();
    ^
    logio.cc:539:3: error: use of undeclared identifier 'CreateStandardAlert'
    CreateStandardAlert(
    ^
    logio.cc:545:3: error: use of undeclared identifier 'RunStandardAlert'
    RunStandardAlert(alertDialog, NULL, &index);
    ^
    Why is this so HARD??? >:(

     
  • David Schmidt

    David Schmidt - 2014-07-07

    I get the same results compiling 2.6.6 on a fresh install of OSX 10.9... and the hint is here:
    "carbon.cc:556:5: warning: 'ExitToShell' is deprecated: first deprecated in OS X 10.9"
    So Carbon serviced don't exist any more with the current OSX tooling. It needs to be refactored out of the OSX build.

     
  • Volker Ruppert

    Volker Ruppert - 2014-07-07

    Unfortunately there are only two active Bochs developers and nobody has access to OSX. Currently the only way to get Bochs working on OSX is the usage of SDL. In Bochs 2.6.6 there is only support for the legacy version SDL 1.2.x, but in SVN there is now experimental support for SDL2.

     
  • Peter

    Peter - 2014-11-02

    even i "--with-sdl", it fails to compile in mac 10.10

     
  • xChris

    xChris - 2014-11-04

    @Peter, its mainly a windoze and linux app NOT for OSX.

     
  • Peter

    Peter - 2014-11-15

    ok, chris

     
  • Volker Ruppert

    Volker Ruppert - 2014-12-21

    This bug report has been replaced by SF bug tracker item #1360.

     
  • Volker Ruppert

    Volker Ruppert - 2014-12-21
    • status: open --> closed
     

Log in to post a comment.