Re: [Fxruby-users] My fox build segfaults on Solaris 9 gcc.
Status: Inactive
Brought to you by:
lyle
From: jeroen <je...@fo...> - 2004-07-07 03:47:41
|
On Tuesday 06 July 2004 10:26 am, Hugh Sasse Staff Elec Eng wrote: > The last thing I get on building the Fox library is > > g++ -shared FX4Splitter.lo FXAccelTable.lo FXApp.lo > FXArrowButton.lo FXBMPIcon.lo FXBMPImage.lo FXBitmap.lo > FXBitmapFrame.lo FXBitmapView.lo FXButton.lo FXBZStream.lo > FXCURCursor.lo FXCanvas.lo FXCharset.lo FXCheckButton.lo > FXColorBar.lo FXColorDialog.lo FXColorNames.lo FXColorSelector.lo > FXColorWell.lo FXColorWheel.lo FXComboBox.lo FXComposite.lo > FXCursor.lo FXDC.lo FXDCPrint.lo FXDCWindow.lo FXDLL.lo > FXDataTarget.lo FXDebugTarget.lo FXDelegator.lo FXDial.lo > FXDialogBox.lo FXDict.lo FXDirBox.lo FXDirDialog.lo FXDirList.lo > FXDirSelector.lo FXDocument.lo FXDragCorner.lo FXDrawable.lo > FXDriveBox.lo FXException.lo FXFile.lo FXFileDialog.lo FXFileDict.lo > FXFileList.lo FXFileSelector.lo FXFileStream.lo FXFoldingList.lo > FXFont.lo FXFontDialog.lo FXFontSelector.lo FXFrame.lo > FXGIFCursor.lo FXGIFIcon.lo FXGIFImage.lo FXGLCanvas.lo FXGLCone.lo > FXGLContext.lo FXGLCube.lo FXGLCylinder.lo FXGLObject.lo > FXGLShape.lo FXGLSphere.lo FXGLTriangleMesh.lo FXGLViewer.lo > FXGLVisual.lo FXGradientBar.lo FXGroupBox.lo FXGZStream.lo FXHash.lo > FXHeader.lo FXHorizontalFrame.lo FXICOIcon.lo FXICOImage.lo > FXIcon.lo FXIconList.lo FXId.lo FXImage.lo FXImageFrame.lo > FXImageView.lo FXInputDialog.lo FXJPGIcon.lo FXJPGImage.lo > FXLabel.lo FXList.lo FXListBox.lo FXMDIButton.lo FXMDIChild.lo > FXMDIClient.lo FXMainWindow.lo FXMat3d.lo FXMat4d.lo FXMat3f.lo > FXMat4f.lo FXMatrix.lo FXMemoryStream.lo FXMenuBar.lo > FXMenuButton.lo FXMenuCaption.lo FXMenuCascade.lo FXMenuCheck.lo > FXMenuRadio.lo FXMenuCommand.lo FXMenuPane.lo FXMenuSeparator.lo > FXMenuTitle.lo FXMessageBox.lo FXObject.lo FXObjectList.lo > FXOptionMenu.lo FXPCXIcon.lo FXPCXImage.lo FXPNGIcon.lo > FXPNGImage.lo FXPPMIcon.lo FXPPMImage.lo FXPacker.lo FXPicker.lo > FXPopup.lo FXPoint.lo FXPrintDialog.lo FXProgressBar.lo > FXProgressDialog.lo FXQuatd.lo FXQuatf.lo FXRGBIcon.lo FXRGBImage.lo > FXRadioButton.lo FXRangef.lo FXRanged.lo FXRealSlider.lo > FXRealSpinner.lo FXRecentFiles.lo FXRectangle.lo FXRegion.lo > FXRegistry.lo FXReplaceDialog.lo FXRex.lo FXRootWindow.lo FXRuler.lo > FXScrollArea.lo FXScrollBar.lo FXScrollPane.lo FXScrollWindow.lo > FXSearchDialog.lo FXSeparator.lo FXSettings.lo FXShell.lo > FXShutter.lo FXSize.lo FXSlider.lo FXSpinner.lo FXSpheref.lo > FXSphered.lo FXSplitter.lo FXSpring.lo FXStatusBar.lo > FXStatusLine.lo FXStream.lo FXString.lo FXStringDict.lo > FXSwitcher.lo FXTGAIcon.lo FXTGAImage.lo FXTIFIcon.lo FXTIFImage.lo > FXTabBar.lo FXTabBook.lo FXTabItem.lo FXTable.lo FXText.lo > FXTextCodec.lo FXTextField.lo FXThread.lo FXToggleButton.lo > FXToolBar.lo FXToolBarGrip.lo FXToolBarShell.lo FXToolBarTab.lo > FXToolTip.lo FXTopWindow.lo FXTreeList.lo FXTreeListBox.lo > FXTriStateButton.lo FXUndoList.lo FXURL.lo FXUTF8Codec.lo > FXUTF16Codec.lo FXUTF32Codec.lo FXVec2d.lo FXVec2f.lo FXVec3d.lo > FXVec3f.lo FXVec4d.lo FXVec4f.lo FXVerticalFrame.lo FXVisual.lo > FXWindow.lo FXWizard.lo FXWString.lo FXXBMIcon.lo FXXBMImage.lo > FXXPMIcon.lo FXXPMImage.lo fxbmpio.lo fxfilematch.lo fxgifio.lo > fxicoio.lo fxjpegio.lo fxparsegeometry.lo fxpcxio.lo fxpngio.lo > fxppmio.lo fxpriv.lo fxpsio.lo fxfsquantize.lo fxezquantize.lo > fxwuquantize.lo fxrgbio.lo fxtargaio.lo fxtifio.lo fxutils.lo > fxwinkbd.lo fxxbmio.lo fxxpmio.lo icons.lo vsscanf.lo -Wl,--rpath > -Wl,/usr/openwin/lib -L/usr/openwin/lib -lXext -lX11 -lsocket -lnsl > -ldl -lpthread -ljpeg -lpng -lz -lbz2 -lm -lGL -lGLU -lc > -Wl,-soname -Wl,libFOX-1.2.so.0 -o .libs/libFOX-1.2.so.0.0.6 > collect2: ld terminated with signal 11 [Segmentation Fault], core > dumped > gmake[1]: *** [libFOX-1.2.la] Error 1 > gmake[1]: Leaving directory `/export/home/Scratch/hgs/fox-1.2.6/src' > gmake: *** [all-recursive] Error 1 > > The only thing that seems obvious to me is to ensure that the LD > used is gnu ld and not the Sun one. Given this is invoked by g++, > how might I be certain about this? It is not defined in the (top) > Makefile. Anything else I should look out for? I keep up with FOX compiling on SUN; it should compile out of the box using SUN's own compiler. If you have a problem with compiling using GCC, my first suggestion is to make sure GCC is properly installed [its a complex beast!]. Make sure you have a recent GCC, and that your paths are set properly [in particular, GCC's installation typically includes "repaired" header files which may be necessary]. On some machines you need to use native linker, and some GNU ld; I don't know what the recommendation is for the SPARC target. SUN has a collection of GNU software on their site, I don't know if this includes GCC but if it does then that might be helpful, assuming the SUN developers are more on top of this situation that we are. Regards, - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 23:40 07/ 6/2004 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |