[wxPython] undefined symbol: SWIG_addvarlink

On a Linux box (SuSE 7.0) I installed

gtk 1.2.8
swig 1.1p5 (from source)
wxWindows (wxGTK) 2.2.2 (from source)
wxPython 2.2.2 (from source)

Everything builds and installs without error. If I then run
  python demo.py
in the wxPython/demo/ subdirectory I get:

    import wxc
    ImportError: /home/jtschirr/tmp/wxPython-2.2.2/wxPython/wxc.so:
    undefined symbol: SWIG_addvarlink

does anybody have an idea where SWIG-addvarlink is defined and how I can
make wxc.so make to find it?

Juerg

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

On a Linux box (SuSE 7.0) I installed

gtk 1.2.8
swig 1.1p5 (from source)
wxWindows (wxGTK) 2.2.2 (from source)
wxPython 2.2.2 (from source)

Everything builds and installs without error. If I then run
  python demo.py
in the wxPython/demo/ subdirectory I get:

    import wxc
    ImportError: /home/jtschirr/tmp/wxPython-2.2.2/wxPython/wxc.so:
    undefined symbol: SWIG_addvarlink

does anybody have an idea where SWIG-addvarlink is defined and how I can
make wxc.so make to find it?

It's in libpy.c. BTW, you shouldn't need SWIG unless you're making
changes/additions to the *.i files, as all the SWIG generated stuff is
included in the source distribution. If you do want to use SWIG then you'll
need the 1.1-883 version, which can be downloaded from
http://alldunn.com/wxPython/dist/others/ if you can't find it anywhere else.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

o.k., I found it in libpy.c like you said. But where is libpy.c getting
linked in? In what library is SWIG_addvarlink gonna end up?

  In the email before I forgot to mention that the only change I did to
setup.py is setting BUILD_STC = 0 (with BUILD_STC = 1 I got error messages
about missing header files). Could that have something to do with the
SWIG_addvarlink problem?

Juerg

···

On Sun, 3 Dec 2000, Robin Dunn wrote:

>
> On a Linux box (SuSE 7.0) I installed
>
> gtk 1.2.8
> swig 1.1p5 (from source)
> wxWindows (wxGTK) 2.2.2 (from source)
> wxPython 2.2.2 (from source)
>
> Everything builds and installs without error. If I then run
> python demo.py
> in the wxPython/demo/ subdirectory I get:
>
> import wxc
> ImportError: /home/jtschirr/tmp/wxPython-2.2.2/wxPython/wxc.so:
> undefined symbol: SWIG_addvarlink
>
> does anybody have an idea where SWIG-addvarlink is defined and how I can
> make wxc.so make to find it?
>

It's in libpy.c. BTW, you shouldn't need SWIG unless you're making
changes/additions to the *.i files, as all the SWIG generated stuff is
included in the source distribution. If you do want to use SWIG then you'll
need the 1.1-883 version, which can be downloaded from
http://alldunn.com/wxPython/dist/others/ if you can't find it anywhere else.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

>
> It's in libpy.c. BTW, you shouldn't need SWIG unless you're making
> changes/additions to the *.i files, as all the SWIG generated stuff is
> included in the source distribution. If you do want to use SWIG then

you'll

> need the 1.1-883 version, which can be downloaded from
> http://alldunn.com/wxPython/dist/others/ if you can't find it anywhere

else.

o.k., I found it in libpy.c like you said. But where is libpy.c getting
linked in? In what library is SWIG_addvarlink gonna end up?

It's listed in setup.py so it should be put into the wxc.so extension module
automatically.

  In the email before I forgot to mention that the only change I did to
setup.py is setting BUILD_STC = 0 (with BUILD_STC = 1 I got error messages
about missing header files). Could that have something to do with the
SWIG_addvarlink problem?

Probably not. What headers were missing? Did you get your sources from CVS
or from the tar.gz files? If from CVS then you'll need to use the
IN_CVS_TREE flag.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users