zm requires openssl/md5.h

Support and queries relating to all previous versions of ZoneMinder
Locked
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

zm requires openssl/md5.h

Post 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?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This has definately come up before. Can you check where you have the md5.h file installed?
Phil
phaidon
Posts: 6
Joined: Tue Feb 21, 2006 9:41 pm

Post by phaidon »

hi,

try to install "libssl-dev"

apt-get install libssl-dev
mnmis
Posts: 21
Joined: Tue Oct 25, 2005 5:41 pm

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

thanks for the info
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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!
Phil
mnmis
Posts: 21
Joined: Tue Oct 25, 2005 5:41 pm

Post by mnmis »

I didn't edit the configure.in file, it was the configure file.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post 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.
User avatar
scottp
Posts: 4
Joined: Thu Apr 27, 2006 9:52 pm
Location: North East Pennsylvania, USA

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
User avatar
scottp
Posts: 4
Joined: Thu Apr 27, 2006 9:52 pm
Location: North East Pennsylvania, USA

Post 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. */
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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"
Phil
User avatar
scottp
Posts: 4
Joined: Thu Apr 27, 2006 9:52 pm
Location: North East Pennsylvania, USA

Post 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.
Five Star Associates, Inc. www.fivestarassoc.com
NEPRA www.nepra.com
User avatar
scottp
Posts: 4
Joined: Thu Apr 27, 2006 9:52 pm
Location: North East Pennsylvania, USA

Post 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.
Five Star Associates, Inc. www.fivestarassoc.com
NEPRA www.nepra.com
Locked