0.9.3 on OpenBSD 4.8

Nuno Magalhães nunomagalhaes at eu.ipp.pt
Mon Jan 3 23:06:37 MSK 2011


I'm trying to compile from source but am running into a few difficulties.

I first installed from the package manager, which gave me 0.7.3 (and
created user, group and what not).

0.1) Then somehow the .configure line confused the shell, so i used
one single line instead of the lines bellow:

./configure \
--sbin-path=/usr/local/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/www/logs/nginxerror.log \
--http-log-path=/var/www/logs/nginxaccess.log \
--user=_nginx \
--group=_nginx \
--with-cpu-opt=amd64 \
--http-client-body-temp-path=/var/nginx/tmp/body \
--http-proxy-temp-path=/var/nginx/tmp/proxy \
--http-fastcgi-temp-path=/var/nginx/tmp/fastcgi \
--with-debug \
--without-http_empty_gif_module \
--without-http_geo_module \
--without-http_map_module \
--without-http_memcached_module \
--without-http_referer_module \
--without-http_scgi_module \
--without-http_split_clients_module \
--without-http_ssi_module \
--without-http_upstream_ip_hash_module \
--without-http_userid_module \
--without-http_uwsgi_module \
--with-http_ssl_module \

...plus third-party modules:

Accept Language - 2010-12-29

Auto Lib - 2010-12-29

Chunkin - 0.21

Form Input - 0.06

Headers More - 0.13-12

Log Request Speed - 2010-12-29

Upload - 2.2.0

...with the appropriate --add-module=/path/to/module \ lines. The result being:

Configuration summary
  + PCRE library is not used
  + using OpenSSL library: /usr
  + using md5 library: /usr
  + using sha1 library: /usr
  + using zlib library: /usr

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/sbin/nginx"
  nginx configuration prefix: "/etc/nginx"
  nginx configuration file: "/etc/nginx/nginx.conf"
  nginx pid file: "/var/run/nginx.pid"
  nginx error log file: "/var/www/logs/nginxerror.log"
  nginx http access log file: "/var/www/logs/nginxaccess.log"
  nginx http client request body temporary files: "/var/nginx/tmp/body"
  nginx http proxy temporary files: "/var/nginx/tmp/proxy"
  nginx http fastcgi temporary files: "/var/nginx/tmp/fastcgi"

0.2) How come "PCRE library is not used"?

1) When issuing make for the first time i got these errors with the
Form Input module:

/path/to/ngx_http_form_input_module.c:4:17: error: ndk.h: No such file
or directory
/path/to/ngx_http_form_input_module.c: In function
/path/to/ngx_http_form_input_module.c:310: error: 'ndk_set_var_t'
undeclared (first use in this function)
/path/to/ngx_http_form_input_module.c:310: error: (Each undeclared
identifier is reported only once
/path/to/ngx_http_form_input_module.c:310: error: for each function it
appears in.)
/path/to/ngx_http_form_input_module.c:310: error: expected ';' before 'filter'
/path/to/ngx_http_form_input_module.c:316: error: 'filter' undeclared
(first use in this function)
/path/to/ngx_http_form_input_module.c:316: error:
'NDK_SET_VAR_MULTI_VALUE' undeclared (first use in this function)
cc1: warnings being treated as errors
/path/to/ngx_http_form_input_module.c:342: warning: implicit
declaration of function 'ndk_set_var_multi_value_core'
/path/to/ngx_http_form_input_module.c:342: warning: return makes
pointer from integer without a cast
*** Error code 1

Stop in /root/nginx/nginx-0.9.3 (line 1002 of objs/Makefile).
*** Error code 1

Am i missing some libraries?

2) After removing the appropriate --add-module line, doing .configure
and make again, i got another error:

cd /usr  && make CFLAGS="-O2 -fomit-frame-pointer -pipe "  CC="gcc"
MD5_ASM_OBJ= clean libmd5.a
make: don't know how to make clean. Stop in /usr.
*** Error code 2

This one lost me. Are there any technicalities with OpenBSD's make or
am i borking it somewhere?

Mars 2 Stay!

More information about the nginx mailing list