Opened 19 years ago

Closed 19 years ago

#4775 closed defect (fixed)

BUG: inventor 2.1.5-10 fails to build on Tiger

Reported by: cssdev@… Owned by: cssdev@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

The inventor source code fails to build on Mac OS X Tiger with the following error:

/usr/bin/g++ -DIRIX_6 -DLIBRARYBUILD -I/usr/X11R6/include -I/opt/local/include -I. - I../../../../../lib/database/include -I../../../../../lib/interaction/include -I../../../../../lib/nodekits/ include -I../../../../../libSoXt/include -I../../../../../libFL/freetype -Inurbs/head -dynamic -fno- common -DIVPREFIX=\"/opt/local\" -g -DDEBUG -c SoText2.c++ SoText2.c++: In member function ‘SbBool SoBitmapFontCache::convertToUCS(uint32_t, const SoMFString&)’: SoText2.c++:781: error: invalid conversion from ‘char’ to ‘const char’ SoText2.c++:781: error: initializing argument 2 of ‘size_t libiconv(void*, const char, size_t*, char, size_t*)’ make[5]: * [SoText2.o] Error 1 rm SoCylinder.c++ SoSphere.c++ SoIndexedTriangleStripSet.c++ SoFaceSet.c++ SoIndexedFaceSet.c+ + SoCone.c++ SoIndexedLineSet.c++ SoLineSet.c++ SoPointSet.c++ SoQuadMesh.c++ SoCube.c++ make[4]: * [all] Error 1 make[3]: * [all] Error 1 make[2]: * [all] Error 1 make[1]: * [libInventor.a] Error 1 make: * [all] Error 1

A similar error occurred in SoText3.c++. I was able to work around both errors by adding const_cast calls to the offending lines of source code, but then I encountered another error:

/usr/bin/libtool -L/opt/local/var/db/dports/build/ file._Volumes_homepb_Users_Shared_darwinports_dports_devel_inventor/work/destrootopt/local/ lib/InventorDebug -L../libimage -L../libFL/freetype -dynamic -all_load -L/usr/X11R6/lib -L/opt/ local/lib libInventor.a -ljpeg -limage -lFL -lfreetype -lX11 -lm -lGLU -lGL -lXm -lXt -lX11 -lGLU -lGL -liconv -ldl -lmx -lcc_dynamic -lstdc++ -o libInventor.dylib ld: for architecture ppc ld: warning -L: directory name (/opt/local/var/db/dports/build/ file._Volumes_homepb_Users_Shared_darwinports_dports_devel_inventor/work/destrootopt/local/ lib/InventorDebug) does not exist ld: warning prebinding disabled because dependent library: /usr/X11R6/lib/libXm.4.dylib is not prebound ld: warning multiple definitions of symbol _glPointParameteri /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glPointParameteri /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteri ld: warning multiple definitions of symbol _glPointParameteriv /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glPointParameteriv /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteriv ld: Undefined symbols: _fprintf$LDBLStub _sprintf$LDBLStub _printf$LDBLStub _vsprintf$LDBLStub _fscanf$LDBLStub _sscanf$LDBLStub /usr/bin/libtool: internal link edit command failed make[1]: * [libInventor.dylib] Error 1 make: * [all] Error 1

Apparently, the SystemStub library must be included on the link line. I have to figure out how best to do that within the confines of inventor's build system while retaining compatibility with older versions of Mac OS X. Maybe this would be best solved by a darwin 8 variant.

Attachments (3)

inventor-Tiger-fixes.tar.gz (2.9 KB) - added by cssdev@… 19 years ago.
Portfile and patches to compile on Tiger
inventor-Tiger-fixes.tar.2.gz (20.0 KB) - added by cssdev@… 19 years ago.
Updated patches
all-iv-fixes.tar.gz (3.6 KB) - added by cssdev@… 19 years ago.
Contains all fixes

Download all attachments as: .zip

Change History (8)

comment:1 Changed 19 years ago by cssdev@…

blocked: 4733
Status: newassigned

Since I do not have a Panther system on which to test, the inventor port needs to build and run on Tiger before I can finish checking the submitted update.

Changed 19 years ago by cssdev@…

Attachment: inventor-Tiger-fixes.tar.gz added

Portfile and patches to compile on Tiger

Changed 19 years ago by cssdev@…

Updated patches

comment:2 Changed 19 years ago by cssdev@…

attachments.isobsolete: 01

comment:3 Changed 19 years ago by cssdev@…

blocked: 4826

comment:4 Changed 19 years ago by cssdev@…

The patch to SoV1NkCatalog.c++ just adds the stdlib header. Is this required for a non-Mac OS X fix?

Changed 19 years ago by cssdev@…

Attachment: all-iv-fixes.tar.gz added

Contains all fixes

comment:5 Changed 19 years ago by toby@…

Resolution: fixed
Status: assignedclosed

Committed!

Note: See TracTickets for help on using tickets.