Subject: pkg/16144: pkg wxPython won't load
To: None <gnats-bugs@gnats.netbsd.org>
From: Brett Slager <bds@shopserver.netbsd.org>
List: netbsd-bugs
Date: 03/31/2002 11:06:37
>Number:         16144
>Category:       pkg
>Synopsis:       pkg wxPython won't load
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 31 09:12:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brett Slager
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
	pkgsrc from Mar 18, 2002
	pkg python20-2.0.1nb2
	pkg py20-wxWindows-2.2.2nb1
System: NetBSD shopserver 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386


>Description:

wxPython straight out of pkgsrc fails to load because of undefined
symbol "__pure_virtual".

>How-To-Repeat:

367 shopserver wxPython-2.2.2/demo % python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 15, in ?
    from   wxPython.wx import *
  File "/usr/pkg/lib/python2.0/site-packages/wxPython/__init__.py", line 20, in ?
    import wxc
ImportError: /usr/pkg/lib/python2.0/site-packages/wxPython/wxc.so: Undefined symbol "__pure_virtual" (reloc type = 1, symnum = 2521)
Exit 1

>Fix:
doc/HACKS reference for perl5:

hack    perl5-base
mdate   12 Apr 2001
who     manu
port    all
Checking in perl5-base/patches/patch-ag: 1.2 : 1 : 999
descr
        The Xerces-Perl module is implemented as a shared object. It needs 
        some symbols from libgcc.a, such as __eh_alloc. It's not possible
        to link the xerces-P shared object with libgcc.a, because libgcc.a
        is not compiled with -fPIC. Hence we need to have the missing 
        symbols in the Perl executable. 
        This hack includes the whole libgcc.a in the Perl executable, and
        links with c++ so that some mandatory symbols such as __pure_virtual 
        are also included. It should go away with GCC-3.0, or if we make a
        libgcc.so on day.
>Release-Note:
>Audit-Trail:
>Unformatted: