problem when building python bindings - OS X

Willi Richert w.richert at gmx.net
Fri Mar 6 20:01:21 UTC 2009


Hi,

can you provide more information about the
 - python version
 - swig version
 - g++ version ?

On my machine it compiled with the following:

~> python -V
Python 2.5.2

~> swig -version

SWIG Version 1.3.35

Compiled with g++ [i686-pc-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information

~> g++ -v
Es werden eingebaute Spezifikationen verwendet.
Ziel: i486-linux-gnu
Konfiguriert mit: ../src/configure -v --with-pkgversion='Ubuntu 
4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --
enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --
with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-
threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --
program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-
objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --
build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread-Modell: posix
gcc-Version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)



Thanks,
wr

On Freitag 06 März 2009 18:29:20 Brian Gyss wrote:
> All:
>
> I'm having a problem whenever I try to build the Python bindings for
> libkdtree++ on my OS X box - here's an example of what it's printing
> out:
>
> $ make
> g++ -I.. -pedantic -Wno-long-long -Wall -ansi -pedantic -
> DHAVE_CONFIG_H -O3 -c py-kdtree_wrap.cxx -I/usr/include/python2.5 -I..
> g++ -I.. -pedantic -Wno-long-long -Wall -ansi -pedantic -
> DHAVE_CONFIG_H -O3 -shared  py-kdtree_wrap.o  -o _kdtree.so
> Undefined symbols:
>    "_PyString_FromFormat", referenced from:
>        _PySwigPacked_str in py-kdtree_wrap.o
>        _PySwigObject_repr in py-kdtree_wrap.o
>        _PySwigPacked_repr in py-kdtree_wrap.o
>        _PySwigPacked_repr in py-kdtree_wrap.o
> ...
>    "_PyCObject_FromVoidPtr", referenced from:
>        _SWIG_Python_SetModule in py-kdtree_wrap.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [_kdtree.so] Error 1
>
> The c++ examples seem to work fine, so I was wondering if anyone had
> any idea how I could fix this problem?
>
> Thanks!
>
> -b
>
> --
> Brian Gyss
> brian.gyss at gmail.com
> http://www.briangyss.com
>
>
>
>
>
>
>
> _______________________________________________
> libkdtree-devel mailing list
> libkdtree-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel




More information about the libkdtree-devel mailing list