Opened 9 years ago

Last modified 5 years ago

#48558 assigned defect

Unable to install inventor in MacOS 10.8.5

Reported by: david@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: Blokkendoos (Johan)
Port: inventor

Description

I have attached a file showing the output of "sudo port -d install inventor", along with the referenced log file. I am trying to install inventor on a MacBook Pro running MacOS 10.8.5. This is my first macport ticket, so please let me know what other information I should be submitting.

Attachments (3)

port_inventor_errors.txt (60.8 KB) - added by david@… 9 years ago.
Output from 'sudo port -d install inventor'
port_inventor_errors.2.txt (56.4 KB) - added by david@… 9 years ago.
inventor_main.log (59.6 KB) - added by david@… 9 years ago.
main.log file from /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_inventor/inventor

Download all attachments as: .zip

Change History (14)

Changed 9 years ago by david@…

Attachment: port_inventor_errors.txt added

Output from 'sudo port -d install inventor'

comment:1 Changed 9 years ago by david@…

I looked into the problem, and I see the error that was produced by inconsistencies between inventor and coin. I have uninstalled inventor and coin. Now I get a different error when trying to cleanly install inventor. I am attaching two new port_inventor_errors.txt and inventor_main.log files. Sorry about the confusion. This is my first time having problems with macports.

Changed 9 years ago by david@…

Attachment: port_inventor_errors.2.txt added

Changed 9 years ago by david@…

Attachment: inventor_main.log added

main.log file from /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_inventor/inventor

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to css@…
Port: inventor added

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers inventor), if any.

comment:3 Changed 9 years ago by cssdev

Status: newassigned

Probably caused by this:

:info:build ppp.c++:630:1: error: C++ requires a type specifier for all declarations
:info:build main(int, char *argv[])
:info:build ^~~~
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [ppp.o] Error 1

This looks like an error resulting from code from much more lenient days of C++. Should be an easy fix, I'll take a look.

comment:4 in reply to:  3 ; Changed 9 years ago by cssdev

Replying to css@…:

Should be an easy fix, I'll take a look.

Ugh ... it's pervasive:

./apps/converters/ivdowngrade/main.c++:main(int argc, char *argv[])
./apps/demos/drop/drop.c++:main( int, char **argv )
./apps/demos/gview/gview.c++:main(int argc, char **argv)
./apps/demos/maze/maze.c++:main(int argc, char *argv[])
./apps/demos/noodle/noodle.c++:main(int argc, char **argv)
./apps/demos/qmorf/qmorf.c++:main(int argc, char **argv)
./apps/demos/qmorf/quadCube.c++:main(int argc, char **argv)
./apps/demos/qmorf/quadSheet.c++:main(int argc, char **argv)
./apps/demos/qmorf/quadSphere.c++:main(int argc, char **argv)
./apps/demos/revo/revo.c++:main(int, char **argv)
./apps/demos/SceneViewer/SceneViewer.c++:main(int argc, char **argv)
./apps/demos/textomatic/textomatic.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/02.1.HelloCone.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/02.2.EngineSpin.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/02.3.Trackball.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/02.4.Examiner.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/03.1.Molecule.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/03.2.Robot.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/03.3.Naming.c++:main(int , char **)
./apps/examples/Mentor/CXX/04.1.Cameras.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/04.2.Lights.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/05.1.FaceSet.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/05.2.IndexedFaceSet.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/05.3.TriangleStripSet.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/05.4.QuadMesh.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/05.5.Binding.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/05.6.TransformOrdering.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/06.1.Text.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/06.2.Simple3DText.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/06.3.Complex3DText.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/07.1.BasicTexture.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/07.2.TextureCoordinates.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/07.3.TextureFunction.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/08.1.BSCurve.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/08.2.UniCurve.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/08.3.BezSurf.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/08.4.TrimSurf.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/09.1.Print.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/09.2.Texture.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/09.3.Search.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/09.4.PickAction.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/09.5.GenSph.c++:main(int, char **)
./apps/examples/Mentor/CXX/10.1.addEventCB.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/10.2.setEventCB.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/10.3and4.MotifList.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/10.5.SelectionCB.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/10.6.PickFilterTopLevel.c++:main(int argc, char *argv[])
./apps/examples/Mentor/CXX/10.7.PickFilterManip.c++:main(int , char *argv[])
./apps/examples/Mentor/CXX/10.8.PickFilterNodeKit.c++:main(int , char *argv[])
./apps/examples/Mentor/CXX/11.1.ReadFile.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/11.2.ReadString.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/12.1.FieldSensor.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/12.2.NodeSensor.c++:main(int , char **)
./apps/examples/Mentor/CXX/12.3.AlarmSensor.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/12.4.TimerSensor.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/13.1.GlobalFlds.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.2.ElapsedTime.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.3.TimeCounter.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.4.Gate.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.5.Boolean.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.6.Calculator.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/13.7.Rotor.c++:main(int argc, char **argv)
./apps/examples/Mentor/CXX/13.8.Blinker.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/14.1.FrolickingWords.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/14.2.Editors.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/14.3.Balance.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/15.1.ConeRadius.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/15.2.SliderBox.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/15.3.AttachManip.c++:main(int, char **argv)
./apps/examples/Mentor/CXX/15.4.Customize.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/16.1.Overlay.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/16.2.Callback.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/16.3.AttachEditor.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/16.4.OneWindow.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/16.5.Examiner.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/17.1.ColorIndex.c++:main(int , char **argv)
./apps/examples/Mentor/CXX/17.2.GLCallback.c++:main(int, char **)
./apps/examples/Mentor/CXX/17.3.GLFloor.c++:main(int, char **)
./apps/examples/Toolmaker/02.Nodes/newNodes.c++:main(int, char **argv)
./apps/examples/Toolmaker/04.Actions/printVolume.c++:main()
./apps/examples/Toolmaker/07.Nodekits/jumpingJackKitTest.c++:main(int, char **argv)
./apps/examples/Toolmaker/07.Nodekits/pyramidKitTest.c++:main(int, char **argv)
./apps/examples/Toolmaker/08.Manips/newManips.c++:main(int, char **argv)
./apps/examples/Toolmaker/09.Highlights/overlayTest.c++:main(int , char *argv[])
./apps/examples/Toolmaker/09.Highlights/selectionTest.c++:main(int , char *argv[])
./apps/examples/Toolmaker/10.Components/tumble.c++:main(int argc, char *argv[])
./apps/examples/Toolmaker/11.Events/eventTest.c++:main(int , char *argv[])
./apps/samples/4view/4view.c++:main(int argc, char **argv)
./apps/samples/clock/ivclock.c++:main(int argc, char **argv)
./apps/samples/ivNodeKitStructure/ivNodeKitStructure.c++:main(int argc, char **argv)
./apps/samples/ivToInclude/ivToIncludeFile.c++:main(int argc, char **argv)
./apps/samples/ivToInclude/testResults.c++:main( int argc, char **argv )
./apps/samples/lod/details.c++:main(int argc, char *argv[])
./apps/samples/manip/constrainManip.c++:main(int argc, char **argv)
./apps/samples/motif/menu.c++:main(unsigned int /*argc*/, char *argv[])
./apps/samples/spaceball/spaceball.c++:main(unsigned int, char *argv[])
./apps/samples/spaceball/spballViewer.c++:main(unsigned int argc, char *argv[])
./apps/samples/twoDisplays/example.c++:main(int argc, char *argv[])
./apps/samples/vortex/vortex.c++:main(int argc, char **argv)
./apps/samples/widgets/componentTest.c++:main(unsigned int argc, char *argv[])
./apps/tools/ivAddVP/ivAddVP.c++:main(int argc, char **argv)
./apps/tools/ivcat/ivcat.c++:main(int argc, char **argv)
./apps/tools/ivfix/ivfix.c++:main(int argc, char **argv)
./apps/tools/ivinfo/ivinfo.c++:main(int argc, char *argv[])
./apps/tools/ivnorm/ivnorm.c++:main(int argc, char **argv)
./apps/tools/ivperf/ivperf.c++:main(int argc, char **argv)
./apps/tools/ivview/ivview.c++:main(int argc, char **argv)
./doc/man/ivman/Main.c++:main(int argc, char *argv[])
./lib/database/src/so/engines/SoCalcParse.c++:main()

