Problems with compile of monit 5.14

Issue #231 resolved
Peter Linehan created an issue

I can run configure OK but make fails

./configure

Monit Build Information:

            Architecture: LINUX
   SSL include directory: /usr/include
   SSL library directory: /lib
          Compiler flags: -Wno-pointer-sign -g -O2 -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -D _REENTRANT -I/usr/include -I/usr/include
            Linker flags: -lpam -lpthread -lcrypt -lresolv -lnsl  -L/lib -lssl -lcrypto -L/lib
       pid file location: /var/run
       Install directory: /usr/local

+------------------------------------------------------------+ | License: | | This is Open Source Software and use is subject to the GNU | | AFFERO GENERAL PUBLIC LICENSE version 3, available in this | | distribution in the file COPYING. | | | | By continuing this installation process, you are bound by | | the terms of this license agreement. If you do not agree | | with the terms of this license, you must abort the | | installation process at this point. | +------------------------------------------------------------+ | Monit has been configured with the following options: | | | | PAM support: ENABLED | | SSL support: ENABLED | | Large files support: ENABLED | | Optimized: DISABLED | +------------------------------------------------------------+

and make

gcc -DHAVE_CONFIG_H -I. -I./src -DLINUX -DSYSCONFDIR="\"/usr/local/etc\"" -I./src -I./src/device -I./src/http -I./src/process -I./src/protocols -I./src/ssl -I./libmonit/src -Wno-pointer-sign -g -O2 -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -D _REENTRANT -I/usr/include -I/usr/include -c -o src/ssl/Ssl.o src/ssl/Ssl.c src/ssl/Ssl.c: In function ‘Ssl_new’: src/ssl/Ssl.c:298: warning: passing argument 1 of ‘SSL_CTX_new’ discards qualifiers from pointer target type src/ssl/Ssl.c: In function ‘SslServer_new’: src/ssl/Ssl.c:507: warning: passing argument 1 of ‘SSL_CTX_new’ discards qualifiers from pointer target type src/ssl/Ssl.c:526: error: ‘EC_KEY’ undeclared (first use in this function) src/ssl/Ssl.c:526: error: (Each undeclared identifier is reported only once src/ssl/Ssl.c:526: error: for each function it appears in.) src/ssl/Ssl.c:526: error: ‘key’ undeclared (first use in this function) src/ssl/Ssl.c:526: warning: implicit declaration of function ‘EC_KEY_new_by_curve_name’ src/ssl/Ssl.c:529: warning: implicit declaration of function ‘EC_KEY_free’ make[2]: [src/ssl/Ssl.o] Error 1 make[2]: Leaving directory /usr/local/monit-5.14' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/usr/local/monit-5.14' make: [all] Error 2 root@DEDC-MONIT(/usr/local/monit-5.14) $

Comments (5)

  1. Tildeslash repo owner

    Ilya is correct in that your OpenSSL library installation should be upgraded. If this is not possible you can alternatively configure and compile Monit without SSL support, ./configure --without-ssl

  2. Log in to comment