[Ns-bugs] [Bug 1317] python programs not working for OS X Lion
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed Dec 21 09:30:54 PST 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1317
--- Comment #14 from Tom Henderson <tomh at tomh.org> 2011-12-21 12:30:54 EST ---
(In reply to comment #13)
> (In reply to comment #12)
> [...]
> > "/opt/local/lib" is preferred path over
> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib".
> >
> > BOOM.
> >
> > Said that, I have no clue about how to fix it, as removing macport's python is
> > kinda a harsh solution, as it's used by a lot of other extremely useful
> > macports modules.
> >
>
> Well, if in OSX the /opt/local/lib takes precedence over the command-line -L
> path, then I really do not see what can be done. I can add code to try to
> detect this problem, but other than that... *shrugs*
This explanation is consistent with the following logs.
This is a working version, before changeset 7545
09:17:33 runner ['/usr/bin/g++', 'src/core/bindings/ns3module.cc.8.o',
'src/core/bindings/module_helpers.cc.8.o', '-o',
'/Users/tomh/ns-3-allinone/ns-3-post/build/bindings/python/ns/_core.so', '-L.',
'-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
'-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib',
'-L/opt/local/lib',
'-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib',
'-lns3-visualizer', '-lns3-internet', '-lns3-bridge', '-lns3-point-to-point',
'-lns3-mpi', '-lns3-wifi', '-lns3-propagation', '-lns3-mobility',
'-lns3-network', '-lns3-core', '-lpython2.7', '-lgsl', '-lgslcblas', '-lm',
'-lpython2.7', '-dynamiclib', '-Wl,-F.', '-Wl,-F.', '-Wl,-F.', '-Wl,-F.',
'-Wl,-F.', '-Wl,-F.']
This is as of changeset 7545, which breaks it presumably due to /opt/local/lib
taking precedence:
09:10:02 runner ['/usr/bin/g++', 'src/core/bindings/ns3module.cc.8.o',
'src/core/bindings/module_helpers.cc.8.o', '-o',
'/Users/tomh/ns-3-allinone/ns-3-post/build/bindings/python/ns/_core.so', '-L.',
'-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
'-L/opt/local/lib',
'-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib',
'-lns3-visualizer', '-lns3-internet', '-lns3-bridge', '-lns3-point-to-point',
'-lns3-mpi', '-lns3-wifi', '-lns3-propagation', '-lns3-mobility',
'-lns3-network', '-lns3-core', '-lgsl', '-lgslcblas', '-lm', '-lpython2.7',
'-Wl,-F.', '-Wl,-F.', '-Wl,-F.', '-bundle', '-undefined', 'dynamic_lookup',
'-Wl,-F.']
is there some rearranging of the linkflags due to changeset 7545 that could be
tweaked to make the OS X frameworks version be picked up here?
--
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list