atom feed11 messages in ru.sysoev.nginxProblem starting nginx after upgradin...
FromSent OnAttachments
Igor SysoevSep 27, 2010 6:41 am 
Brandon AmaroSep 27, 2010 3:09 pm.spec, .rpm
lhmwzySep 27, 2010 4:25 pm 
lhmwzySep 27, 2010 4:51 pm 
Wendal ChenSep 27, 2010 6:08 pm 
JoeSep 27, 2010 6:18 pm 
Xin LISep 27, 2010 6:56 pm.diff
Brandon AmaroSep 27, 2010 7:22 pm 
Igor SysoevSep 27, 2010 11:51 pm.ssl1
moorthiOct 14, 2010 1:49 am 
Maxim DouninOct 14, 2010 1:55 am 
Subject:Problem starting nginx after upgrading to 0.8.51
From:Brandon Amaro (omeg@fedtrek.com)
Date:Sep 27, 2010 3:09:01 pm
List:ru.sysoev.nginx
Attachments:
nginx.spec - 13k
nginx-0.8.51-1.fc13.omega13a.src.rpm - 908k

After I upgraded nginx today to 0.8.5 whenever I start the nginx service, I get this error:

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 line 54 Compilation failed in require. BEGIN failed--compilation aborted. [alert]: perl_parse() failed: 255

I'm running Fedora Core 13 and I installed nginx using an RPM I built with the attached spec file though I'm including the SRPM which might be useful.

Any help in getting nginx working again would be greatly appreciated.

--

omega13a Owner and Founder of UFT http://www.fedtrek.com

%define dist .fc13 %define nginx_user nginx %define nginx_group %{nginx_user} %define nginx_home %{_localstatedir}/lib/nginx %define nginx_home_tmp %{nginx_home}/tmp %define nginx_logdir %{_localstatedir}/log/nginx %define nginx_confdir %{_sysconfdir}/nginx %define nginx_datadir %{_datadir}/nginx %define nginx_webroot %{nginx_datadir}/html

Name: nginx Version: 0.8.51 Release: 1%{?dist}.omega13a Summary: Robust, small and high performance http and reverse proxy server Group: System Environment/Daemons

# BSD License (two clause) # http://www.freebsd.org/copyright/freebsd-license.html License: BSD URL: http://nginx.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: pcre-devel,zlib-devel,openssl-devel,perl(ExtUtils::Embed) Requires: pcre,zlib,openssl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version)) # for /usr/sbin/useradd Requires(pre): shadow-utils Requires(post): chkconfig # for /sbin/service Requires(preun): chkconfig, initscripts Requires(postun): initscripts

Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz Source1: %{name}.init Source2: %{name}.logrotate Source3: virtual.conf Source4: ssl.conf Source5: nginx-upstream-fair.tgz Source6: upstream-fair.conf Source7: %{name}.sysconfig Source8: %{name}.conf Source100: index.html Source101: poweredby.png Source102: nginx-logo.png Source103: 50x.html Source104: 404.html

# removes -Werror in upstream build scripts. -Werror conflicts with # -D_FORTIFY_SOURCE=2 causing warnings to turn into errors. Patch0: nginx-auto-cc-gcc.patch

#patch for http://www.kb.cert.org/vuls/id/120541 #Patch1: nginx-cve-2009-3555.patch

%description Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server written by Igor Sysoev.

One third party module, nginx-upstream-fair, has been added.

%prep %setup -q

%patch0 -p0 #patch1 -p0 %{__tar} zxvf %{SOURCE5}

%build # nginx does not utilize a standard configure script. It has its own # and the standard configure options cause the nginx configure script # to error out. This is is also the reason for the DESTDIR environment # variable. The configure script(s) have been patched (Patch1 and # Patch2) in order to support installing into a build environment. export DESTDIR=%{buildroot} ./configure \ --user=%{nginx_user} \ --group=%{nginx_group} \ --prefix=%{nginx_datadir} \ --sbin-path=%{_sbindir}/%{name} \ --conf-path=%{nginx_confdir}/%{name}.conf \ --error-log-path=%{nginx_logdir}/error.log \ --http-log-path=%{nginx_logdir}/access.log \ --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ --pid-path=%{_localstatedir}/run/%{name}.pid \ --lock-path=%{_localstatedir}/lock/subsys/%{name} \ --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="%{optflags} $(pcre-config --cflags)" \ --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair make %{?_smp_mflags}

