Code: Select all
Compiling tools/tdbbackup.c
i686-pc-linux-gnu-gcc -shared -Wl,-Bsymbolic -Wl,-O1 -o libtdb.so.1.2.1 common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o -Wl,--version-script tdb.exports -Wl,-soname=libtdb.so.1
i686-pc-linux-gnu-gcc -fPIC -c ./pytdb.c -I./include -Iinclude -O2 -march=athlon-xp -pipe -fomit-frame-pointer -I./libreplace `/usr/bin/python2.5-config --cflags`
/bin/sh: /usr/bin/python2.5-config: /usr/bin/python2.5: bad interpreter: No such file or directory
./pytdb.c:30:20: error: Python.h: No such file or directory
./pytdb.c:39: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
./pytdb.c: In function ‘PyAPI_DATA’:
./pytdb.c:44: error: expected declaration specifiers before ‘PyTdb’
./pytdb.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
./pytdb.c:52: error: expected ‘)’ before ‘*’ token
./pytdb.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:164: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:220: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:271: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
./pytdb.c:274: error: storage class specified for parameter ‘PyTdbIteratorObject’
./pytdb.c:276: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:288: error: expected ‘)’ before ‘*’ token
./pytdb.c:294: error: expected declaration specifiers before ‘PyTypeObject’
./pytdb.c:301: error: expected declaration specifiers before ‘;’ token
./pytdb.c:303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:321: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_methods’
./pytdb.c:358: error: expected declaration specifiers before ‘;’ token
./pytdb.c:360: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:365: error: expected declaration specifiers or ‘...’ before ‘PyObject’
./pytdb.c:366: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
./pytdb.c:373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:378: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:383: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_getsetters’
./pytdb.c:395: error: expected declaration specifiers before ‘;’ token
./pytdb.c:397: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:403: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
./pytdb.c:409: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./pytdb.c:429: error: expected declaration specifiers or ‘...’ before ‘PyObject’
./pytdb.c:429: error: expected declaration specifiers or ‘...’ before ‘PyObject’
./pytdb.c:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
./pytdb.c:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_object_mapping’
./pytdb.c:464: error: expected declaration specifiers before ‘;’ token
./pytdb.c:465: error: expected declaration specifiers before ‘PyTypeObject’
./pytdb.c:477: error: expected declaration specifiers before ‘;’ token
./pytdb.c:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tdb_methods’
./pytdb.c:483: error: expected declaration specifiers before ‘;’ token
./pytdb.c:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
./pytdb.c:274: error: declaration for parameter ‘PyTdbIteratorObject’ but no such parameter
./pytdb.c:516: error: expected ‘{’ at end of input
make: *** [pytdb.o] Error 1
make: *** Waiting for unfinished jobs....
* ERROR: sys-libs/tdb-1.2.1 failed:Code: Select all
[ebuild N ] sys-libs/tdb-1.2.1 USE="python tdbtest tools -static-libs" 0 kBCode: Select all
Available Python interpreters:
[1] python2.6 *
[2] python3.1Any ideas?
Thanks.



