Bugzilla – Bug 1337
Python, MacOS and dynamic libraries
Last modified: 2012-01-07 09:45:38 UTC
After the Waf change, ns-3-dev fails at building when python is enabled. Here is the log of ./waf -v [1289/1317] cxxshlib: build/src/uan/bindings/ns3module.cc.7.o -> build/bindings/python/ns/uan.so i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib 11:54:21 runner ['/usr/bin/g++', '-dynamiclib', '-bundle', '-undefined', 'dynamic_lookup', 'src/uan/bindings/ns3module.cc.7.o', '-o', '/Users/pecos/Development/workspace/ns-3-allinone/ns-3-dev/build/bindings/python/ns/uan.so', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-L/opt/local/lib', '-lns3-aodv', '-lns3-dsdv', '-lns3-mesh', '-lns3-test', '-lns3-csma-layout', '-lns3-point-to-point-layout', '-lns3-netanim', '-lns3-olsr', '-lns3-csma', '-lns3-lte', '-lns3-wimax', '-lns3-spectrum', '-lns3-applications', '-lns3-virtual-net-device', '-lns3-uan', '-lns3-energy', '-lns3-flow-monitor', '-lns3-nix-vector-routing', '-lns3-visualizer', '-lns3-internet', '-lns3-bridge', '-lns3-point-to-point', '-lns3-mpi', '-lns3-wifi', '-lns3-propagation', '-lns3-mobility', '-lns3-config-store', '-lns3-tools', '-lns3-stats', '-lns3-topology-read', '-lns3-network', '-lns3-core', '-lgsl', '-lgslcblas', '-lm', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lpangocairo-1.0', '-lXext', '-lXrender', '-lXinerama', '-lXi', '-lXrandr', '-lXcursor', '-lXcomposite', '-lXdamage', '-lgdk_pixbuf-2.0', '-lpangoft2-1.0', '-lgio-2.0', '-lXfixes', '-lcairo', '-lX11', '-lpango-1.0', '-lm', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lglib-2.0', '-lintl', '-lxml2', '-lsqlite3', '-lpython2.7'] i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib Disabling python makes ns-3 happy. T.
*** This bug has been marked as a duplicate of bug 1335 ***