Forum: NGINX compiling errors - 0.7.59

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brandon F. (Guest)
on 2009-05-26 14:23
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
Igor S. (Guest)
on 2009-05-26 14:36
(Received via mailing list)
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 ?
Brandon F. (Guest)
on 2009-05-26 14:43
Attachment: out.txt (0 Bytes)
I attached the configure output,if thats what you were refering to
not sure.
Brandon F. (Guest)
on 2009-05-26 14:53
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
Brandon F. (Guest)
on 2009-05-26 15:14
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. (Guest)
on 2009-05-26 16:21
(Received via mailing list)
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.
Jim O. (Guest)
on 2009-05-26 16:35
(Received via mailing list)
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
Jim O. (Guest)
on 2009-05-26 16:35
(Received via mailing list)
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
Igor S. (Guest)
on 2009-05-26 16:48
(Received via mailing list)
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.
This topic is locked and can not be replied to.