[xymon] Trying to compile xymon-client on CentOS 5.5 64 bit fails

TJ Yang tjyang2001 at gmail.com
Tue Jul 13 14:41:17 CEST 2010


On Tue, Jul 13, 2010 at 7:22 AM, Carl Melgaard <Carl.Melgaard at stab.rm.dk> wrote:
> Hi,
>
>
>
> I was trying to compile the recent 4.4.0-trunk into a working CentOS 5.5
> 64bit client, but fails to do so:
>
>
>
> [melgaard at scamhq trunk]$ make
>
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include -DCLIENTONLY=1"
> LDFLAGS="" OSDEF="-DLINUX" RPATHOPT="-Wl,--rpath," PCREINCDIR="" SSLFLAGS=""
> SSLINCDIR="" SSLLIBS="" ZLIBINCDIR="-I/usr/include" HOBBITZLIB="-L/usr/lib
> -lz" NETLIBS="" BBTOPDIR="/home/xymon" BBLOGDIR="" BBHOSTNAME=""
> BBHOSTIP="xxx" BBHOSTOS="" LOCALCLIENT="no" make -C lib client
>
> make[1]: Entering directory `/home/melgaard/download/trunk/lib'
>
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/home/melgaard/download/trunk/include
> -DCLIENTONLY=1 -I. -I../include   -c -o sendmsg.o sendmsg.c
>
> sendmsg.c:91: error: âTALK_SSLWRITE_RECEIVEâ undeclared here (not in a
> function)
>
> make[1]: *** [sendmsg.o] Error 1
>
> make[1]: Leaving directory `/home/melgaard/download/trunk/lib'
>
> make: *** [lib-client] Error 2
>
>
>
> Anyone had luck in compiling this?

Yes.

I did a quick hack by enabling openssl flag and adding openssl library linking.

tjyang at f13 trunk]$ grep OPENSSL include/config.h
#define HAVE_OPENSSL  1
[tjyang at f13 trunk]$ grep HOBBITZLIB   Makefile
HOBBITZLIB = -L/usr/lib -lz -L/usr/lib -lssl
[tjyang at f13 trunk]$

BUT, we should really wait for Henrik to have this openssl thing
configured in Xymon build system.

tj
>
>
> /melgaard
>
>



-- 
T.J. Yang



More information about the Xymon mailing list