Closed gregglind closed 6 years ago
As per http://sourceforge.net/p/pysparse/patches/4/, changed #include <malloc.h>
to #include <stdlib.h>
. New errors are about duplicate symbols.
running build
running build_py
running build_ext
skipping 'planarity/planarity.c' Cython extension (up-to-date)
building 'planarity.planarity' extension
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/planarity.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/planarity.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphColorVertices.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphColorVertices.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphColorVertices_Extensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphColorVertices_Extensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphDFSUtils.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDFSUtils.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphDrawPlanar.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDrawPlanar.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphDrawPlanar_Extensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDrawPlanar_Extensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphEmbed.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphEmbed.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphExtensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphExtensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphIO.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphIO.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphIsolator.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphIsolator.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK23Search.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK23Search.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK23Search_Extensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK23Search_Extensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK33Search.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK33Search.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK33Search_Extensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK33Search_Extensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK4Search.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK4Search.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphK4Search_Extensions.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK4Search_Extensions.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphNonplanar.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphNonplanar.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphOuterplanarObstruction.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphOuterplanarObstruction.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphTests.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphTests.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/graphUtils.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphUtils.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/listcoll.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/listcoll.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/planarityRandomGraphs.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/planaritySpecificGraph.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/planarityUtils.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -O3 -w -pipe -march=core2 -msse4 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iplanarity/src/ -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c planarity/src/stack.c -o build/temp.macosx-10.4-x86_64-2.7/planarity/src/stack.o
/usr/bin/llvm-gcc -bundle -undefined dynamic_lookup -L/usr/local/Cellar/readline/6.2.2/lib build/temp.macosx-10.4-x86_64-2.7/planarity/planarity.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphColorVertices.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphColorVertices_Extensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDFSUtils.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDrawPlanar.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphDrawPlanar_Extensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphEmbed.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphExtensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphIO.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphIsolator.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK23Search.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK23Search_Extensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK33Search.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK33Search_Extensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK4Search.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphK4Search_Extensions.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphNonplanar.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphOuterplanarObstruction.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphTests.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/graphUtils.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/listcoll.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o build/temp.macosx-10.4-x86_64-2.7/planarity/src/stack.o -o build/lib.macosx-10.4-x86_64-2.7/planarity/planarity.so
duplicate symbol _Line in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _Mode in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _OrigOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _EmbeddableOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _ObstructedOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _AdjListsForEmbeddingsOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _quietMode in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planaritySpecificGraph.o
duplicate symbol _quietMode in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _Line in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _Mode in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _OrigOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _EmbeddableOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _ObstructedOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
duplicate symbol _AdjListsForEmbeddingsOut in:
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityRandomGraphs.o
build/temp.macosx-10.4-x86_64-2.7/planarity/src/planarityUtils.o
ld: 14 duplicate symbols for architecture x86_64
collect2: ld returned 1 exit status
error: command '/usr/bin/llvm-gcc' failed with exit status 1
This may be mac specific, see: http://samwho.co.uk/blog/2013/12/08/duplicate-symbol-what/
Thanks for your input. This package wraps Boyer's C planarity code. It contains an older version of what is available at https://code.google.com/p/planarity/
Perhaps this issue you are finding is fixed in a newer version? Could you try to build the planarity code from there? If it works we can update the copy in this repository.
hey @gregglind. so replacing malloc.h with stdlib.h removed the errors and installed successfully. Though I haven't tested it out as I'm working on other non-python related build issues atm.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
I'll update once I get around to using the module :/
Thanks for looking into it!
On Mon, Mar 30, 2015 at 3:00 PM, Dale Jung notifications@github.com wrote:
hey @gregglind https://github.com/gregglind. so replacing malloc.h with stdlib.h removed the errors and installed successfully. Though I haven't tested it out as I'm working on other non-python related build issues atm.
gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix
I'll update once I get around to using the module :/
— Reply to this email directly or view it on GitHub https://github.com/hagberg/planarity/issues/1#issuecomment-87810389.
Any news concerning this issue? I am trying to install it (anaconda) and get the following error:
Collecting planarity
Using cached planarity-0.3.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./anaconda/lib/python3.4/site-packages/setuptools-18.3.2-py3.4.egg (from planarity)
Building wheels for collected packages: planarity
Running setup.py bdist_wheel for planarity
Complete output from command /Users/pedro/anaconda/bin/python3 -c "import setuptools;__file__='/private/var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-build-fz2az358/planarity/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/tmpp0uk4fvcpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-3.4
creating build/lib.macosx-10.5-x86_64-3.4/planarity
copying planarity/__init__.py -> build/lib.macosx-10.5-x86_64-3.4/planarity
copying planarity/planarity_functions.py -> build/lib.macosx-10.5-x86_64-3.4/planarity
copying planarity/planarity_networkx.py -> build/lib.macosx-10.5-x86_64-3.4/planarity
creating build/lib.macosx-10.5-x86_64-3.4/planarity/tests
copying planarity/tests/__init__.py -> build/lib.macosx-10.5-x86_64-3.4/planarity/tests
copying planarity/tests/test.py -> build/lib.macosx-10.5-x86_64-3.4/planarity/tests
copying planarity/tests/test_planarity.py -> build/lib.macosx-10.5-x86_64-3.4/planarity/tests
copying planarity/tests/test_planarity_networkx.py -> build/lib.macosx-10.5-x86_64-3.4/planarity/tests
running build_ext
skipping 'planarity/planarity.c' Cython extension (up-to-date)
building 'planarity.planarity' extension
creating build/temp.macosx-10.5-x86_64-3.4
creating build/temp.macosx-10.5-x86_64-3.4/planarity
creating build/temp.macosx-10.5-x86_64-3.4/planarity/src
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/pedro/anaconda/include -arch x86_64 -Iplanarity/src/ -I/Users/pedro/anaconda/include/python3.4m -c planarity/planarity.c -o build/temp.macosx-10.5-x86_64-3.4/planarity/planarity.o
In file included from planarity/src/graphStructures.h:53:0,
from planarity/planarity.c:235:
planarity/src/graphFunctionTable.h:62:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbeddingInitialize)();
^
planarity/src/graphFunctionTable.h:63:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpEmbedBackEdgeToDescendant)();
^
planarity/src/graphFunctionTable.h:64:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpWalkUp)();
^
planarity/src/graphFunctionTable.h:65:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWalkDown)();
^
planarity/src/graphFunctionTable.h:66:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMergeBicomps)();
^
planarity/src/graphFunctionTable.h:67:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpMergeVertex)();
^
planarity/src/graphFunctionTable.h:68:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleInactiveVertex)();
^
planarity/src/graphFunctionTable.h:69:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleBlockedBicomp)();
^
planarity/src/graphFunctionTable.h:70:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbedPostprocess)();
^
planarity/src/graphFunctionTable.h:71:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMarkDFSPath)();
^
planarity/src/graphFunctionTable.h:73:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckEmbeddingIntegrity)();
^
planarity/src/graphFunctionTable.h:74:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckObstructionIntegrity)();
^
planarity/src/graphFunctionTable.h:78:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpInitGraph)();
^
planarity/src/graphFunctionTable.h:79:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpReinitializeGraph)();
^
planarity/src/graphFunctionTable.h:80:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEnsureArcCapacity)();
^
planarity/src/graphFunctionTable.h:81:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpSortVertices)();
^
planarity/src/graphFunctionTable.h:83:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpReadPostprocess)();
^
planarity/src/graphFunctionTable.h:84:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWritePostprocess)();
^
planarity/src/graphFunctionTable.h:86:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpHideEdge)();
^
planarity/src/graphFunctionTable.h:87:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpRestoreEdge)();
^
planarity/src/graphFunctionTable.h:88:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHideVertex)();
^
planarity/src/graphFunctionTable.h:89:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpRestoreVertex)();
^
planarity/src/graphFunctionTable.h:90:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpContractEdge)();
^
planarity/src/graphFunctionTable.h:91:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpIdentifyVertices)();
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph___init__':
planarity/planarity.c:1568:78: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
((struct __pyx_obj_9planarity_9planarity_PGraph *)__pyx_v_self)->embedding = NULL;
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph_8ascii':
planarity/planarity.c:2715:34: warning: implicit declaration of function '_RenderToString' [-Wimplicit-function-declaration]
__pyx_t_2 = PyBytes_FromString(_RenderToString(((struct __pyx_obj_9planarity_9planarity_PGraph *)__pyx_v_self)->theGraph)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
planarity/planarity.c:2715:34: warning: passing argument 1 of 'PyBytes_FromString' makes pointer from integer without a cast [-Wint-conversion]
In file included from /Users/pedro/anaconda/include/python3.4m/Python.h:76:0,
from planarity/planarity.c:4:
/Users/pedro/anaconda/include/python3.4m/bytesobject.h:52:24: note: expected 'const char *' but argument is of type 'int'
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph_9write':
planarity/planarity.c:2746:7: warning: variable '__pyx_v_status' set but not used [-Wunused-but-set-variable]
int __pyx_v_status;
^
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/pedro/anaconda/include -arch x86_64 -Iplanarity/src/ -I/Users/pedro/anaconda/include/python3.4m -c planarity/src/graphColorVertices.c -o build/temp.macosx-10.5-x86_64-3.4/planarity/src/graphColorVertices.o
In file included from planarity/src/graphStructures.h:53:0,
from planarity/src/graphColorVertices.h:48,
from planarity/src/graphColorVertices.c:45:
planarity/src/graphFunctionTable.h:62:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbeddingInitialize)();
^
planarity/src/graphFunctionTable.h:63:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpEmbedBackEdgeToDescendant)();
^
planarity/src/graphFunctionTable.h:64:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpWalkUp)();
^
planarity/src/graphFunctionTable.h:65:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWalkDown)();
^
planarity/src/graphFunctionTable.h:66:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMergeBicomps)();
^
planarity/src/graphFunctionTable.h:67:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpMergeVertex)();
^
planarity/src/graphFunctionTable.h:68:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleInactiveVertex)();
^
planarity/src/graphFunctionTable.h:69:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleBlockedBicomp)();
^
planarity/src/graphFunctionTable.h:70:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbedPostprocess)();
^
planarity/src/graphFunctionTable.h:71:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMarkDFSPath)();
^
planarity/src/graphFunctionTable.h:73:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckEmbeddingIntegrity)();
^
planarity/src/graphFunctionTable.h:74:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckObstructionIntegrity)();
^
planarity/src/graphFunctionTable.h:78:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpInitGraph)();
^
planarity/src/graphFunctionTable.h:79:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpReinitializeGraph)();
^
planarity/src/graphFunctionTable.h:80:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEnsureArcCapacity)();
^
planarity/src/graphFunctionTable.h:81:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpSortVertices)();
^
planarity/src/graphFunctionTable.h:83:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpReadPostprocess)();
^
planarity/src/graphFunctionTable.h:84:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWritePostprocess)();
^
planarity/src/graphFunctionTable.h:86:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpHideEdge)();
^
planarity/src/graphFunctionTable.h:87:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpRestoreEdge)();
^
planarity/src/graphFunctionTable.h:88:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHideVertex)();
^
planarity/src/graphFunctionTable.h:89:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpRestoreVertex)();
^
planarity/src/graphFunctionTable.h:90:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpContractEdge)();
^
planarity/src/graphFunctionTable.h:91:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpIdentifyVertices)();
^
planarity/src/graphColorVertices.c:53:20: fatal error: malloc.h: No such file or directory
#include <malloc.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed to build planarity
Installing collected packages: planarity
Running setup.py install for planarity
Complete output from command /Users/pedro/anaconda/bin/python3 -c "import setuptools, tokenize;__file__='/private/var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-build-fz2az358/planarity/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-sfxehitv-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
skipping 'planarity/planarity.c' Cython extension (up-to-date)
building 'planarity.planarity' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/pedro/anaconda/include -arch x86_64 -Iplanarity/src/ -I/Users/pedro/anaconda/include/python3.4m -c planarity/planarity.c -o build/temp.macosx-10.5-x86_64-3.4/planarity/planarity.o
In file included from planarity/src/graphStructures.h:53:0,
from planarity/planarity.c:235:
planarity/src/graphFunctionTable.h:62:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbeddingInitialize)();
^
planarity/src/graphFunctionTable.h:63:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpEmbedBackEdgeToDescendant)();
^
planarity/src/graphFunctionTable.h:64:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpWalkUp)();
^
planarity/src/graphFunctionTable.h:65:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWalkDown)();
^
planarity/src/graphFunctionTable.h:66:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMergeBicomps)();
^
planarity/src/graphFunctionTable.h:67:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpMergeVertex)();
^
planarity/src/graphFunctionTable.h:68:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleInactiveVertex)();
^
planarity/src/graphFunctionTable.h:69:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleBlockedBicomp)();
^
planarity/src/graphFunctionTable.h:70:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbedPostprocess)();
^
planarity/src/graphFunctionTable.h:71:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMarkDFSPath)();
^
planarity/src/graphFunctionTable.h:73:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckEmbeddingIntegrity)();
^
planarity/src/graphFunctionTable.h:74:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckObstructionIntegrity)();
^
planarity/src/graphFunctionTable.h:78:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpInitGraph)();
^
planarity/src/graphFunctionTable.h:79:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpReinitializeGraph)();
^
planarity/src/graphFunctionTable.h:80:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEnsureArcCapacity)();
^
planarity/src/graphFunctionTable.h:81:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpSortVertices)();
^
planarity/src/graphFunctionTable.h:83:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpReadPostprocess)();
^
planarity/src/graphFunctionTable.h:84:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWritePostprocess)();
^
planarity/src/graphFunctionTable.h:86:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpHideEdge)();
^
planarity/src/graphFunctionTable.h:87:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpRestoreEdge)();
^
planarity/src/graphFunctionTable.h:88:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHideVertex)();
^
planarity/src/graphFunctionTable.h:89:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpRestoreVertex)();
^
planarity/src/graphFunctionTable.h:90:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpContractEdge)();
^
planarity/src/graphFunctionTable.h:91:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpIdentifyVertices)();
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph___init__':
planarity/planarity.c:1568:78: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
((struct __pyx_obj_9planarity_9planarity_PGraph *)__pyx_v_self)->embedding = NULL;
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph_8ascii':
planarity/planarity.c:2715:34: warning: implicit declaration of function '_RenderToString' [-Wimplicit-function-declaration]
__pyx_t_2 = PyBytes_FromString(_RenderToString(((struct __pyx_obj_9planarity_9planarity_PGraph *)__pyx_v_self)->theGraph)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
planarity/planarity.c:2715:34: warning: passing argument 1 of 'PyBytes_FromString' makes pointer from integer without a cast [-Wint-conversion]
In file included from /Users/pedro/anaconda/include/python3.4m/Python.h:76:0,
from planarity/planarity.c:4:
/Users/pedro/anaconda/include/python3.4m/bytesobject.h:52:24: note: expected 'const char *' but argument is of type 'int'
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
^
planarity/planarity.c: In function '__pyx_pf_9planarity_9planarity_6PGraph_9write':
planarity/planarity.c:2746:7: warning: variable '__pyx_v_status' set but not used [-Wunused-but-set-variable]
int __pyx_v_status;
^
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/pedro/anaconda/include -arch x86_64 -Iplanarity/src/ -I/Users/pedro/anaconda/include/python3.4m -c planarity/src/graphColorVertices.c -o build/temp.macosx-10.5-x86_64-3.4/planarity/src/graphColorVertices.o
In file included from planarity/src/graphStructures.h:53:0,
from planarity/src/graphColorVertices.h:48,
from planarity/src/graphColorVertices.c:45:
planarity/src/graphFunctionTable.h:62:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbeddingInitialize)();
^
planarity/src/graphFunctionTable.h:63:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpEmbedBackEdgeToDescendant)();
^
planarity/src/graphFunctionTable.h:64:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpWalkUp)();
^
planarity/src/graphFunctionTable.h:65:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWalkDown)();
^
planarity/src/graphFunctionTable.h:66:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMergeBicomps)();
^
planarity/src/graphFunctionTable.h:67:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpMergeVertex)();
^
planarity/src/graphFunctionTable.h:68:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleInactiveVertex)();
^
planarity/src/graphFunctionTable.h:69:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHandleBlockedBicomp)();
^
planarity/src/graphFunctionTable.h:70:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEmbedPostprocess)();
^
planarity/src/graphFunctionTable.h:71:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpMarkDFSPath)();
^
planarity/src/graphFunctionTable.h:73:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckEmbeddingIntegrity)();
^
planarity/src/graphFunctionTable.h:74:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpCheckObstructionIntegrity)();
^
planarity/src/graphFunctionTable.h:78:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpInitGraph)();
^
planarity/src/graphFunctionTable.h:79:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpReinitializeGraph)();
^
planarity/src/graphFunctionTable.h:80:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpEnsureArcCapacity)();
^
planarity/src/graphFunctionTable.h:81:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpSortVertices)();
^
planarity/src/graphFunctionTable.h:83:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpReadPostprocess)();
^
planarity/src/graphFunctionTable.h:84:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpWritePostprocess)();
^
planarity/src/graphFunctionTable.h:86:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpHideEdge)();
^
planarity/src/graphFunctionTable.h:87:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void (*fpRestoreEdge)();
^
planarity/src/graphFunctionTable.h:88:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpHideVertex)();
^
planarity/src/graphFunctionTable.h:89:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpRestoreVertex)();
^
planarity/src/graphFunctionTable.h:90:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpContractEdge)();
^
planarity/src/graphFunctionTable.h:91:9: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int (*fpIdentifyVertices)();
^
planarity/src/graphColorVertices.c:53:20: fatal error: malloc.h: No such file or directory
#include <malloc.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for planarity
Command "/Users/pedro/anaconda/bin/python3 -c "import setuptools, tokenize;__file__='/private/var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-build-fz2az358/planarity/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-sfxehitv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6y/1168f8ys4vs9m6r8_jd8hc4h0000gn/T/pip-build-fz2az358/planarity
Also tried from source changing malloc to stdlib. Did not work either. Thanks!
With the next command-line it works: $ CFLAGS="-I /usr/include/malloc" pip install planarity Collecting planarity Using cached planarity-0.3.1.tar.gz Requirement already satisfied (use --upgrade to upgrade): setuptools in ./anaconda/lib/python3.4/site-packages/setuptools-18.4-py3.4.egg (from planarity) ....... Successfully built planarity Installing collected packages: planarity Successfully installed planarity-0.3.1
Unfortunatelly I tested the next example from the repository, but it fails. It works well in my Debian 8 machine.
$ python ascii.py Segmentation fault: 11
Yes, it looks like the C code doesn't compile correctly on modern OSX. That code comes from Boyer https://code.google.com/p/planarity/ and may have been updated to address this issue. Anyone want to try to see if the C package that can compile correctly on OSX? If so then we can update things here.
I just updated the C source here to v3.0.0.5 https://github.com/john-boyer-phd/edge-addition-planarity-suite so maybe that will resolve some of these issues?
Thanks for the update, @hagberg. However, I was not able to compile it on my mac; I had to change libtoolize
to glibtoolize
in autogen.sh
. If you want, I can attach the logs.
I will ask @alfsan if he was able to compile it.
Thank you! Pedro
Hi @pedritomelenas - I just changed a header bbdd0dd31b217bbc78f9423eccd7a5b49685499b and removed some unnecessary files 02ae91ae3f0a24401bf6f3db4a14f607e9e64785. With those fixes this builds and tests correctly on my OSX machine (10.11.5, homebrew). Would you try it again and report the errors?
Yes, I could install it (macports here) without problems. I tried a couple of examples and seems to work like a charm.
Thank you!