I am trying to build/install polymake 2.12 from source under ubuntu 12.04 using gcc/g++ 4.8.1. I have (successfully) installed all packages/dependencies according to http://www.polymake.org/doku.php/howto/install. I run "./configure" with no problems, but when I try to run "make", apart from some warnings regarding typedefs (error_if_unimplemented) locally defined but not used, I get the following error from g++:
Code: Select all
g++ -shared -O2 -g -L/usr/local/lib -fstack-protector -o ../../lib/graph.so altshuler_det.o bipartite_signature.o bounded_embedder.o complete_bipartite.o complete.o connectivity.o diameter.o edge_lengths.o f2_vector.o graph_compare.o greedy_coloring.o HasseDiagram.o HasseDiagram_tools.o hd_embedder.o petersen.o se_interactive.o spring_embedder.o SpringEmbedder.o triangle_free.o perl/auto-automorphisms.o perl/auto-connected_components.o perl/auto-dim.o perl/auto-dual_faces.o perl/auto-find_node_permutation.o perl/auto-find_row_col_permutation.o perl/auto-is_connected.o perl/auto-isomorphic.o perl/auto-max_cliques.o perl/auto-nodes_of_dim.o perl/auto-top_node.o ../../external/nauty/libnauty.a -lmpfr -lgmp
/usr/bin/ld: ../../external/nauty/libnauty.a(naugraph.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
../../external/nauty/libnauty.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [../../lib/graph.so] Error 1
make[1]: Leaving directory `/home/dias/Downloads/polymake-2.12/build.x86_64/apps/graph'
make: *** [compile] Error 2
Thanks a lot! Gustavo