# Nginx-0.8.52

**URL:** <https://www.ruby-forum.com/t/nginx-0-8-52/195688>\
**Category:** NGINX\
**Created:** [September 28, 2010, 9:11am UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688 "2010-09-28T09:11:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 9:11am UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/1 "2010-09-28T09:11:27Z")

</div>

Changes with nginx 0.8.52 28 Sep  
2010

```
*) Bugfix: nginx used SSL mode for a listen socket if any listen 

```

option  
was set; the bug had appeared in 0.8.51.

–  
Igor S.  
[http://sysoev.ru/en/](http://sysoev.ru/en/)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 9:45am UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/2 "2010-09-28T09:45:24Z")

</div>

On 09/28/2010 12:10 AM, Igor S. wrote:

> Changes with nginx 0.8.52 28 Sep 2010
> 
> ```
> *) Bugfix: nginx used SSL mode for a listen socket if any listen option
> was set; the bug had appeared in 0.8.51.
> 
> ```

The problem I had with 0.8.51 wasn’t solved with 0.8.52. After upgrading  
I get this message when ever I try to restart nginx:

Starting nginx: Can’t load ‘/usr/lib/perl5/auto/nginx/nginx.so’ for  
module nginx: /usr/lib/perl5/auto/nginx/nginx.so: undefined symbol:  
ngx\_http\_core\_module at /usr/lib/perl5/XSLoader.pm line 70.  
at /usr/lib/perl5/nginx.pm [http://nginx.pm](http://nginx.pm) line 54  
Compilation failed in require.  
BEGIN failed–compilation aborted.  
[alert]: perl\_parse() failed: 255

Though this time it added something about the configuration file test  
failing… I’m using Fedora Core 13 and had no problems with nginx  
0.8.50 . Here’s the Source RPM I made for nginx 0.8.52:  
[http://www.fedtrek.com:81/staff/omega13a/rpms/SRPMS/nginx-0.8.52-1.fc13.omega13a.src.rpm](http://www.fedtrek.com:81/staff/omega13a/rpms/SRPMS/nginx-0.8.52-1.fc13.omega13a.src.rpm)  
(thank god I have apache installed and running on port 81 in case  
something like this happens)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/3 "2010-09-28T19:15:48Z")

</div>

Hello!

On Tue, Sep 28, 2010 at 12:43:55AM -0700, Brandon A. wrote:

> Starting nginx: Can’t load ‘/usr/lib/perl5/auto/nginx/nginx.so’ for  
> module nginx: /usr/lib/perl5/auto/nginx/nginx.so: undefined symbol:  
> ngx\_http\_core\_module at /usr/lib/perl5/XSLoader.pm line 70.  
> at /usr/lib/perl5/nginx.pm [http://nginx.pm](http://nginx.pm) line 54  
> Compilation failed in require.  
> BEGIN failed–compilation aborted.  
> [alert]: perl\_parse() failed: 255

This looks like the problem with embedded perl you have enabled.  
For some reason it wasn’t able to resolve symbol which should be  
defined in nginx itself.

This may either indicate that your perl installation is somewhat  
screwed up (e.g. missed or out-of-sync something like “perl-dev”  
package as it’s common on linux systems) or nginx doesn’t play  
well enough while embedding perl.

Could you please show what “perl -V” and “perl -MExtUtils::Embed -e  
ldopts”  
prints on your system? Showing “nginx -V” output is also good  
idea.

I’m able to reproduce the problem by manually removing -Wl,-E from  
“perl -MExtUtils::Embed -e ldopts” output. Not sure though if  
it’s ok for perl to don’t report it on systems which generally  
need it. Anyway, you may try adding --with-ld-opts=“-Wl,-E” to  
nginx configure to see if it helps.

> Though this time it added something about the configuration file  
> test failing… I’m using Fedora Core 13 and had no problems  
> with nginx 0.8.50 .

Nothing related changed since 0.8.50. Most likely it’s your system  
changes (e.g. perl upgrade) in-between caused the problem.

> Here’s the Source RPM I made for nginx 0.8.52: [http://www.fedtrek.com:81/staff/omega13a/rpms/SRPMS/nginx-0.8.52-1.fc13.omega13a.src.rpm](http://www.fedtrek.com:81/staff/omega13a/rpms/SRPMS/nginx-0.8.52-1.fc13.omega13a.src.rpm)

I’m in doubt if anybody here will/may help you with your srpm.  
Reproducing the problem with normal configure/make by hand is  
always preferred.

Maxim D.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/4 "2010-09-28T20:03:50Z")

</div>

Output of perl -V:

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:  
osname=linux, osvers=2.6.32-44.el6.x86\_64,  
archname=i386-linux-thread-multi  
uname=‘linux [x86-16.phx2.fedoraproject.org](http://x86-16.phx2.fedoraproject.org) 2.6.32-44.el6.x86\_64 #1  
smp wed jul 7 15:47:50 edt 2010 i686 i686 i386 gnulinux ’  
config\_args=’-des -Doptimize=-O2 -g -pipe -Wall  
-Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector  
–param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom  
-fasynchronous-unwind-tables -Dccdlflags=-Wl,–enable-new-dtags  
-DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost  
-Dperladmin=root@localhost -Dcc=gcc -Dcf\_by=Red Hat, Inc. -Dprefix=/usr  
-Dvendorprefix=/usr -Dsiteprefix=/usr/local  
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib/perl5  
-Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5  
-Darchlib=/usr/lib/perl5 -Dvendorarch=/usr/lib/perl5  
-Dinc\_version\_list=5.10.0 -Darchname=i386-linux-thread-multi  
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd\_dosuid  
-Dd\_semctl\_semun -Di\_db -Ui\_ndbm -Di\_gdbm -Di\_shadow -Di\_syslog  
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005  
-Uversiononly -Dpager=/usr/bin/less -isr -Dd\_gethostent\_r\_proto  
-Ud\_endhostent\_r\_proto -Ud\_sethostent\_r\_proto -Ud\_endprotoent\_r\_proto  
-Ud\_setprotoent\_r\_proto -Ud\_endservent\_r\_proto -Ud\_setservent\_r\_proto  
-Dscriptdir=/usr/bin  
-Dotherlibdirs=/usr/local/lib/perl5/site\_perl/5.10.0/i386-linux-thread-multi:/usr/local/lib/perl5/site\_perl/5.10.0:/usr/lib/perl5/vendor\_perl/5.10.0/i386-linux-thread-multi:/usr/lib/perl5/vendor\_perl:/usr/lib/perl5/site\_perl’  
hint=recommended, useposix=true, d\_sigaction=define  
useithreads=define, usemultiplicity=define  
useperlio=define, d\_sfio=undef, uselargefiles=define,  
usesocks=undef  
use64bitint=undef, use64bitall=undef, uselongdouble=undef  
usemymalloc=n, bincompat5005=undef  
Compiler:  
cc=‘gcc’, ccflags =‘-D\_REENTRANT -D\_GNU\_SOURCE -fno-strict-aliasing  
-pipe -fstack-protector -I/usr/local/include -D\_LARGEFILE\_SOURCE  
-D\_FILE\_OFFSET\_BITS=64’,  
optimize=‘-O2 -g -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions  
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom  
-fasynchronous-unwind-tables’,  
cppflags=‘-D\_REENTRANT -D\_GNU\_SOURCE -fno-strict-aliasing -pipe  
-fstack-protector -I/usr/local/include’  
ccversion=‘’, gccversion=‘4.4.4 20100630 (Red Hat 4.4.4-10)’,  
gccosandvers=‘’  
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234  
d\_longlong=define, longlongsize=8, d\_longdbl=define, longdblsize=12  
ivtype=‘long’, ivsize=4, nvtype=‘double’, nvsize=8, Off\_t=‘off\_t’,  
lseeksize=8  
alignbytes=4, prototype=define  
Linker and Libraries:  
ld=‘gcc’, ldflags =’ -fstack-protector -L/usr/local/lib’  
libpth=/usr/local/lib /lib /usr/lib  
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread  
-lc  
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc  
libc=/lib/libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so  
gnulibc\_version=‘2.12’  
Dynamic Linking:  
dlsrc=dl\_dlopen.xs, dlext=so, d\_dlsymun=undef,  
ccdlflags=‘-Wl,–enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE’  
cccdlflags=‘-fPIC’, lddlflags=‘-shared -O2 -g -pipe -Wall  
-Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector  
–param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom  
-fasynchronous-unwind-tables -L/usr/local/lib’

Characteristics of this binary (from libperl):  
Compile-time options: MULTIPLICITY PERL\_DONT\_CREATE\_GVSV  
PERL\_IMPLICIT\_CONTEXT PERL\_MALLOC\_WRAP  
USE\_ITHREADS  
USE\_LARGE\_FILES USE\_PERLIO USE\_REENTRANT\_API  
Built under linux  
Compiled at Sep 7 2010 12:15:21  
@INC:  
/usr/local/lib/perl5  
/usr/local/share/perl5  
/usr/lib/perl5  
/usr/share/perl5  
/usr/lib/perl5  
/usr/share/perl5  
/usr/local/lib/perl5/site\_perl/5.10.0/i386-linux-thread-multi  
/usr/local/lib/perl5/site\_perl/5.10.0  
/usr/lib/perl5/vendor\_perl/5.10.0/i386-linux-thread-multi  
/usr/lib/perl5/vendor\_perl  
/usr/lib/perl5/site\_perl  
.  
Output of perl -MExtUtils::Embed -e ldopts:

-Wl,–enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE -fstack-protector  
-L/usr/local/lib -L/usr/lib/perl5/CORE -lperl -lresolv -lnsl -ldl -lm  
-lcrypt -lutil -lpthread -lc

Output of nginx -V:

nginx version: nginx/0.8.52  
built by gcc 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)  
TLS SNI support enabled  
configure arguments: --user=nginx --group=nginx  
–prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log  
–http-client-body-temp-path=/var/lib/nginx/tmp/client\_body  
–http-proxy-temp-path=/var/lib/nginx/tmp/proxy  
–http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi  
–pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx  
–with-http\_ssl\_module --with-http\_realip\_module  
–with-http\_addition\_module --with-http\_sub\_module  
–with-http\_dav\_module --with-http\_flv\_module  
–with-http\_gzip\_static\_module --with-http\_stub\_status\_module  
–with-http\_perl\_module --with-mail --with-mail\_ssl\_module  
–with-cc-opt=‘-O2 -g -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions  
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom  
-fasynchronous-unwind-tables’  
–add-module=/root/rpmbuild/BUILD/nginx-0.8.52/nginx-upstream-fair

I’ll try recompiling with the --with-ld-opts=“-Wl,-E” in a couple of  
minutes.

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/5 "2010-09-28T20:15:32Z")

</div>

adding --with-ld-opts=“-Wl,-E” cave me the following error:

./configure: error: invalid option “–with-ld-opts=-Wl,-E”

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 29, 2010, 2:37am UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/6 "2010-09-29T02:37:50Z")

</div>

Its working now. Thanks!

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [September 28, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/nginx-0-8-52/195688/7 "2010-09-28T23:49:49Z")

</div>

Hello!

On Tue, Sep 28, 2010 at 11:13:23AM -0700, Brandon A. wrote:

> adding --with-ld-opts=“-Wl,-E” cave me the following error:
> 
> ./configure: error: invalid option “–with-ld-opts=-Wl,-E”

Sorry, it should be --with-ld-opt=… (without ‘s’).

Maxim D.
