On Thu, May 28, 2009 at 10:01 AM, John Hunter <jdh2...@gmail.com> wrote:
> On Thu, May 28, 2009 at 9:57 AM, Charlie Moad <cwm...@gmail.com> wrote:
>
>> I'll have to check my home computer tonight.  I never saw your note
>> about libpng either.  Again, I'll poke a little more tonight once I
>> get home to my machine and update you.
>
> The debugger indicates the dreaded mscvrt is still in the binaries,
> despite your monkey patch.  The only reference to that file in
> distutils cygwincompiler is::
>
>        # cygwin and mingw32 need different sets of libraries
>        if self.gcc_version == "2.91.57":
>            # cygwin shouldn't need msvcrt, but without the dlls will crash
>            # (gcc version 2.91.57) -- perhaps something about initialization
>            self.dll_libraries=["msvcrt"]
>            self.warn(
>                "Consider upgrading to a newer version of gcc")
>        else:
>            # Include the appropriate MSVC runtime library if Python was built
>            # with MSVC 7.0 or later.
>            self.dll_libraries = get_msvcr()
>
> we shouldn't be matching that version string, and your monkey patch
> *should* be overriding get_msvcr, but it is still getting in there.
> Try in the matplotlib-0.98.6svn dir::
>
>  > grep -ri mscvrt .
>
> I get the following listing::
>
> Binary file ./build/lib.win32-2.6/matplotlib/backends/_backend_agg.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/backends/_tkagg.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/ft2font.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/nxutils.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/ttconv.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_cntr.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_delaunay.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_image.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_path.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_png.pyd matches
> Binary file ./build/lib.win32-2.6/matplotlib/_windowing.pyd matches


Hmm, not sure if this msvcrt is a red-herring or not.  We may be
getting it by virtue of linking with numpy.  If I run the same grep on
the numpy install from the 1.3.0 numpy binary, I get

Binary file ./core/multiarray.pyd matches
Binary file ./core/scalarmath.pyd matches
Binary file ./core/umath.pyd matches
Binary file ./core/umath_tests.pyd matches
Binary file ./core/_dotblas.pyd matches
Binary file ./core/_sort.pyd matches
./distutils/mingw32ccompiler.py:        # with MSVC >= 7.0 (MinGW
standard is msvcrt)
./distutils/mingw32ccompiler.py:        import msvcrt
./distutils/mingw32ccompiler.py:        if hasattr(msvcrt,
"CRT_ASSEMBLY_VERSION"):
./distutils/mingw32ccompiler.py:            _MSVCRVER_TO_FULLVER['90']
= msvcrt.CRT_ASSEMBLY_VERSION
./distutils/mingw32ccompiler.py:        log.warn('Cannot import
msvcrt: using manifest will not be possible')
./distutils/mingw32ccompiler.py:        raise ValueError("Version
%d,%d of MSVCRT not supported yet" \
Binary file ./distutils/mingw32ccompiler.pyc matches
Binary file ./distutils/mingw32ccompiler.pyo matches
Binary file ./fft/fftpack_lite.pyd matches
Binary file ./lib/_compiled_base.pyd matches
Binary file ./linalg/lapack_lite.pyd matches
Binary file ./numarray/_capi.pyd matches
./numpy.out:./distutils/mingw32ccompiler.py:        # with MSVC >= 7.0
(MinGW standard is msvcrt)
./numpy.out:./distutils/mingw32ccompiler.py:        import msvcrt
./numpy.out:./distutils/mingw32ccompiler.py:        if hasattr(msvcrt,
"CRT_ASSEMBLY_VERSION"):
./numpy.out:./distutils/mingw32ccompiler.py:
_MSVCRVER_TO_FULLVER['90'] = msvcrt.CRT_ASSEMBLY_VERSION
./numpy.out:./distutils/mingw32ccompiler.py:        log.warn('Cannot
import msvcrt: using manifest will not be possible')
./numpy.out:./distutils/mingw32ccompiler.py:        raise
ValueError("Version %d,%d of MSVCRT not supported yet" \
Binary file ./random/mtrand.pyd matches


Sometimes these missing dlls are not the true cause of the segfault....

JDH

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to