NetBSD Problem Report #52690
From www@NetBSD.org Thu Nov 2 15:39:04 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D457D7A1DC
for <gnats-bugs@gnats.NetBSD.org>; Thu, 2 Nov 2017 15:39:03 +0000 (UTC)
Message-Id: <20171102153903.18F717A1FE@mollari.NetBSD.org>
Date: Thu, 2 Nov 2017 15:39:03 +0000 (UTC)
From: prlw1@cam.ac.uk
Reply-To: prlw1@cam.ac.uk
To: gnats-bugs@NetBSD.org
Subject: libxml2 fails in python 3.6
X-Send-Pr-Version: www-1.0
>Number: 52690
>Category: pkg
>Synopsis: libxml2 fails in python 3.6
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 02 15:40:00 +0000 2017
>Closed-Date: Mon Nov 06 16:26:36 +0000 2017
>Last-Modified: Mon Nov 06 16:26:36 +0000 2017
>Originator: Patrick Welche
>Release: NetBSD-current/amd64
>Organization:
>Environment:
>Description:
Given:
py36-libxml2-2.9.6 Python wrapper for libxml2
$ python3.6
Python 3.6.3 (default, Oct 27 2017, 17:16:29)
[GCC 5.4.0] on netbsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/pkg/lib/python3.6/site-packages/libxml2.py", line 1, in <module>
import libxml2mod
ImportError: /usr/pkg/lib/python3.6/site-packages/libxml2mod.so: Undefined PLT symbol "PyCObject_Check" (symnum = 488)
The strange part is that PyCObject_Check is only mentioned in the piece of code referred to by textproc/libxml2/patch-python_libxml__wrap.h and is protected by #if PY_VERSION_HEX < 0x02070000. AFAICT there shouldn't be a PyCObject anywhere.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Patrick Welche" <prlw1@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52690 CVS commit: pkgsrc/textproc
Date: Mon, 6 Nov 2017 16:02:00 +0000
Module Name: pkgsrc
Committed By: prlw1
Date: Mon Nov 6 16:02:00 UTC 2017
Modified Files:
pkgsrc/textproc/libxml2: distinfo
pkgsrc/textproc/py-libxml2: Makefile
Removed Files:
pkgsrc/textproc/libxml2/patches: patch-python_libxml__wrap.h
Log Message:
py-libxml2: remove patch-python_libxml__wrap.h - the cause of PR pkg/52690
$ python3.6
Python 3.6.3 (default, Oct 27 2017, 17:16:29)
[GCC 5.4.0] on netbsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/pkg/lib/python3.6/site-packages/libxml2.py", line 1, in <module>
import libxml2mod
ImportError: /usr/pkg/lib/python3.6/site-packages/libxml2mod.so: Undefined PLT symbol "PyCObject_Check" (symnum = 488)
To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 pkgsrc/textproc/libxml2/distinfo
cvs rdiff -u -r1.1 -r0 \
pkgsrc/textproc/libxml2/patches/patch-python_libxml__wrap.h
cvs rdiff -u -r1.57 -r1.58 pkgsrc/textproc/py-libxml2/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Mon, 06 Nov 2017 16:26:36 +0000
State-Changed-Why:
fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.