# rename the readme for nginx-upstream-fair so it doesn't conflict with the main # readme mv nginx-upstream-fair/README nginx-upstream-fair/README.nginx-upstream-fair

%install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALLDIRS=vendor find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \; find %{buildroot} -type f -empty -exec rm -f {} \; find %{buildroot} -type f -exec chmod 0644 {} \; find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \; chmod 0755 %{buildroot}%{_sbindir}/nginx %{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} %{__install} -p -D -m 0644 %{SOURCE2}
%{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -p -D -m 0644 %{SOURCE7}
%{buildroot}%{_sysconfdir}/sysconfig/%{name} %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d %{__install} -p -m 0644 %{SOURCE8} %{buildroot}%{nginx_confdir} %{__install} -p -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE6}
%{buildroot}%{nginx_confdir}/conf.d %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp} %{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir} %{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot} %{__install} -p -m 0644 %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103}
%{SOURCE104} %{buildroot}%{nginx_webroot}

# convert to UTF-8 all files that give warnings. for textfile in CHANGES do mv $textfile $textfile.old iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old rm -f $textfile.old done

%clean rm -rf %{buildroot}

%pre %{_sbindir}/useradd -c "Nginx user" -s /bin/false -r -d %{nginx_home}
%{nginx_user} 2>/dev/null || :

%post /sbin/chkconfig --add %{name}

%preun if [ $1 = 0 ]; then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi

%postun if [ $1 -ge 1 ]; then /sbin/service %{name} condrestart > /dev/null 2>&1 || : fi

