Bug#531806: pycaml fails to build with Python 2.6
pycaml package fails to build with Python 2.6 on Ubuntu Karmic. Here
is the build log:
Here are the explanations about that bug of Max Bowsher <email@example.com> :
if you look at the build log, the error is:
pycaml_ml.c:1151: error: 'PyImport_ImportModuleEx' undeclared here (not
in a function)
If you dig around a bit, you find that in Python 2.6, this is strictly a
#define, which is incompatible with pycaml_ml.c's use of it - whereas in
Python 2.5, it was also provided as a real entry point for compatibility.
Rather annoyingly, if you dig into Python's svn repository, it looks
like this compatibility provision may have been *accidentally* reverted
- http://svn.python.org/view?view=rev&revision=59678, look at the
changes to import.c and import.h.
Accidentally or not, it looks like pycaml will need to be adapted to not
use that function.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 184.108.40.206 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages pycaml depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii ocaml-base-nox [ocaml-base-no 3.10.2-3 Runtime system for OCaml bytecode
ii python2.5 2.5.2-15 An interactive high-level object-o
Versions of packages pycaml recommends:
ii ocaml-nox [ocaml-nox-3.10.2] 3.10.2-3 ML language implementation with a
pycaml suggests no packages.
-- no debconf information