Opened 19 years ago
Closed 19 years ago
#4935 closed defect (fixed)
graphviz will not compile on upgrade
Reported by: | kyle-opendarwinbugzilla@… | Owned by: | gwright@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | blb@… | |
Port: |
Description
Compile quits with this error:
---> Fetching graphviz ---> Attempting to fetch graphviz-2.6.tar.gz from http://www.graphviz.org/pub/graphviz/ARCHIVE/ ---> Verifying checksum(s) for graphviz ---> Extracting graphviz ---> Applying patches to graphviz ---> Configuring graphviz ---> Building graphviz with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6" && MACOSX_DEPLOYMENT_TARGET=10.4 make all" returned error 2 Command output: libtool: link: warning: `/opt/local/liblibfontconfig.la' seems to be moved libtool: link: warning: `/opt/local/liblibfreetype.la' seems to be moved libtool: link: warning: `/opt/local/liblibjpeg.la' seems to be moved libtool: link: warning: `/opt/local/liblibexpat.la' seems to be moved libtool: link: warning: `/opt/local/liblibltdl.la' seems to be moved g++ -dynamiclib -single_module ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgv_php. 0.0.0.dylib .libs/gv.o .libs/gv_php.o -L/opt/local/lib ../../lib/gvc/.libs/libgvc.dylib -L/opt/local/lib/ - L/usr/local/lib/ /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/graph/.libs/libgraph.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/cdt/.libs/libcdt.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/pathplan/.libs/libpathplan.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/gd/.libs/libgvgd.dylib /opt/local/liblibiconv.dylib /opt/local/lib libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib /opt/local/lib libfreetype.dylib /opt/local/liblibjpeg.dylib /opt/local/lib/libpng.dylib /opt/local/liblibexpat.dylib / opt/local/lib/libz.dylib /opt/local/liblibltdl.dylib -lc -install_name /opt/local/lib/graphviz/ libgv_php.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0 (cd .libs && rm -f libgv_php.0.dylib && ln -s libgv_php.0.0.0.dylib libgv_php.0.dylib) (cd .libs && rm -f libgv_php.dylib && ln -s libgv_php.0.0.0.dylib libgv_php.dylib) ar cru .libs/libgv_php.a gv.o gv_php.o ranlib .libs/libgv_php.a creating libgv_php.la (cd .libs && rm -f libgv_php.la && ln -s ../libgv_php.la libgv_php.la) if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../ lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/opt/local/lib/ perl5/5.8.7/darwin-thread-multi-2level/CORE -I/usr/include/php -I/usr/include/php/main -I/usr/ include/php/Zend -I/usr/include/php/TSRM -I/opt/local/Library/Frameworks/Python.framework/ Versions/2.4/include/python2.4 -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/opt/local/include -I/opt/ local/include -I/opt/local/include -g -O2 -MT gv_python.lo -MD -MP -MF ".deps/gv_python.Tpo" -c - o gv_python.lo gv_python.cpp; \ then mv -f ".deps/gv_python.Tpo" ".deps/gv_python.Plo"; else rm -f ".deps/gv_python.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../
lib/cdt -I../../lib/pathplan -I/opt/local/lib/perl5/5.8.7/darwin-thread-multi-2level/CORE -I/usr/ include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/opt/ local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/usr/lib/ruby/1.8/ powerpc-darwin8.0 -I/opt/local/include -I/opt/local/include -I/opt/local/include -g -O2 -MT gv_python.lo -MD -MP -MF .deps/gv_python.Tpo -c gv_python.cpp -fno-common -DPIC -o .libs/ gv_python.o
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../
lib/cdt -I../../lib/pathplan -I/opt/local/lib/perl5/5.8.7/darwin-thread-multi-2level/CORE -I/usr/ include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/opt/ local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/usr/lib/ruby/1.8/ powerpc-darwin8.0 -I/opt/local/include -I/opt/local/include -I/opt/local/include -g -O2 -MT gv_python.lo -MD -MP -MF .deps/gv_python.Tpo -c gv_python.cpp -o gv_python.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -L/opt/local/lib -L/opt/local/lib -o libgv_python.la -rpath /opt/local/lib/graphviz gv.lo gv_python.lo ../../lib/gvc/libgvc.la -L/opt/local/ Library/Frameworks/Python.framework/Versions/2.4/lib -lpython2.4 -lc libtool: link: warning: `/opt/local/liblibiconv.la' seems to be moved libtool: link: warning: `/opt/local/liblibfontconfig.la' seems to be moved libtool: link: warning: `/opt/local/liblibfreetype.la' seems to be moved libtool: link: warning: `/opt/local/liblibjpeg.la' seems to be moved libtool: link: warning: `/opt/local/liblibexpat.la' seems to be moved libtool: link: warning: `/opt/local/liblibltdl.la' seems to be moved g++ -dynamiclib -single_module ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgv_python. 0.0.0.dylib .libs/gv.o .libs/gv_python.o -L/opt/local/lib ../../lib/gvc/.libs/libgvc.dylib -L/opt/local/ lib/ -L/usr/local/lib/ /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/graph/.libs/libgraph.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/cdt/.libs/libcdt.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/pathplan/.libs/libpathplan.dylib /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_graphviz /work/graphviz-2.6/lib/gd/.libs/libgvgd.dylib /opt/local/liblibiconv.dylib /opt/local/lib libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib /opt/local/lib libfreetype.dylib /opt/local/liblibjpeg.dylib /opt/local/lib/libpng.dylib /opt/local/liblibexpat.dylib / opt/local/lib/libz.dylib /opt/local/liblibltdl.dylib -L/opt/local/Library/Frameworks/ Python.framework/Versions/2.4/lib -lpython2.4 -lc -install_name /opt/local/lib/graphviz/ libgv_python.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0 /usr/bin/libtool: can't locate file for: -lpython2.4 /usr/bin/libtool: file: -lpython2.4 is not an object file (not allowed in a library) make[3]: * [libgv_python.la] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2
Error: Unable to upgrade port: 1
Change History (3)
comment:1 Changed 19 years ago by blb@…
Cc: | blb@… added |
---|---|
Owner: | changed from darwinports-bugs@… to gwright@… |
comment:2 Changed 19 years ago by gwright@…
Status: | new → assigned |
---|
Just setting the PYTHON environment variable doesn't fix the problem (the configuration process is too clever/dumb to fall for that).
OTOH, the problem is easy to fix by patching the configure script to add a "." between "python" and "2.4" in the linker directive "-lpython2.4". So the bug can be fixed. However, I've sent a note to the maintainer of the python24 port asking if this is the right thing. It may be that the python port is using a nonstandard name for the libraries and that should be changed, rather than graphviz being patched. If the decision is to keep the current python 2.4 library names, I'll commit the fix.
-Greg
comment:3 Changed 19 years ago by gwright@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The python port has been changed to fix this bug. It was using a slightly different name for the python library (with an extra ".") than graphviz expected.
On discussion with mww@, it seemed as if the naming expected by graphviz is more standard, so the python library was renamed.
-Greg
Looks like building graphviz works a bit different when it sees python 2.4 is available. If my reading of configure is right, adding
PYTHON=""
to configure.env should keep it from tying into python.
Assigning to maintainer for thoughts.