Ticket #105 (closed defect: wontfix)
RRDtool 1.2.23 build problem on AIX
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | misc | Version: | 1.2.23 |
| Keywords: | AIX build | Cc: |
Description
Build rrdtool-1.2.23 on AIX 5L (5.2 and 5.3) ============================================
C/C++ Compiler is xlC/C++ V8
env vars set:
export BUILD_DIR=/daten/source/rrdtool-1.2.23 export INSTALL_DIR=/usr/local/rrdtool-1.2.23 export CC=cc_r export PERLCC=$CC export CXX=xlC_r export LIBS=-lm
./configure
The build works find with two exceptions:
rrdcgi and the Perl part:
If I try to link rrdcgi against the librrd.a I will get the following error. If I link against librrd_th.a the link finishes without a problem. The same thing is true for the Perl library.
(ld): halt 4 (ld): lrgpage 0 (ld): savename .libs/rrdcgi (ld): filelist 12 2 (ld): i /lib/crt0.o (ld): i rrd_cgi.o (ld): lib /daten/source/rrdtool-1.2.23/src/.libs/librrd.a (ld): lib /opt/freeware/lib/libfreetype.a (ld): lib /opt/freeware/lib/libpng.a (ld): lib /opt/freeware/lib/libz.a (ld): lib /usr/local/lib/libart_lgpl_2.a (ld): lib /usr/lib/libm.a (ld): lib /usr/lib/libg.a (ld): lib /usr/lib/libxlopt.a (ld): lib /usr/lib/libpthreads.a (ld): lib /usr/lib/threads/libc.a LIBRARY: Shared object librrd.a[librrd.so.2]: 137 symbols imported. LIBRARY: Shared object libfreetype.a[libfreetype.so.6]: 272 symbols imported. LIBRARY: Shared object libpng.a[libpng.so.3]: 351 symbols imported. LIBRARY: Shared object libz.a[libz.so.1]: 65 symbols imported. LIBRARY: Shared object libart_lgpl_2.a[libart_lgpl_2.so.2]: 123 symbols imported. LIBRARY: Shared object libpthreads.a[shr_comm.o]: 159 symbols imported. LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 129 symbols imported. LIBRARY: Shared object libc.a[shr.o]: 2563 symbols imported. LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported. LIBRARY: Shared object libc.a[posix_aio.o]: 17 symbols imported. LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported. LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported. LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported. LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported. FILELIST: Number of previously inserted files processed: 12 (ld): exports /usr/lib/libg.exp EXPORTS: Symbols exported: 4 (ld): resolve RESOLVE: 185 of 5582 symbols were kept. (ld): addgl /usr/lib/glink.o ADDGL: Glink code added for 38 symbols. (ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR
Import-File{Shared-object}
RLD: Address Section Rld-type Referencing Symbol
---------------------------------------------------------------------------------------------- .getopt_long [983] ER PR rrd_cgi.c(rrd_cgi.o)
00000054 .text R_RBR [192] .main
.readfile [993] ER PR rrd_cgi.c(rrd_cgi.o)
00000158 .text R_RBR [192] .main 00002c70 .text R_RBR [590] .includefile
.rrd_test_error [995] ER PR rrd_cgi.c(rrd_cgi.o)
00000164 .text R_RBR [192] .main 00002c78 .text R_RBR [590] .includefile 000030b4 .text R_RBR [663] .printtimelast 00003414 .text R_RBR [702] .drawgraph
.rrd_get_error [997] ER PR rrd_cgi.c(rrd_cgi.o)
00000178 .text R_RBR [192] .main 00002c88 .text R_RBR [590] .includefile 00002cac .text R_RBR [590] .includefile 000030c4 .text R_RBR [663] .printtimelast 000030e8 .text R_RBR [663] .printtimelast 00003424 .text R_RBR [702] .drawgraph 00003448 .text R_RBR [702] .drawgraph
.rrd_set_error [1041] ER PR rrd_cgi.c(rrd_cgi.o)
00002348 .text R_RBR [503] .printstrftime 000023ac .text R_RBR [503] .printstrftime 000023f0 .text R_RBR [503] .printstrftime 000024a4 .text R_RBR [503] .printstrftime 000024f4 .text R_RBR [503] .printstrftime
.parsetime [1043] ER PR rrd_cgi.c(rrd_cgi.o)
00002368 .text R_RBR [503] .printstrftime 00002378 .text R_RBR [503] .printstrftime 0000238c .text R_RBR [503] .printstrftime 000023d0 .text R_RBR [503] .printstrftime
.proc_start_end [1045] ER PR rrd_cgi.c(rrd_cgi.o)
00002418 .text R_RBR [503] .printstrftime
.rrd_clear_error [1055] ER PR rrd_cgi.c(rrd_cgi.o)
00002ccc .text R_RBR [590] .includefile 00003108 .text R_RBR [663] .printtimelast 00003468 .text R_RBR [702] .drawgraph
ER: The return code is 8.
With the attached patch patch-rrdtool-1.2.23-AIX-pthread-specific I can successfully build rrdtool 1.2.23 on AIX.
I know that this patch can not be applied against the standart distribution as it will break builds with --disable-pthread set....
Bye
Rainer Tammer




AIX specific patch