[rrd-users] Solaris 10 and RRDtool compiling errors
Carson Gaspar
carson at taltos.org
Fri Aug 31 12:08:02 CEST 2012
On 8/28/12 3:09 AM, Natty wrote:
> I'm trying to compile RRDtool 1.4.7 on Solaris 10.
...
> configure:24212: gcc -o conftest -g -O2 -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow
> -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarat
> ions -Wnested-externs -Winline -Wold-style-definition -W -fPIC
> -DPIC -D_REENTRANT -I/usr/local/include/cairo -L/usr/local/lib
> conftest.c -lcairo -lm -lrt -lsocket -lcairo >&5
> conftest.c:103:1: warning: "TIME_T_IS_32BIT" redefined
> conftest.c:100:1: warning: this is the location of the previous
> definition
> conftest.c: In function `main':
> conftest.c:115: warning: old-style parameter declaration
> *ld: fatal: file /usr/local/lib/libcairo.so: wrong ELF class: ELFCLASS64
> ld: fatal: file /usr/local/lib/libcairo.so: wrong ELF class: ELFCLASS64*
> ld: fatal: File processing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure:24219: $? = 1
...
> any idea what am I missing / doing wrong here?
Not passing "-m64" in your gcc options. The easiest solution is
./configure CC='gcc -m64' [other args]
(or you can rebuild gcc to default to 64-bit, but building gcc is painful)
--
Carson
More information about the rrd-users
mailing list