On Dec 24, 9:33 am, "Arnaud Bergeron" <aberge...@gmail.com> wrote:
Hi Arnaud,
> >>> > * dvipng-1.8 -- available on any linux/os x system via standard
> >>> > package tools; has nothing to do with sage
>
> >>> Delete it completely. The dependencies are insane and people just
> >>> install the distributions version..
>
> I think this spkg was made for macs, where the system dvipng cannot
> run in the sage environment:
Nope, I don't think so.
> $ sage -sh
>
> Starting subshell with Sage environment variables set.
> Be sure to exit when you are done and do not do anything
> with other copies of Sage!
>
> bash-3.2$ dvipng
> dyld: Symbol not found: __cg_png_create_info_struct
> Referenced from:
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewo
> rks/ImageIO.framework/Versions/A/ImageIO
> Expected in: /Volumes/Place/anakha/Applications/sage/local/lib//libPng.dylib
>
> Trace/BPT trap
> bash-3.2$
>
> If this goes then we should also remove the spkg for libpng or mess
> with the library path in an evil way.
Messing with the library path even in an evil way won't fix this since
however way you do this it will break when things move for example.
The fix here at least for dvipng would be to use the libpng that Sage
ships which would resolve the symbol lookup problem.
If an external dvipng is called we can patch around it, at least in
the Sage library. If it is called from other packages we could patch
those as a last resort. Going back to a static libpng won't fix the
issues we have seen in Sage either way. Apple is to blame for this
mess, but there is little we can do about it. Maybe we should add just
some dummy symbols or someone should start looking into the various
Apple source repos to potentially find a patch.
> Arnaud
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---