Ticket #5 (closed defect: fixed)
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option '-shared'
| Reported by: | shige@… | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | RRDtool 1.3 |
| Component: | misc | Version: | 1.2.12 |
| Keywords: | Cc: |
Description
I try to comple rrdtool-1.2.12 on Mac OS X 10.4.3 with Xcode 2.2.
% env CPPFLAGS="-I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2" "LDFLAGS=-L/usr/local/lib" ./configure && make (snip) gcc -g -O2 -fno-common -DPIC -fno-strict-aliasing -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -o .libs/rrdtoolmodule.so -shared rrdtoolmodule.o -L/usr/local/lib ../../src/.libs/librrd.dylib /usr/local/lib/libfreetype.dylib /usr/local/lib/libpng.dylib -lz /usr/local/lib/libart_lgpl_2.dylib -lm powerpc-apple-darwin8-gcc-4.0.0: unrecognized option '-shared' /usr/bin/ld: Undefined symbols: _PyArg_ParseTuple _PyDict_New _PyDict_SetItemString _PyErr_Format _PyErr_NewException _PyErr_Occurred _PyErr_SetString _PyExc_TypeError _PyFloat_FromDouble _PyInt_FromLong _PyList_Append _PyList_New _PyMem_Malloc _PyModule_GetDict _PyObject_Free _PyString_FromString _PyString_Type _PyTuple_New _PyTuple_Size _PyType_IsSubtype _Py_FatalError _Py_InitModule4 __Py_NoneStruct collect2: ld returned 1 exit status make[3]: *** [rrdtoolmodule.so] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2



Run configure with --disable-python it seems that the python setup on the macs has some issues.