Because there is no rpm package for mrtg I tried to compile mrtg-2.17.10.
configure works fine:
cd /tmp/mrtg-2.17.10 && ./configure
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
but make fails:
root@sps:/tmp/mrtg-2.17.10# cd /tmp/mrtg-2.17.10 && make
gcc -mtune=power8 -mcpu=power8 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -Wno-overlength-strings -Wno-implicit-function-declaration -O -I/opt/freeware/include -I/opt/freeware/include/python2.7 -L/opt/freeware/lib -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o
gcc bin/rateup.o -o bin/rateup -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -lgd -lpng -lz -lm
ld: 0711-317 ERROR: Undefined symbol: .gdImageCreate
ld: 0711-317 ERROR: Undefined symbol: .gdImageColorAllocate
ld: 0711-317 ERROR: Undefined symbol: .gdImageInterlace
ld: 0711-317 ERROR: Undefined symbol: .gdImageColorTransparent
ld: 0711-317 ERROR: Undefined symbol: .gdImageLine
ld: 0711-317 ERROR: Undefined symbol: gdFontSmall
ld: 0711-317 ERROR: Undefined symbol: .gdImageString
ld: 0711-317 ERROR: Undefined symbol: .gdImageRectangle
ld: 0711-317 ERROR: Undefined symbol: .gdImageSetStyle
ld: 0711-317 ERROR: Undefined symbol: .gdImageStringUp
ld: 0711-317 ERROR: Undefined symbol: .gdImageSetBrush
ld: 0711-317 ERROR: Undefined symbol: .gdImagePng
ld: 0711-317 ERROR: Undefined symbol: .gdImageDestroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
root@sps:/root# oslevel -s
7200-05-03-2148
root@sps:/root# rpm -q libgd libgd-devel gcc gcc8
libgd-2.2.5-3.ppc
libgd-devel-2.2.5-3.ppc
gcc-8-1.ppc
gcc8-8.3.0-6.ppc
root@sps:/root# more .profile
export CONFIG_SHELL=/opt/freeware/bin/bash
export CONFIG_ENV_ARGS=/opt/freeware/bin/bash
export CC=gcc
export CFLAGS="\
-mtune=power8 -mcpu=power8 \
-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 \
-Wno-overlength-strings -Wno-implicit-function-declaration \
-O -I/opt/freeware/include -I/opt/freeware/include/python2.7 \
-L/opt/freeware/lib"
export LD=ld
export LDFLAGS="\
-L/opt/freeware/lib64 -L/opt/freeware/lib \
-Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib \
-Wl,-bmaxdata:0x80000000"
Any help would be appreciated.
------------------------------
Dieter Mosbach
------------------------------