Page 1 of 1
zm requires openssl/md5.h
Posted: Sat Feb 11, 2006 8:58 pm
by bhomass
I am installing 1.22.0 for the first time. I already have 1.21.3 running.
for configure (on debian) I have
./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=www-data --with-webgroup=www-data
and I ended up with error
zm requires openssl/md5.h
I can not find any match to this with a search on zoneminder forum. openssl is already installed on my system.
has someone seen this before?
Posted: Tue Feb 21, 2006 5:16 pm
by zoneminder
This has definately come up before. Can you check where you have the md5.h file installed?
Posted: Tue Feb 21, 2006 10:32 pm
by phaidon
hi,
try to install "libssl-dev"
apt-get install libssl-dev
Posted: Sat Mar 18, 2006 1:17 am
by mnmis
I fixed this by copying the MD5 section out of the zm-1.21.4 configure script and replacing it in the 1.22.0 configure script.
After that, I could compile just fine.
Posted: Sat Mar 18, 2006 1:21 am
by jameswilson
thanks for the info
Posted: Sat Mar 18, 2006 6:56 pm
by zoneminder
mnmis wrote:I fixed this by copying the MD5 section out of the zm-1.21.4 configure script and replacing it in the 1.22.0 configure script.
After that, I could compile just fine.
This confuses me somewhat because the line in configure.in is identical in both versions!
Posted: Sun Mar 19, 2006 7:50 am
by mnmis
I didn't edit the configure.in file, it was the configure file.
Posted: Mon Mar 20, 2006 5:15 pm
by zoneminder
Even stranger. I guess it may have something to do with the fact that I had to rebuild my development machine with FC4 when it originally had FC2 on it so maybe the newer autoconf does something different but I don't really know what.
Posted: Wed Apr 05, 2006 2:07 pm
by ynn
can you please show me in details what did you change in configure file, because i tried to take a look at it and i din't find anything in zm-1.21.4 that can be copied over to zm1.22 configure file.
thanks.
Posted: Thu Apr 27, 2006 10:13 pm
by scottp
I have the same MD5 problem here.
I just installed openssl 0.9.8a today from source tar.
It installed md5.h into /usr/local/ssl/include/openssl/md5.h
I tried zm 1.22.0 and then 1.22.1 . Both fail during ./configure with ...
- checking whether MD5 is declared... no
configure: error: zm requires openssl/md5.h
I hope we can get this resolved.
My system is.
Mandrake LE 2005 with 2.6.11-6mdk kernel.
Scottp
Posted: Thu Apr 27, 2006 10:44 pm
by zoneminder
You should have a config.log file created by configure. Can you post the part in it where it checks for md5.h as I am curious what is it that it cannot find. I do not have access to a system where this test fails so have to guess at what the cuase may be.
Posted: Fri Apr 28, 2006 2:03 pm
by scottp
This is from config.log from ver 1.22.1
- configure:5364: $? = 0
configure:5367: test -s conftest.o
configure:5370: $? = 0
configure:5381: result: yes
configure:5399: checking whether MD5 is declared
configure:5425: g++ -c -g -O2 conftest.cc >&5
conftest.cc:32:25: openssl/md5.h: No such file or directory
conftest.cc: In function `int main()':
conftest.cc:38: error: `MD5' undeclared (first use this function)
conftest.cc:38: error: (Each undeclared identifier is reported only once for each function it appears in.)
configure:5431: $? = 1
configure: failed program was:
| /* confdefs.h. */
This is from 1.22.0
- configure:5005: $? = 0
configure:5008: test -s conftest.o
configure:5011: $? = 0
configure:5022: result: yes
configure:5040: checking whether MD5 is declared
configure:5065: g++ -c -g -O2 conftest.cc >&5
conftest.cc:28:25: openssl/md5.h: No such file or directory
conftest.cc: In function `int main()':
conftest.cc:34: error: `MD5' undeclared (first use this function)
conftest.cc:34: error: (Each undeclared identifier is reported only once for each function it appears in.)
configure:5071: $? = 1
configure: failed program was:
| /* confdefs.h. */
Posted: Fri Apr 28, 2006 3:57 pm
by zoneminder
Ah, this is something different. You have the header but in a rather odd place. Does it work if you pass CPPFLAGS directly into configure (do configure --help) for details, e.g. ./configure <your options> CPPFLAGS="/usr/local/ssl/include"
Posted: Fri Apr 28, 2006 4:36 pm
by scottp
No it stops early on. I'm using ..
Code: Select all
./configure --with-webdir=<my web dir> --with-cgidir=<my cgi-bin dir> CPPFLAGS="/usr/local/ssl/include"
and it now stops at . . .
- checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
config.log says . . .
- gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
configure:2383: $? = 0
configure:2385: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2388: $? = 1
configure:2411: checking for C compiler default output file name
configure:2414: gcc /usr/local/ssl/include -L/usr/lib -L/usr/lib/mysql conftest.c >&5
/usr/local/ssl/include: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure:2417: $? = 1
configure: failed program was:
| /* confdefs.h. */
I also tried CPPFLAGS="/usr/local/ssl/include/openssl" with the same results.
Posted: Fri Apr 28, 2006 4:50 pm
by scottp
Ahhh, We forgot -I.
I needed to use
Code: Select all
CPPFLAGS="-I/usr/local/ssl/include"
Now it reports...
- checking whether MD5 is declared... yes
And it goes a bit further and stops when it gets to libmysqlclient
Thanks for your help. I'll keep working on it.