Xymon Mailing List Archive search

Problem to compile on AIX 7.1

list Stef Coene
Tue, 20 Oct 2020 13:16:47 +0200
Message-Id: <user-0034ef67f479@xymon.invalid>

Hi,

I compiled the client on AIX years ago and use that binary since then.
These are the notes I wrote down. I think you have to switch from IBM compiler to gcc in file build/Makefile.AIX:
# Compile flags for normal build with gcc
%CC = gcc
CFLAGS = -O -D_REENTRANT $(OSDEF)%ENDCOLOR%

# Compile flags for normal build with IBM compiler
#CC = cc
#CFLAGS = -g -O3 -qstrict -qcpluscmt -D_REENTRANT $(LFSDEF) $(OSDEF)


Stef

On 2020-10-15 14:47, L-M-J wrote:
Hello,

 ?I'm trying to compile Xymon client on AIX 7.1. I installed a couple of RPM files such as :
 ????make_64-4.1-1.aix5.3.ppc.rpm
 ????pcre-7.4-2.aix5.1.ppc.rpm
 ????pcre-devel-7.4-2.aix5.1.ppc.rpm
 ????gcc-8.3.0-2.aix7.1.ppc.rpm
 ????gcc-cpp-8.3.0-2.aix7.1.ppc.rpm
 ????libgcc-8.3.0-2.aix7.1.ppc.rpm
 ????libstdc++7-7.2.0-1.aix7.1.ppc.rpm

 ?I unpacked the xymon in /tmp/xymon-4.3.30

 ?and I try to compile and here is the error :

/tmp/xymon-4.3.30 > gmake
CC="cc" CFLAGS="-g -O3 -D_REENTRANT? -DAIX -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DAIX" RPATHOPT="" PCREINCDIR="" ZLIBINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="" LIBRTDEF="" XYMONTOPDIR="/opt/xymon-monitor" XYMONHOME="/opt/xymon-monitor" XYMONCLIENTHOME=/opt/xymon-monitor XYMONLOGDIR="" XYMONHOSTNAME="" XYMONHOSTIP="10.10.7.25" XYMONHOSTOS="" LOCALCLIENT="no" gmake -C lib client
gmake[1]: Entering directory '/tmp/xymon-4.3.30/lib'
cc -g -O3 -D_REENTRANT? -DAIX -I/tmp/xymon-4.3.30/include -DCLIENTONLY=1 -I../include? -o test-endianness test-endianness.c
cc: error trying to exec 'cc1': execvp: No such file or directory
Makefile:35: recipe for target 'test-endianness' failed
gmake[1]: *** [test-endianness] Error 1
gmake[1]: Leaving directory '/tmp/xymon-4.3.30/lib'
build/Makefile.rules:90: recipe for target 'lib-client' failed
gmake: *** [lib-client] Error 2

 ?Can you help to fix the compilation error or maybe can you share a static AIX client compiled?

 ?Thanks !