Hi Tiago, On 27 Ιαν 2008, at 7:41 ΜΜ, Tiago de Paula Peixoto wrote:
It just occurred to me that the gcc binary is being used to link the library, not g++! That's probably the reason of all these undefined references... In your first message, I saw you ran configure with CXX=/opt/local/bin/i386-apple-darwin8.11.1-gcc-4.2.2. This is incorrect. You needed to do something like CXX=/opt/local/bin/i386-apple-darwin8.11.1-g++-4.2.2, assuming that's what g++ is called on your system. Please try a whole build from scratch, using g++ this time, and see if you still encounter any problems.
I thought that gcc is just the front-end to the compilers underneath. Thanks for your patience so far... I did what you suggested, but I still get undefined symbols, although different ones. Strangely, these seem to be related to libbz2, which is in /opt/local/lib. Here's the output: /bin/sh ../../libtool --tag=CXX --mode=compile /opt/local/bin/i386- apple-darwin8.11.1-g++-mp-4.2 -DHAVE_CONFIG_H -I. -I../.. -I. -I.. - I../boost-workaround -DHAVE_CONFIG_H -Wall -I/opt/local/include/ python2.5 -pthread -I/opt/local/include/boost-1_34_1 -ftemplate- depth-150 -O99 -Wno-unknown-pragmas -MT read_graphviz_spirit.lo -MD -MP -MF .deps/read_graphviz_spirit.Tpo -c -o read_graphviz_spirit.lo read_graphviz_spirit.cpp /opt/local/bin/i386-apple-darwin8.11.1-g++-mp-4.2 -DHAVE_CONFIG_H - I. -I../.. -I. -I.. -I../boost-workaround -DHAVE_CONFIG_H -Wall -I/ opt/local/include/python2.5 -pthread -I/opt/local/include/ boost-1_34_1 -ftemplate-depth-150 -O99 -Wno-unknown-pragmas -MT read_graphviz_spirit.lo -MD -MP -MF .deps/read_graphviz_spirit.Tpo -c read_graphviz_spirit.cpp -fno-common -DPIC -o .libs/ read_graphviz_spirit.o mv -f .deps/read_graphviz_spirit.Tpo .deps/read_graphviz_spirit.Plo /bin/sh ../../libtool --tag=CXX --mode=link /opt/local/bin/i386- apple-darwin8.11.1-g++-mp-4.2 -Wall -I/opt/local/include/python2.5 - pthread -I/opt/local/include/boost-1_34_1 -ftemplate-depth-150 -O99 -Wno-unknown-pragmas -module -avoid-version -export-dynamic -no- undefined -L/opt/local/lib/ -L/opt/local/lib/gcc42 -o libgraph_tool.la -rpath /opt/local/lib/python2.5/site-packages/ graph_tool graph.lo graph_python_interface.lo graph_properties.lo graph_correlations.lo graph_edge_correlations.lo graph_correlations_combined.lo graph_correlations_neighbours.lo graph_assortativity.lo graph_clustering.lo graph_extended_clustering.lo graph_generation.lo graph_distance.lo graph_distance_sampled.lo graph_reciprocity.lo graph_minimum_spanning_tree.lo graph_community.lo graph_community_network.lo graph_line_graph.lo graph_betweenness.lo graph_rewiring.lo graph_layout.lo graph_io.lo graph_bind.lo graphml.lo read_graphviz_spirit.lo -L/opt/local/lib/python2.5 - lpython2.5 -L/opt/local/lib -lboost_python -lboost_iostreams -lexpat /opt/local/bin/i386-apple-darwin8.11.1-g++-mp-4.2 -o .libs/ libgraph_tool.so -bundle .libs/graph.o .libs/ graph_python_interface.o .libs/graph_properties.o .libs/ graph_correlations.o .libs/graph_edge_correlations.o .libs/ graph_correlations_combined.o .libs/ graph_correlations_neighbours.o .libs/graph_assortativity.o .libs/ graph_clustering.o .libs/graph_extended_clustering.o .libs/ graph_generation.o .libs/graph_distance.o .libs/ graph_distance_sampled.o .libs/graph_reciprocity.o .libs/ graph_minimum_spanning_tree.o .libs/graph_community.o .libs/ graph_community_network.o .libs/graph_line_graph.o .libs/ graph_betweenness.o .libs/graph_rewiring.o .libs/graph_layout.o .libs/ graph_io.o .libs/graph_bind.o .libs/graphml.o .libs/ read_graphviz_spirit.o -L/opt/local/lib/ -L/opt/local/lib/gcc42 -L/ opt/local/lib/python2.5 -lpython2.5 -L/opt/local/lib -lboost_python - lboost_iostreams /opt/local/lib/libexpat.dylib -pthread /usr/bin/ld: Undefined symbols: _crc32 _deflate _deflateEnd _deflateInit2_ _deflateReset _inflate _inflateEnd _inflateInit2_ _inflateReset _BZ2_bzCompress _BZ2_bzCompressEnd _BZ2_bzCompressInit _BZ2_bzDecompress _BZ2_bzDecompressEnd _BZ2_bzDecompressInit collect2: ld returned 1 exit status make[3]: *** [libgraph_tool.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Thanks, Spiros