Problem solved ! The problem is simply a incorrect name for the library 
libpng.
I've uninstall the libraries libpng of my computer. Then the compilation of 
sage-5.10 from the beggining stop with the first error I gave :

ld: library not found for -lpng

The problem simply comes from the fact that ld don't see the library 
libpng, because his name is incorrect.
If we replace -lpng by -lpng12 in the line

g++ -bundle -undefined dynamic_lookup -L/Applications/sage-5.10/local/lib 
build/temp.macosx-10.8-x86_64-2.7/src/_png.o 
build/temp.macosx-10.8-x86_64-2.7/src/mplutils.o 
build/temp.macosx-10.8-x86_64-2.7/CXX/cxx_extensions.o 
build/temp.macosx-10.8-x86_64-2.7/CXX/cxxsupport.o 
build/temp.macosx-10.8-x86_64-2.7/CXX/IndirectPythonInterface.o 
build/temp.macosx-10.8-x86_64-2.7/CXX/cxxextensions.o 
-L/Applications/sage-5.10/local/lib -lpng -lz -lstdc++ -lm -o 
build/lib.macosx-10.8-x86_64-2.7/matplotlib/_png.so

it compiles.
So to correct the problem I've simply make a alias of the library libpng in 
$SAGEROOT/local/lib/ with the same name but with 12 removed.
If I restart the compilation (after the command export 
SAGE_KEEP_BUILT_SPKGS=yes), it compiles.
And now all the tests pass !

I don't know how to modify the file 
$SAGEROOT/spkg/standard/libpng-1.2.35.p5.spkg to finaly correct the problem 
in futures distributions, but it might be easy for some people...

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to