Issues with pycaml in Karmic (was: Re: Adaptation of ocaml_transition_monitor to Ubuntu)

Max Bowsher maxb at f2s.com
Wed Jun 3 23:25:42 UTC 2009


David MENTRE wrote:
> Hello Dmitrijs,
> 
> On Wed, Jun 3, 2009 at 15:23, Dmitrijs Ledkovs <dmitrij.ledkov at gmail.com> wrote:
>> Not an expert nor a DD nor anything in Ubuntu. But this could be
>> either a gcc4.4 transition/bug or a python2.6 et al bug.
>>
>> Does exactly this package compile fine in Sid & Jaunty if yes than
>> most likely gcc4.4 related.
> 
> It builds in Jaunty (not exactly the same package "-8ubuntu1" instead of "-9"):
>   https://launchpad.net/ubuntu/jaunty/+source/pycaml/+builds
> 
> It compiles in Sid (but using gcc-4.3 and python 2.5):
>   https://buildd.debian.org/pkg.cgi?pkg=pycaml

Hi David,

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.

Max.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20090604/4bd89a2f/attachment.pgp>


More information about the Ubuntu-devel-discuss mailing list