Compiling errors - 0.7.59

Hello , i got a dedi running fedora core 9
with the development tools bundle installed
and i just cant compile it all the way.

I had it downloaded then uncompressed,ran configure
then make but it couldnt compile it all the way.

Here are the errors

In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory
In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:22: error: expected ג€˜=ג€™, ג€˜,ג€™, ג€˜;ג€™,
ג€˜asmג€™ or ג€˜__attribute__ג€™ before ג€˜ngx_md5_tג€™
src/http/ngx_http_file_cache.c: In function
ג€˜ngx_http_file_cache_create_keyג€™:
src/http/ngx_http_file_cache.c:120: error: ג€˜ngx_md5_tג€™ undeclared
(first use in this function)
src/http/ngx_http_file_cache.c:120: error: (Each undeclared identifier
is reported only once
src/http/ngx_http_file_cache.c:120: error: for each function it appears
in.)
src/http/ngx_http_file_cache.c:120: error: expected ג€˜;ג€™ before
ג€˜md5ג€™
cc1: warnings being treated as errors
src/http/ngx_http_file_cache.c:128: error: implicit declaration of
function ג€˜MD5Initג€™
src/http/ngx_http_file_cache.c:128: error: ג€˜md5ג€™ undeclared (first
use in this function)
src/http/ngx_http_file_cache.c:138: error: implicit declaration of
function ג€˜MD5Updateג€™
src/http/ngx_http_file_cache.c:145: error: implicit declaration of
function ג€˜MD5Finalג€™
make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1

On Tue, May 26, 2009 at 12:23:01PM +0200, Brandon Fisher wrote:

src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory
Could you show your configuration line ?

I attached the configure output,if thats what you were refering to
not sure.

I feel kinda dumb now,i guess you were refering to that specific line
on the ngx_md5.h file

#if (NGX_HAVE_OPENSSL_MD5_H)
#include <openssl/md5.h>
#else
#include <md5.h>
#endif

Hello!

On Tue, May 26, 2009 at 01:14:47PM +0200, Brandon Fisher wrote:

Okay i fixed it,for anyone else having the same problem
just download/compile openssl from http://openssl.org
i already had the fedora openssl package installed
but seems it wasnt good enough

AFAIK you need something like openssl-devel package to compile
nginx, as openssl package have no headers (but binaries only).

Maxim D.

Okay i fixed it,for anyone else having the same problem
just download/compile openssl from http://openssl.org
i already had the fedora openssl package installed
but seems it wasnt good enough

Maxim D. wrote:

AFAIK you need something like openssl-devel package to compile
nginx, as openssl package have no headers (but binaries only).

Maxim D.

Shouldn’t that produce configure error before compiling?

Jim

Brandon Fisher wrote:

I attached the configure output,if thats what you were refering to
not sure.

Attachments:
http://www.ruby-forum.com/attachment/3731/out.txt

I believe he meant you configure command like:

./configure --pid-path=/usr/local/nginx/logs/nginx.pid
–sbin-path=/usr/local/sbin/nginx --with-http_ssl_module
–with-http_stub_status_module --without-mail_pop3_module
–without-mail_imap_module --without-mail_smtp_module --user=nginx
–group=nginx

Jim

On Tue, May 26, 2009 at 08:28:38AM -0400, Jim O. wrote:

AFAIK you need something like openssl-devel package to compile
nginx, as openssl package have no headers (but binaries only).

Maxim D.

Shouldn’t that produce configure error before compiling?

Yes, currently ./configure does not show errors in this case.