[rrd-users] Compiling RRD 1.2.23 AIX 5.3 with xlC v8 problems.
ariel mastracchio
ari197516 at yahoo.com
Thu Sep 20 14:17:19 CEST 2007
Hi,
try downgrade to rrdtool-1.2.15.
i have it working with aix 5.2 with:
gcc
libpng-1.2.8-config
ibart_lgpl-2.3.17
freetype-2.1.9
zlib-1.2.2
gmake
execute configure with command line:
(replace $(PREFIXxxxx) with your correct path)
LIBS="-lz -lart_lgpl_2 -lfreetype"
CPPFLAGS="-I$(PREFIX_FREETYPE)/include -I$(PREFI
X_FREETYPE)/include/freetype2
-I$(PREFIX_LIBPNG)/include
-I$(PREFIX_LIBART)/include/libart-2.0 -I$
(PREFIX_ZLIB)/include"
LDFLAGS="-L$(PREFIX_FREETYPE)/lib
-L$(PREFIX_LIBART)/lib -L$(PREFIX_ZLIB)/l
ib -L$(PREFIX_LIBPNG)/lib" sh configure
--prefix=$(PREFIX_RRDTOOLS)
make
make install
make site-perl-install
try gnu make!!
the perl module RRD.pm dont work in my aix (problem
with time) so i change rrdupdate rrdcreate function
with "system('rrdtool update or create xxxxx" for
example.
hugs
--- M.P.Leeuwen01 at rn.rabobank.nl wrote:
> Hello,
>
> I'm trying to get RRD 1.2.23 compiled under AIX 5.3.
>
> I've followed the instructions in the
> doc/rrdbuilt.txt
>
> Using the seperate build directory, installing the
> zLib (1.2.3), Libpng
> 1.2.20, Freetype 2.3.5, libart-lgpl 2.3.17.
>
> After that I run the configure on rrd with the
> options: --disable-python
> --disable-tcl --disable-ruby.
>
> The configure runs fine but when I start the make,
> during the
> compilation it crashes.
>
> When I configure with the above and --enable-static
> --disable-phtread it
> stops on the rrdcgi.c
>
> rrd_cgi.c: In function 'main':
> rrd_cgi.c:422: warning: format '%d' expects type
> 'int', but argument 2
> has type 'size_t'
> rrd_cgi.c: In function 'rrdcgiReadVariables':
> rrd_cgi.c:1290: warning: comparison between signed
> and unsigned
> /bin/sh ../libtool --tag=CC --mode=link gcc
> -O3
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic
> -Wshadow -Wpointer-arith
> -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations
> -Wnested-externs -Winline -W -DPIC
> -L/opt/rrd/data/source/buildir/lb/lib -o rrdcgi
> rrd_cgi.o librrd.la
> gcc -O3 -fno-strict-aliasing -Wall -std=gnu99
> -pedantic -Wshadow
> -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations
> -Wnested-externs -Winline -W -DPIC -o .libs/rrdcgi
> rrd_cgi.o
> -L/opt/rrd/data/source/buildir/lb/lib -L./.libs
> -lrrd -lz -lm
>
-Wl,-blibpath:/usr/local/rrdtool/lib:/opt/rrd/data/source/buildir/lb/lib
>
:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gc
>
c/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib
> ld: 0711-317 ERROR: Undefined symbol: .rrd_set_error
> ld: 0711-317 ERROR: Undefined symbol: .parsetime
> ld: 0711-317 ERROR: Undefined symbol:
> .proc_start_end
> ld: 0711-317 ERROR: Undefined symbol: .readfile
> ld: 0711-317 ERROR: Undefined symbol:
> .rrd_test_error
> ld: 0711-317 ERROR: Undefined symbol: .rrd_get_error
> ld: 0711-317 ERROR: Undefined symbol:
> .rrd_clear_error
> ld: 0711-317 ERROR: Undefined symbol: .getopt_long
> ld: 0711-345 Use the -bloadmap or -bnoquiet option
> to obtain more
> information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command
> is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command
> is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command
> is 2.
>
>
> I disabled the rrdcgi with the option
> --disable-rrdcgi
>
> After that it stops at:
>
> cd perl-shared && make
> cp RRDs.pm blib/lib/RRDs.pm
> cp ntmake.pl blib/lib/ntmake.pl
> /usr/local/bin/perl -e 'use
> ExtUtils::Mksymlists;
> Mksymlists("NAME" => "RRDs", "DL_FUNCS" => { },
> "FUNCLIST" => [],
> "DL_VARS" => []);'
> /usr/local/bin/perl
> /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp
> -typemap /usr/opt/perl5/lib/5.8.2/ExtUtils/typemap
> RRDs.xs > RRDs.xsc
> && mv RRDs.xsc RRDs.c
> cc_r -c -I../../src -D_ALL_SOURCE
> -D_ANSI_C_SOURCE
> -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
> -DUSE_NATIVE_DLOPEN
> -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
> -O
> -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\"
> "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"
> -DPERLPATCHLEVEL=8
> RRDs.c
> Running Mkbootstrap for RRDs ()
> chmod 644 RRDs.bs
> rm -f blib/arch/auto/RRDs/RRDs.so
> LD_RUN_PATH="" ld -bhalt:4 -bM:SRE
>
-bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
> -bE:RRDs.exp
> -bnoentry -lpthreads -lc_r RRDs.o -L../../src/.libs/
> -Wl,-blibpath:/usr/local/rrdtool/lib -lrrd -lm -o
> blib/arch/auto/RRDs/RRDs.so
> ld: 0706-012 The -W flag is not recognized.
> ld: 0706-006 Cannot find or open library file: -l
> ,-blibpath:/usr/local/rrdtool/lib
> ld:open(): A file or directory in the path
> name does not exist.
> make: 1254-004 The error code from the last command
> is 255
>
> I've noticed that the -W option is parsed to LD. (At
> Bindings/perl-shared)
> When I remove the -w option from the Makefile the
> compilation continues.
> BUT:
>
> Making all in bindings
> cd perl-piped && make
> cd perl-shared && make
> cc_r -c -I../../src -D_ALL_SOURCE
> -D_ANSI_C_SOURCE
> -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
> -DUSE_NATIVE_DLOPEN
> -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
> -O
> -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\"
> "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"
> -DPERLPATCHLEVEL=8
> RRDs.c
> Running Mkbootstrap for RRDs ()
> chmod 644 RRDs.bs
> rm -f blib/arch/auto/RRDs/RRDs.so
> LD_RUN_PATH="" ld -bhalt:4 -bM:SRE
>
-bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
> -bE:RRDs.exp
> -bnoentry -lpthreads -lc_r RRDs.o -L../../src/.libs/
> -l,-blibpath:/usr/local/rrdtool/lib -lrrd -lm -o
> blib/arch/auto/RRDs/RRDs.so
> ld: 0706-006 Cannot find or open library file: -l
> ,-blibpath:/usr/local/rrdtool/lib
> ld:open(): A file or directory in the path
> name does not exist.
> make: 1254-004 The error code from the last command
> is 255.
>
>
> Stops at the perl-shared.
> I tried it with: --disable-python --disable-tcl
> --disable-ruby
> --disable-rrdcgi also.
> Then it stops, also at perl-shared and perl-piped.
>
>
> After searching the google I found some extra
> settings:
>
> export CC=/usr/vac/bin/cc
> export PERLCC=$CC
>
> I deleted the old source dir and unpacked the
> rrdtool.tar.
>
>
> Run the ./configure with the same options:
> --disable-python
> --disable-tcl --disable-ruby
> But this time left the --disable-rrdcgi
> --enable-static
> --disable-phtread out.
>
> /usr/vac/bin/cc -O3 -DPIC -qfloat=nofold -o
> rrdupdate rrdupdate.o
> -L/opt/rrd/data/source/buildir/lb/lib
> ./.libs/librrdupd.a -lm
> source='rrd_cgi.c' object='rrd_cgi.o'
> libtool=no DEPDIR=.deps
> depmode=aix /bin/sh ../depcomp /usr/vac/bin/cc
> -DHAVE_CONFIG_H -I. -I.
> -I..
>
-DRRD_DEFAULT_FONT=\"/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMo
> no-Roman.ttf\" -DNUMVERS=1.2023
> -I/opt/rrd/data/source/buildir/lb/include
> -I/opt/rrd/data/source/buildir/lb/include/libart-2.0
> -I/opt/rrd/data/source/buildir/lb/include/freetype2
> -I/opt/rrd/data/source/buildir/lb/include/libpng
> -D_THREAD_SAFE
> -I/usr/include/libart-2.0 -I/usr/include/freetype2
> -O3
=== message truncated ===>
_______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
More information about the rrd-users
mailing list