On Feb 27, 1:40 pm, "David M. Monarres" <dmmonar...@gmail.com> wrote:
> Hello all,
Hi David,
> The build of graphviz-2.16.1.p0 with sage 3.3 on Intel Mac fails.
The spkg is quite outdated and likely broken in some other way. The
current graphviz release is 2.21 IIRC with 2.22 about to be released.
> So
> I executed sage -sh and ran make from the src directory. The build
> works until making gv where it fails with this error.
>
> Making all in gv
> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -
> I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/
> graph -I../../lib/cdt -I../../lib/pathplan -I/sw/include -I/usr/lib/
> ocaml -I/System/Library/Perl/5.8.8/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/Users/ayeq/sage/local/include/python2.5 -I/sw/lib/
> ruby/1.8/i686-darwin -I/sw/include -I/Users/ayeq/sage/local/include -I/
> Users/ayeq/sage/local/include -g -O2 -MT gv_lua.lo -MD -MP -MF .deps/
> gv_lua.Tpo -c -o gv_lua.lo gv_lua.cpp
> g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/
> common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/sw/
> include -I/usr/lib/ocaml -I/System/Library/Perl/5.8.8/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/Users/ayeq/sage/local/
> include/python2.5 -I/sw/lib/ruby/1.8/i686-darwin -I/sw/include -I/
> Users/ayeq/sage/local/include -I/Users/ayeq/sage/local/include -g -O2 -
> MT gv_lua.lo -MD -MP -MF .deps/gv_lua.Tpo -c gv_lua.cpp -fno-common -
> DPIC -o .libs/gv_lua.o
> gv_lua.cpp:711:20: error: malloc.h: No such file or directory
Well, it fails building the lua bindings it picked up from /sw, i.e.
your local Fink install. Since we do not link with graphviz and if you
are using Sage 3.3 you can do a couple things:
* move /sw out of the way or adjust PATH and DYLD_LIBRARY_PATH to not
point to any of that and try rebuilding the spkg. I would guess
graphviz tries to be helpful and will find dependencies in /sw anyway,
so moving it temporarily might be the better option.
* wait for me to update the graphviz.spkg and make it not build and
use any code from /sw - this will not happen before the end of SD 13.
* install graphviz via Fink for example and use it from Sage that
way. In Sage 3.3 this should work since we removed a problem with
libpng that prevented a lot of code on OSX depending on system
frameworks to work.
> I looked in $SAGE/local/include and didn't see malloc.h and remember
> some discussion on the list about using an altered malloc.
We do not provide malloc.h, you might refer to the discussion about
memory management and libSingular, but that was about using the system
malloc and not actually providing an alternative malloc.
> Would it be safe to just add /usr/include/malloc/ to the include path
> or is the package looking for something specific.
I do not believe that this is the problem since the system compiler
looks into those places automatically.
> The details on my system are:
>
> OS: OSX 10.5.6
> PROC: Intel
> CC: gcc version 4.0.1 (Apple Inc. build 5490)
>
> Thanks for your help
Cheers,
Michael
> --
> David Monarres
> dmmonar...@gmail.com
>
> "There... I've run rings 'round you logically"
> -- Monty Python's Flying Circus
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---