Unable to build from source using manual ssl-libs in /usr/local/ssl
I need to recompile monit on older system. There is a manual installation of openssl in /usr/local/ssl. This has been refreshed to openssl-1.0.2s recently to make shure the monit compile error has nothing to do with wrong version.
my compile procedure (I'm using the following as bash-script):
_ssl=/usr/local/ssl
./configure \
--enable-optimized \
--with-ssl-static=DIR=${_ssl} \
--with-ssl-dir=${_ssl} \
--with-ssl-lib-dir=${_ssl}/lib \
--with-ssl-incl-dir=${_ssl}/include \
&& \
make
Doesn't make any difference which of the latest release I try. I was trying from git release-tag 5.7 to 5.9 with no success always failing:
make failure:
y.tab.c:(.text+0x7a43): undefined reference to `servicelist_conf'
/tmp/ccQuKWJ1.o: In function `addservice.part.4':
y.tab.c:(.text.unlikely+0x13): undefined reference to `LogCritical'
/tmp/ccQuKWJ1.o: In function `check_hostname.part.19':
y.tab.c:(.text.unlikely+0x2f): undefined reference to `LogCritical'
collect2: error: ld returned 1 exit status
make[2]: *** [src/y.tab.o] Error 1
make[2]: Leaving directory `/root/packages/monit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/packages/monit'
make: *** [all] Error 2
Comments (3)
-
repo owner -
@Tildeslash --with-ssl-dir works only with the OS default SSL headers.
On Centos 5.11 I have to compile monit 5.26: I build openssl-1.0.2r and to succesfully build monit I use
echo “don’t use old SSL headers (openssl 0.9.8)”
yum erase openssl-devel
export LDFLAGS="-Wl,-rpath=/usr/local/ssl/lib"
export LD_LIBRARY_PATH="/usr/local/ssl/lib/:$LD_LIBRARY_PATH"
./configure --with-ssl-dir=/usr/local/ssl
-
repo owner - changed status to closed
- Log in to comment
the following configure should be sufficient:
./configure --with-ssl-dir=/usr/local/ssl