Maybe I could do something as simple as reinplace "s|^main|int main|"? It's messy, but I have it almost working. There seems to be a problem with the build.env not passing the DYLD_LIBRARY_PATH variable. That's needed by the build process so some of the tools can use the dylib that's just been built. I thought this would take care of it:

build.env	DYLD_LIBRARY_PATH=${worksrcpath}/lib IVROOT=${destroot}
destroot.env	${build.env}

But apparently not:

(cd .. && ../../../../doc/man/ivman/ivman `../../../../doc/man/ivman/makeManDirs SbSphere`) > SbSphere.3iv
dyld: Library not loaded: /opt/local/lib/libInventor.dylib
  Referenced from: /Users/css/.macports/opt/local/var/macports/build/_Users_Shared_macports_dports_devel_inventor/inventor/work/inventor/doc/man/man3/ivm/../../../../doc/man/ivman/ivman
  Reason: image not found

comment:5 in reply to:  4 Changed 9 years ago by cssdev

Ugh, new OS security measures getting in the way ... see ticket:49418#comment:3:

I think the problem is that as of OS X 10.11 El Capitan, DYLD_* environment variables are not passed to subshells; this is a security measure. I have not examined vtk5's build system closely to see if a subshell is being used, but I assume that must be what's happening. We would then have to see if the subshell can be avoided somehow, or if the DYLD_LIBRARY_PATH environment variable can be set closer to the place where it's actually needed.

Seems to be exactly what's happening here.

comment:6 Changed 9 years ago by cssdev

I have everything compiled! Now I have to figure out getting X11 in place on El Capitan to test that Inventor actually works.

comment:7 Changed 9 years ago by cssdev

As of r144718 I can build and run inventor! Can you confirm this works for you on Mountain Lion?

comment:8 Changed 9 years ago by cssdev

It looks like the automated builtbot builds failed due to openmotif needing the flat namespace variant. See #49379.

comment:9 Changed 8 years ago by belinda.marchand@…

I'm confused. I can't really see what the resolution is here. I've been having the same problem since the upgrade to El Capitan last year. A clean re-install of macports did not fix the problem so I assume whatever fixes addressed this above have not been pushed up? So, what's the local way of fixing this?

comment:10 Changed 7 years ago by Blokkendoos (Johan)

Cc: Blokkendoos added

comment:11 Changed 5 years ago by mf2k (Frank Schima)

Owner: cssdev deleted

See #50332

Note: See TracTickets for help on using tickets.