[rrd-users] rrdtool-1.2.19 build fails on solaris9-sparc
Sven Esbjerg
ses at uni2.dk
Fri Mar 23 14:48:53 CET 2007
Hi
I am having some difficulties compiling rrdtool-1.2.19 on a Solaris9 SPARC
machine with gcc 3.4.6. I get the follwoing error:
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 /usr/local/lib/libfreetype.so
-L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib /usr/local/lib/libpng12.so -lz -lart_lgpl_2
-lm -R/usr/local/rrdtool-1.2.19/lib -R/usr/local/lib
Undefined first referenced
symbol in file
PyList_New rrdtoolmodule.o
PyArg_ParseTuple rrdtoolmodule.o
PyString_FromString rrdtoolmodule.o
Py_FatalError rrdtoolmodule.o
PyString_Type rrdtoolmodule.o
PyList_Append rrdtoolmodule.o
PyErr_Occurred rrdtoolmodule.o
PyErr_SetString rrdtoolmodule.o
PyDict_SetItemString rrdtoolmodule.o
PyErr_Format rrdtoolmodule.o
PyMem_Malloc rrdtoolmodule.o
PyInt_FromLong rrdtoolmodule.o
PyTuple_New rrdtoolmodule.o
PyTuple_Size rrdtoolmodule.o
PyModule_GetDict rrdtoolmodule.o
PyExc_TypeError rrdtoolmodule.o
PyType_IsSubtype rrdtoolmodule.o
PyMem_Free rrdtoolmodule.o
PyFloat_FromDouble rrdtoolmodule.o
Py_InitModule4 rrdtoolmodule.o
_Py_NoneStruct rrdtoolmodule.o
PyErr_NewException rrdtoolmodule.o
PyDict_New rrdtoolmodule.o
ld: fatal: Symbol referencing errors. No output written to
.libs/rrdtoolmodule.so
collect2: ld returned 1 exit status
*** Error code 1
It seems like a linking issue. I don't know if it's related to this ticket:
http://oss.oetiker.ch/rrdtool-trac/ticket/71
I am using the following packages from sunfreeware.com:
freetype-2.3.1-sol9-sparc-local
libiconv-1.11-sol9-sparc-local
python-2.5-sol9-sparc-local
gcc-3.4.6-sol9-sparc-local
libpng-1.2.16-sol9-sparc-local
zlib-1.2.3-sol9-sparc-local
I am using this configure:
CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0
-I/usr/local/include/freetype2" ./configure --prefix=/usr/local/rrdtool-1.2.19
Hope someone can help.
Sven Esbjerg
More information about the rrd-users
mailing list