[rrd-users] Python errors when compiling rrdtool v.1.2.19
Roger Young
r.young at irl.cri.nz
Wed Apr 4 10:16:31 CEST 2007
Hello, I am getting lots of undefined Python references (see below) when compiling
rrdtool (v.1.2.19) from source. The configure script correctly identifies my python version (2.4)
and locates the python include directory:
PYTHON = /usr/bin/python
PYTHON_EXEC_PREFIX = ${exec_prefix}
PYTHON_INCLUDES = -I/usr/include/python2.4
PYTHON_PLATFORM = linux2
PYTHON_PREFIX = ${prefix}
PYTHON_VERSION = 2.4
The undefined references are all resolved in the python include directory,
for example PyTuple_Size (see below) is found in:
/usr/include/python2.4/tupleobject.h:PyAPI_FUNC(int) PyTuple_Size(PyObject *);
I am running Linux kernel 2.6.18 (Slackware 11.0)
Can anyone suggest why I am getting these compile time errors??
And how to fix?
Thankyou,
Roger Young.
........................................................................................
make[3]: Entering directory `/usr/local/src/rrdtool-1.2.19/bindings/python'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -o rrdtoolmodule.so rrdtoolmodule.o ../../src/librrd.la
gcc -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -o .libs/rrdtoolmodule.so rrdtoolmodule.o ../../src/.libs/librrd.so -lpng -lz -lm -Wl,--rpath -Wl,/usr/local/rrdtool-1.2.19/lib
rrdtoolmodule.o(.text+0x1d): In function `create_args':
/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:59: undefined reference to `PyTuple_Size'
rrdtoolmodule.o(.text+0x2f):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:60: undefined reference to `PyMem_Malloc'
rrdtoolmodule.o(.text+0x4d):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:64: undefined reference to `PyString_Type'
rrdtoolmodule.o(.text+0x78):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:66: undefined reference to `PyType_IsSubtype'
rrdtoolmodule.o(.text+0xd6):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:69: undefined reference to `PyObject_Free'
rrdtoolmodule.o(.text+0xe7):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:70: undefined reference to `PyExc_TypeError'
rrdtoolmodule.o(.text+0xef):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:70: undefined reference to `PyErr_Format'
and many more
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
More information about the rrd-users
mailing list