monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build form source v.5.2.5 Debian Testing-fail


From: Martin Lambev
Subject: Build form source v.5.2.5 Debian Testing-fail
Date: Thu, 12 May 2011 15:52:01 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Thunderbird/3.1.7

Hello guys,

I having trouble compiling mont 5.2.5 form source for my Debian box
Here is the end part of ./configure
checking pid file location... /var/run
checking for large files support... enabled
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for PAM support... enabled
checking for pam_start in -lpam... yes
checking for static SSL support... disabled
checking for SSL support... enabled
checking for SSL include directory... /usr/include
checking for SSL library directory... /usr/lib
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating config.h

monit has been configured with the following options:
                Architecture: LINUX
                 PAM support: enabled
                 SSL support: enabled
       SSL include directory: /usr/include
       SSL library directory: /usr/lib
         large files support: enabled
              Compiler flags: -g -O2 -Wall -D _REENTRANT -I/usr/include
                Linker flags: -lpam -lpthread -lcrypt -lresolv -lnsl  -L/usr/lib -lssl -lcrypto
           pid file location: /var/run


I did installed libssl-dev flex, but when I do make it comes up with:
ssl.o: In function `new_ssl_connection':
/home/mven/Downloads/monit-5.2.5/ssl.c:645: undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make: *** [monit] Error 1


I found also this, and have no idea what
FTBFS means, but because that was the only thing that I found about this I applied  the ssl.pach, but now is even worse...
I apply path this way:
$ patch -p1 -b -i ssl.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: ssl.c
|===================================================================
|--- ssl.c    (revision 321)
|+++ ssl.c    (revision 364)
--------------------------
File to patch: ssl.c
patching file ssl.c


after appling the patch make:
flex -i l.l
gcc -c -DLINUX -DSYSCONFDIR="\"/usr/local/etc\"" -I. -I./device -I./http -I./process -I./protocols -g -O2 -Wall -D _REENTRANT -I/usr/include  ssl.c -o ssl.o
ssl.c: In function ‘init_ssl_server’:
ssl.c:323: warning: assignment discards qualifiers from pointer target type
ssl.c: In function ‘new_ssl_connection’:
ssl.c:630: warning: assignment discards qualifiers from pointer target type
ssl.c:655: warning: assignment discards qualifiers from pointer target type
ssl.c:659: warning: assignment discards qualifiers from pointer target type
gcc -c -DLINUX -DSYSCONFDIR="\"/usr/local/etc\"" -I. -I./device -I./http -I./process -I./protocols -g -O2 -Wall -D _REENTRANT -I/usr/include  lex.yy.c -o lex.yy.o
lex.yy.c:4818: warning: ‘input’ defined but not used
gcc -rdynamic alert.o collector.o control.o daemonize.o env.o event.o file.o gc.o http.o log.o md5.o monitor.o net.o process.o sendmail.o sha.o signal.o socket.o spawn.o ssl.o state.o status.o util.o validate.o xmalloc.o xml.o device/device_common.o http/base64.o http/cervlet.o http/engine.o http/processor.o process/process_common.o protocols/apache_status.o protocols/clamav.o protocols/default.o protocols/dns.o protocols/dwp.o protocols/ftp.o protocols/generic.o protocols/gps.o protocols/http.o protocols/imap.o protocols/ldap2.o protocols/ldap3.o protocols/lmtp.o protocols/memcache.o protocols/mysql.o protocols/nntp.o protocols/ntp3.o protocols/pgsql.o protocols/pop.o protocols/postfix_policy.o protocols/protocol.o protocols/radius.o protocols/rdate.o protocols/rsync.o protocols/sip.o protocols/smtp.o protocols/ssh.o protocols/tns.o device/sysdep_LINUX.o process/sysdep_LINUX.o y.tab.o lex.yy.o  -lfl -lpam -lpthread -lcrypt -lresolv -lnsl  -L/usr/lib -lssl -lcrypto -o monit


How to compile it properly?

Best regards,

Martin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]