Well,

The problem is missing link to python lib normally. You have

gcc -pthread -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags build/temp.linux-x86_64-3.3/
Modules/_bsddb.o -L/usr/lib64 -Wl,--enable-new-dtags,-R/usr/lib64 -ldb-5.3 -o build/lib.linux-x86_64-3.3/bsddb3/_pybsddb.cpython-33m.so

I don't see something like -lpython3.2 in that line, while the piece missing should be in there.
So, in the configure of pybsddb, is there no way to indicate lib?

If you are no expert in this, fixing it might be problematic :-)

Benny



2012/11/25 Peter Landgren <peter.talken@telia.com>
Den Sunday 25 November 2012 14.06.59 skrev Benny Malengier:
> Do you have python3-dev installed?
Yes, I have a package lib64python3-devel installed.

> Note that for some reasons, he looks in: -I/usr/include
> -I/usr/include/python3.3m
> so python3.3m and not python3.3 which I don't understand :-)
Yes, there is a dircetory
/usr/include/python3.3m/
with 94 *.h files.

Also in /usr/lib64 I have three files

libdb-5.3.a
libdb-5.3.la
libdb-5.3.so

when in the command I have "-R/usr/lib64 -ldb-5.3"

Note; my knowledge level of C and gcc is very low :)

/Peter

> Benny
>
> 2012/11/25 Peter Landgren <peter.talken@telia.com>
>
> > undefined reference to `_Py_NoneStruct

--
Peter Landgren
Talken Hagen
671 94  BRUNSKOG
0570-530 21
070-345 0964
peter.talken@telia.com
Skype: pgl4820.2