Trunk can't be compiled atm.

Igor Sysoev igor at sysoev.ru
Wed Mar 21 06:39:16 UTC 2012


On Wed, Mar 21, 2012 at 07:16:27PM +1300, Ryan Brown wrote:
> Unable to compile nginx trunk..
> 
> gcc-4.6.1-9 (Ubuntu)
> ./configure --with-openssl=/root/openssl/openssl-dev/openssl
> --with-cpu-opt=pentium4 --with-http_gzip_static_module
> --with-http_ssl_module --with-ipv6 --without-mail_pop3_module
> --without-mail_imap_module --without-mail_smtp_module
> --without-http_charset_module --without-http_ssi_module
> --without-http_userid_module --without-http_autoindex_module
> --without-http_rewrite_module --with-pcre --with-cc-opt='-O2 -g
> -march=i386 -mtune=i686'

> objs/src/core/ngx_resolver.o: In function `ngx_udp_connect':
> /root/trunk/src/core/ngx_resolver.c:2214: undefined reference to
> `__sync_fetch_and_add_4'
> objs/src/core/ngx_file.o: In function `ngx_next_temp_number':
> /root/trunk/src/core/ngx_file.c:232: undefined reference to
> `__sync_fetch_and_add_4'
> objs/src/core/ngx_times.o: In function `ngx_time_sigsafe_update':
> /root/trunk/src/core/ngx_times.c:193: undefined reference to
> `__sync_bool_compare_and_swap_4'

i386 CPU does not support atomic operations.
The minimum level is i486. Do you really need "-march=i386" ?


-- 
Igor Sysoev



More information about the nginx mailing list