%files %defattr(-,root,root,-) %doc LICENSE CHANGES README nginx-upstream-fair/README.nginx-upstream-fair %{nginx_datadir}/ %{_sbindir}/%{name} %{_mandir}/man3/%{name}.3pm.gz %{_initrddir}/%{name} %dir %{nginx_confdir} %dir %{nginx_confdir}/conf.d/ %dir %{nginx_logdir} %config(noreplace) %{nginx_confdir}/* %config(noreplace) %{nginx_confdir}/conf.d/*.conf %config(noreplace) %{nginx_confdir}/win-utf %config(noreplace) %{nginx_confdir}/%{name}.conf.default %config(noreplace) %{nginx_confdir}/mime.types.default %config(noreplace) %{nginx_confdir}/fastcgi_params %config(noreplace) %{nginx_confdir}/fastcgi_params.default %config(noreplace) %{nginx_confdir}/koi-win %config(noreplace) %{nginx_confdir}/koi-utf %config(noreplace) %{nginx_confdir}/%{name}.conf %config(noreplace) %{nginx_confdir}/mime.types %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %dir %{perl_vendorarch}/auto/%{name} %{perl_vendorarch}/%{name}.pm %{perl_vendorarch}/auto/%{name}/%{name}.so %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home} %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp}

%changelog * Tue Sep 27 2010 Brandon Amaro <omeg@yahoo.com> - 0.8.51-1 - updated to 0.8.51 - Change: the "secure_link_expires" directive has been canceled. - Change: a logging level of resolver errors has been lowered from "alert" to
"error". - Feature: now a listen socket "ssl" parameter may be set several times.

* Tue Sep 07 2010 Brandon Amaro <omeg@yahoo.com> - 0.8.50-1 - updated to 0.8.50 - Changes in 0.8.50: - Feature: the "secure_link", "secure_link_md5", and "secure_link_expires"
directives of the ngx_http_secure_link_module. - Feature: the -q switch. Thanks to Gena Makhomed. - Bugfix: worker processes may got caught in an endless loop during
reconfiguration, if a caching was used; the bug had appeared in 0.8.48. - Bugfix: in the "gzip_disable" directive. Thanks to Derrick Petzold. - Bugfix: nginx/Windows could not send stop, quit, reopen, and reload signals to
a process run in other session.

* Tue Aug 09 2010 Brandon Amaro <omeg@yahoo.com> - 0.8.49-1 - updated to 0.8.49 - Changes in 0.8.49: - Feature: the "image_filter_jpeg_quality" directive supports variables. - Bugfix: a segmentation fault might occur in a worker process, if the
$geoip_region_name variables was used; the bug had appeared in 0.8.48. - Bugfix: errors intercepted by error_page were cached only for next request;
the bug had appeared in 0.8.48.

* Tue Aug 03 2010 Brandon Amaro <omeg@yahoo.com> - 0.8.48-1 - updated to 0.8.48

* Tue Jul 13 2010 Brandon Amaro <omeg@yahoo.com> - 0.8.45-1 - updated to 0.8.45

* Tue Jul 13 2010 Brandon Amaro <omeg@yahoo.com> - 0.7.67-2 - added --without-http_charset_module

* Tue Jul 13 2010 Brandon Amaro <omeg@yahoo.com> - 0.7.67-1 - updated to 0.7.67

* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.39-5 - fix bug #591543

* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.39-4 - change directory ownership of log dir to root:root

* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.39-3 - fix bug #554914

* Fri Dec 04 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.39-2 - fixes CVE-2009-3555

* Mon Sep 14 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.39-1 - update to 0.6.39 - fixes CVE-2009-2629

* Sun Aug 02 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.38-1 - update to 0.6.38

* Sat Apr 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> 0.6.36-1 - update to 0.6.36

* Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-2 - rebuild

* Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-1 - update to 0.6.35

* Tue Dec 30 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.34-1 - update to 0.6.34 - Fix inclusion of /usr/share/nginx tree => no unowned directories [mschwendt]

* Sun Nov 23 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.33-1 - update to 0.6.33

* Sun Jul 27 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.32-1 - update to 0.6.32 - nginx now supports DESTDIR so removed the patches that enabled it

* Mon May 26 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-3 - update init script - remove 'default' listen parameter

* Tue May 13 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-2 - added missing Source files

* Mon May 12 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-1 - update to new upstream stable branch 0.6 - added 3rd party module nginx-upstream-fair - add /etc/nginx/conf.d support [#443280] - use /etc/sysconfig/nginx to determine nginx.conf [#442708] - added default webpages - add Requires for versioned perl (libperl.so) (via Tom "spot" Callaway) - drop silly file Requires (via Tom "spot" Callaway)

* Sat Jan 19 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-1 - update to 0.5.35

* Sun Dec 16 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.34-1 - update to 0.5.34

* Mon Nov 12 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.33-2 - bump build number - source wasn't update

* Mon Nov 12 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.33-1 * update to 0.5.33

* Mon Sep 24 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.32-1 - updated to 0.5.32 - fixed rpmlint UTF-8 complaints.

* Sat Aug 18 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.31-3 - added --with-http_stub_status_module build option. - added --with-http_sub_module build option. - add in pcre-config --cflags

* Sat Aug 18 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.31-2 - remove BuildRequires: perl-devel

* Fri Aug 17 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.31-1 - Update to 0.5.31 - specify license is BSD

* Sat Aug 11 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.30-2 - Add BuildRequires: perl-devel - fixing rawhide build

* Mon Jul 30 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.30-1 - Update to 0.5.30

* Tue Jul 24 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.29-1 - Update to 0.5.29

* Wed Jul 18 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.28-1 - Update to 0.5.28

* Mon Jul 09 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.27-1 - Update to 0.5.27

* Mon Jun 18 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.26-1 - Update to 0.5.26

* Sat Apr 28 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.19-1 - Update to 0.5.19

* Mon Apr 02 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.17-1 - Update to 0.5.17

* Mon Mar 26 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.16-1 - Update to 0.5.16 - add ownership of /usr/share/nginx/html (#233950)

* Fri Mar 23 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.15-3 - fixed package review bugs (#235222) given by rub@rubenkerkhof.com

* Thu Mar 22 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.15-2 - fixed package review bugs (#233522) given by kev@tummy.com

* Thu Mar 22 2007 Jeremy Hinegardner <jer@hinegardner.org> - 0.5.15-1 - create patches to assist with building for Fedora - initial packaging for Fedora