Welcome! Log In Create A New Profile

Advanced

Error loading apc.so

Posted by nyshadhamsriram@gmail.com 
nyshadhamsriram@gmail.com
Error loading apc.so
November 25, 2010 05:38AM
Hi all,

I am using php533, with php-fpm built from source. When I use apc
through the CLI, it's working fine:L

[04:33:26 root@playground:/etc]# php -m|grep apc
apc

However, when I am using along with fpm, I am getting error that the
apc.so is unable to be loaded

[04:34:21 root@playground:/etc]# php-fpm -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/
php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol:
pcre_exec in Unknown on line 0
PHP 5.3.3 (fpm-fcgi) (built: Jul 23 2010 13:16:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

I verified that the extension dir path in the ini file is correct and
the apc.so does exist in /etc/php.d/


Could someone please help identify the issue?



Thanks,
Sri
Dennis J.
Re: Error loading apc.so
November 25, 2010 07:24AM
On 11/25/2010 11:36 AM, nyshadhamsriram@gmail.com wrote:
> Hi all,
>
> I am using php533, with php-fpm built from source. When I use apc
> through the CLI, it's working fine:L
>
> [04:33:26 root@playground:/etc]# php -m|grep apc
> apc
>
> However, when I am using along with fpm, I am getting error that the
> apc.so is unable to be loaded
>
> [04:34:21 root@playground:/etc]# php-fpm -v
> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/
> php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol:
> pcre_exec in Unknown on line 0
> PHP 5.3.3 (fpm-fcgi) (built: Jul 23 2010 13:16:14)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>
> I verified that the extension dir path in the ini file is correct and
> the apc.so does exist in /etc/php.d/
>
>
> Could someone please help identify the issue?
It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
compiled without pcre. Do you use any pcre related configure options in
your build scripts?

Regards,
Dennis
Antony Dovgal
Re: Error loading apc.so
November 25, 2010 07:34AM
On 11/25/2010 03:21 PM, Dennis J. wrote:
> It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
> compiled without pcre.

... and the real question is "how did you manage to do that?" because PCRE
is always enabled since 5.3.0 =)

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Sriram Nyshadham
Re: Error loading apc.so
November 25, 2010 08:52AM
I had some issues building rpm for fpm from the 533 spec file. So, I had to
build the fpm's rpm package separately like this:

%prep
%setup

%build
%configure --enable-fpm
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install INSTALL_ROOT=%{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
/usr/*
/etc/*
/var/*
/.channels*
/.depdb
/.depdblock
/.filemap
/.lock
%defattr(-, root, root, 0755)


How do I make sure to build an rpm which will compile with pcre? I thought
this is enabled by default for the fpm rpm as well. Please suggest.


Thanks,
Sri


On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 11/25/2010 03:21 PM, Dennis J. wrote:
> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
> > compiled without pcre.
>
> .. and the real question is "how did you manage to do that?" because PCRE
> is always enabled since 5.3.0 =)
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
Ilyas --
Re: Error loading apc.so
November 26, 2010 01:38AM
Hi!

Sriram Nyshadham, please provide full build log (I mean full output of
`rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').



On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
<nyshadhamsriram@gmail.com> wrote:
> I had some issues building rpm for fpm from the 533 spec file. So, I had to
> build the fpm's rpm package separately like this:
>
> %prep
> %setup
>
> %build
> %configure --enable-fpm
> %{__make} %{?_smp_mflags}
>
> %install
> %{__rm} -rf %{buildroot}
> %{__make} install INSTALL_ROOT=%{buildroot}
>
> %clean
> %{__rm} -rf %{buildroot}
>
> %files
> /usr/*
> /etc/*
> /var/*
> /.channels*
> /.depdb
> /.depdblock
> /.filemap
> /.lock
> %defattr(-, root, root, 0755)
>
>
> How do I make sure to build an rpm which will compile with pcre? I thought
> this is enabled by default for the fpm rpm as well. Please suggest.
>
>
> Thanks,
> Sri
>
>
> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org> wrote:
>>
>> On 11/25/2010 03:21 PM, Dennis J. wrote:
>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
>> > compiled without pcre.
>>
>> .. and the real question is "how did you manage to do that?" because PCRE
>> is always enabled since 5.3.0 =)
>>
>> --
>> Wbr,
>> Antony Dovgal
>> ---
>> http://pinba.org - realtime statistics for PHP
>
>



--
Ilyas R. Khasyanov
Unix/Linux System Administrator
GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
Ilyas --
Re: Error loading apc.so
November 26, 2010 01:42AM
Ohh...

`mock rebuild' generates build.log into the same directory where they put rpms.



On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
> Hi!
>
> Sriram Nyshadham, please provide full build log (I mean full output of
> `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
>
>
>
> On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
> <nyshadhamsriram@gmail.com> wrote:
>> I had some issues building rpm for fpm from the 533 spec file. So, I had to
>> build the fpm's rpm package separately like this:
>>
>> %prep
>> %setup
>>
>> %build
>> %configure --enable-fpm
>> %{__make} %{?_smp_mflags}
>>
>> %install
>> %{__rm} -rf %{buildroot}
>> %{__make} install INSTALL_ROOT=%{buildroot}
>>
>> %clean
>> %{__rm} -rf %{buildroot}
>>
>> %files
>> /usr/*
>> /etc/*
>> /var/*
>> /.channels*
>> /.depdb
>> /.depdblock
>> /.filemap
>> /.lock
>> %defattr(-, root, root, 0755)
>>
>>
>> How do I make sure to build an rpm which will compile with pcre? I thought
>> this is enabled by default for the fpm rpm as well. Please suggest.
>>
>>
>> Thanks,
>> Sri
>>
>>
>> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org> wrote:
>>>
>>> On 11/25/2010 03:21 PM, Dennis J. wrote:
>>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
>>> > compiled without pcre.
>>>
>>> .. and the real question is "how did you manage to do that?" because PCRE
>>> is always enabled since 5.3.0 =)
>>>
>>> --Hmm... f

On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
> Hi!
>
> Sriram Nyshadham, please provide full build log (I mean full output of
> `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
>
>
>
> On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
> <nyshadhamsriram@gmail.com> wrote:
>> I had some issues building rpm for fpm from the 533 spec file. So, I had to
>> build the fpm's rpm package separately like this:
>>
>> %prep
>> %setup
>>
>> %build
>> %configure --enable-fpm
>> %{__make} %{?_smp_mflags}
>>
>> %install
>> %{__rm} -rf %{buildroot}
>> %{__make} install INSTALL_ROOT=%{buildroot}
>>
>> %clean
>> %{__rm} -rf %{buildroot}
>>
>> %files
>> /usr/*
>> /etc/*
>> /var/*
>> /.channels*
>> /.depdb
>> /.depdblock
>> /.filemap
>> /.lock
>> %defattr(-, root, root, 0755)
>>
>>
>> How do I make sure to build an rpm which will compile with pcre? I thought
>> this is enabled by default for the fpm rpm as well. Please suggest.
>>
>>
>> Thanks,
>> Sri
>>
>>
>> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org> wrote:
>>>
>>> On 11/25/2010 03:21 PM, Dennis J. wrote:
>>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI was
>>> > compiled without pcre.
>>>
>>> .. and the real question is "how did you manage to do that?" because PCRE
>>> is always enabled since 5.3.0 =)
>>>
>>> --
>>> Wbr,
>>> Antony Dovgal
>>> ---
>>> http://pinba.org - realtime statistics for PHP
>>
>>
>
>
>
> --
> Ilyas R. Khasyanov
> Unix/Linux System Administrator
> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>



--
Ilyas R. Khasyanov
Unix/Linux System Administrator
GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)


>>> Wbr,
>>> Antony Dovgal
>>> ---
>>> http://pinba.org - realtime statistics for PHP
>>
>>
>
>
>
> --
> Ilyas R. Khasyanov
> Unix/Linux System Administrator
> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>



--
Ilyas R. Khasyanov
Unix/Linux System Administrator
GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
Sriram Nyshadham
Re: Error loading apc.so
November 26, 2010 03:54AM
Thanks for the reply Ilyas. Please find the attached rpmbuild.log file.

I checked the logs and found this.. May be I have to do --enable--prefix ??

*
checking pcre install prefix... no*


Appreciate for your help.


Thanks,
Sri



On Thu, Nov 25, 2010 at 10:39 PM, Ilyas -- <umask00@gmail.com> wrote:

> Ohh...
>
> `mock rebuild' generates build.log into the same directory where they put
> rpms.
>
>
>
> On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
> > Hi!
> >
> > Sriram Nyshadham, please provide full build log (I mean full output of
> > `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
> >
> >
> >
> > On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
> > <nyshadhamsriram@gmail.com> wrote:
> >> I had some issues building rpm for fpm from the 533 spec file. So, I had
> to
> >> build the fpm's rpm package separately like this:
> >>
> >> %prep
> >> %setup
> >>
> >> %build
> >> %configure --enable-fpm
> >> %{__make} %{?_smp_mflags}
> >>
> >> %install
> >> %{__rm} -rf %{buildroot}
> >> %{__make} install INSTALL_ROOT=%{buildroot}
> >>
> >> %clean
> >> %{__rm} -rf %{buildroot}
> >>
> >> %files
> >> /usr/*
> >> /etc/*
> >> /var/*
> >> /.channels*
> >> /.depdb
> >> /.depdblock
> >> /.filemap
> >> /.lock
> >> %defattr(-, root, root, 0755)
> >>
> >>
> >> How do I make sure to build an rpm which will compile with pcre? I
> thought
> >> this is enabled by default for the fpm rpm as well. Please suggest.
> >>
> >>
> >> Thanks,
> >> Sri
> >>
> >>
> >> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org>
> wrote:
> >>>
> >>> On 11/25/2010 03:21 PM, Dennis J. wrote:
> >>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI
> was
> >>> > compiled without pcre.
> >>>
> >>> .. and the real question is "how did you manage to do that?" because
> PCRE
> >>> is always enabled since 5.3.0 =)
> >>>
> >>> --Hmm... f
>
> On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
> > Hi!
> >
> > Sriram Nyshadham, please provide full build log (I mean full output of
> > `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
> >
> >
> >
> > On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
> > <nyshadhamsriram@gmail.com> wrote:
> >> I had some issues building rpm for fpm from the 533 spec file. So, I had
> to
> >> build the fpm's rpm package separately like this:
> >>
> >> %prep
> >> %setup
> >>
> >> %build
> >> %configure --enable-fpm
> >> %{__make} %{?_smp_mflags}
> >>
> >> %install
> >> %{__rm} -rf %{buildroot}
> >> %{__make} install INSTALL_ROOT=%{buildroot}
> >>
> >> %clean
> >> %{__rm} -rf %{buildroot}
> >>
> >> %files
> >> /usr/*
> >> /etc/*
> >> /var/*
> >> /.channels*
> >> /.depdb
> >> /.depdblock
> >> /.filemap
> >> /.lock
> >> %defattr(-, root, root, 0755)
> >>
> >>
> >> How do I make sure to build an rpm which will compile with pcre? I
> thought
> >> this is enabled by default for the fpm rpm as well. Please suggest.
> >>
> >>
> >> Thanks,
> >> Sri
> >>
> >>
> >> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org>
> wrote:
> >>>
> >>> On 11/25/2010 03:21 PM, Dennis J. wrote:
> >>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI
> was
> >>> > compiled without pcre.
> >>>
> >>> .. and the real question is "how did you manage to do that?" because
> PCRE
> >>> is always enabled since 5.3.0 =)
> >>>
> >>> --
> >>> Wbr,
> >>> Antony Dovgal
> >>> ---
> >>> http://pinba.org - realtime statistics for PHP
> >>
> >>
> >
> >
> >
> > --
> > Ilyas R. Khasyanov
> > Unix/Linux System Administrator
> > GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
> >
>
>
>
> --
> Ilyas R. Khasyanov
> Unix/Linux System Administrator
> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>
>
> >>> Wbr,
> >>> Antony Dovgal
> >>> ---
> >>> http://pinba.org - realtime statistics for PHP
> >>
> >>
> >
> >
> >
> > --
> > Ilyas R. Khasyanov
> > Unix/Linux System Administrator
> > GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
> >
>
>
>
> --
> Ilyas R. Khasyanov
> Unix/Linux System Administrator
> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>
Ilyas --
Re: Error loading apc.so
November 26, 2010 07:34AM
Probably you need to install pcre-devel?

Best way to build RPM in RHEL/CentOS is `mock', which build rpm
package in chroot and track all dependencies.

If you use SLES/OpenSuse you can use `build' utility which works the
same as `mock' (but a bit different).

I've build RPM for php-5.x.x and you can look on my buildlog (ex.
http://yum.aclub.net/pub/linux/centos/5/umask/buildlog/php-5.2.10-umask.25.x86_64_build.log.gz
).
May be this helps you.


On Fri, Nov 26, 2010 at 11:53 AM, Sriram Nyshadham
<nyshadhamsriram@gmail.com> wrote:
> Thanks for the reply Ilyas.   Please find the attached rpmbuild.log file.
>
> I checked the logs and found this.. May be I have to do --enable--prefix ??
>
>
> checking pcre install prefix... no
>
>
> Appreciate for your help.
>
>
> Thanks,
> Sri
>
>
>
> On Thu, Nov 25, 2010 at 10:39 PM, Ilyas -- <umask00@gmail.com> wrote:
>>
>> Ohh...
>>
>> `mock rebuild' generates build.log into the same directory where they put
>> rpms.
>>
>>
>>
>> On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
>> > Hi!
>> >
>> > Sriram Nyshadham, please provide full build log (I mean full output of
>> > `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
>> >
>> >
>> >
>> > On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
>> > <nyshadhamsriram@gmail.com> wrote:
>> >> I had some issues building rpm for fpm from the 533 spec file. So, I
>> >> had to
>> >> build the fpm's rpm package separately like this:
>> >>
>> >> %prep
>> >> %setup
>> >>
>> >> %build
>> >> %configure --enable-fpm
>> >> %{__make} %{?_smp_mflags}
>> >>
>> >> %install
>> >> %{__rm} -rf %{buildroot}
>> >> %{__make} install INSTALL_ROOT=%{buildroot}
>> >>
>> >> %clean
>> >> %{__rm} -rf %{buildroot}
>> >>
>> >> %files
>> >> /usr/*
>> >> /etc/*
>> >> /var/*
>> >> /.channels*
>> >> /.depdb
>> >> /.depdblock
>> >> /.filemap
>> >> /.lock
>> >> %defattr(-, root, root, 0755)
>> >>
>> >>
>> >> How do I make sure to build an rpm which will compile with pcre? I
>> >> thought
>> >> this is enabled by default for the fpm rpm as well. Please suggest.
>> >>
>> >>
>> >> Thanks,
>> >> Sri
>> >>
>> >>
>> >> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org>
>> >> wrote:
>> >>>
>> >>> On 11/25/2010 03:21 PM, Dennis J. wrote:
>> >>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI
>> >>> > was
>> >>> > compiled without pcre.
>> >>>
>> >>> .. and the real question is "how did you manage to do that?" because
>> >>> PCRE
>> >>> is always enabled since 5.3.0 =)
>> >>>
>> >>> --Hmm... f
>>
>> On Fri, Nov 26, 2010 at 9:37 AM, Ilyas -- <umask00@gmail.com> wrote:
>> > Hi!
>> >
>> > Sriram Nyshadham, please provide full build log (I mean full output of
>> > `rpmbuild -ba php.spec' or `mock rebuild php*.src.rpm').
>> >
>> >
>> >
>> > On Thu, Nov 25, 2010 at 4:50 PM, Sriram Nyshadham
>> > <nyshadhamsriram@gmail.com> wrote:
>> >> I had some issues building rpm for fpm from the 533 spec file. So, I
>> >> had to
>> >> build the fpm's rpm package separately like this:
>> >>
>> >> %prep
>> >> %setup
>> >>
>> >> %build
>> >> %configure --enable-fpm
>> >> %{__make} %{?_smp_mflags}
>> >>
>> >> %install
>> >> %{__rm} -rf %{buildroot}
>> >> %{__make} install INSTALL_ROOT=%{buildroot}
>> >>
>> >> %clean
>> >> %{__rm} -rf %{buildroot}
>> >>
>> >> %files
>> >> /usr/*
>> >> /etc/*
>> >> /var/*
>> >> /.channels*
>> >> /.depdb
>> >> /.depdblock
>> >> /.filemap
>> >> /.lock
>> >> %defattr(-, root, root, 0755)
>> >>
>> >>
>> >> How do I make sure to build an rpm which will compile with pcre? I
>> >> thought
>> >> this is enabled by default for the fpm rpm as well. Please suggest.
>> >>
>> >>
>> >> Thanks,
>> >> Sri
>> >>
>> >>
>> >> On Thu, Nov 25, 2010 at 4:33 AM, Antony Dovgal <tony@daylessday.org>
>> >> wrote:
>> >>>
>> >>> On 11/25/2010 03:21 PM, Dennis J. wrote:
>> >>> > It looks like the CLI SAPI was compiled with pcre but the FPM SAPI
>> >>> > was
>> >>> > compiled without pcre.
>> >>>
>> >>> .. and the real question is "how did you manage to do that?" because
>> >>> PCRE
>> >>> is always enabled since 5.3.0 =)
>> >>>
>> >>> --
>> >>> Wbr,
>> >>> Antony Dovgal
>> >>> ---
>> >>> http://pinba.org - realtime statistics for PHP
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Ilyas R. Khasyanov
>> > Unix/Linux System Administrator
>> > GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>> >
>>
>>
>>
>> --
>> Ilyas R. Khasyanov
>> Unix/Linux System Administrator
>> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>>
>>
>> >>> Wbr,
>> >>> Antony Dovgal
>> >>> ---
>> >>> http://pinba.org - realtime statistics for PHP
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Ilyas R. Khasyanov
>> > Unix/Linux System Administrator
>> > GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>> >
>>
>>
>>
>> --
>> Ilyas R. Khasyanov
>> Unix/Linux System Administrator
>> GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
>
>



--
Ilyas R. Khasyanov
Unix/Linux System Administrator
GPG Key ID: 6EC5EB27 (Changed since 2009-05-12)
Antony Dovgal
Re: Error loading apc.so
November 26, 2010 07:36AM
On 11/26/2010 03:31 PM, Ilyas -- wrote:
> Probably you need to install pcre-devel?

No need to, PHP comes with its own PCRE lib bundled and configure output here says:
checking for PCRE library to use... bundled

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Sriram Nyshadham
Re: Error loading apc.so
November 26, 2010 07:40AM
If PCRE is already bundled.. could someone please tell why it's throwing up
that error when I do a php-fpm -v ?
This has been an annoying issue and any help would be really appreciated.


Thanks,
sri



On Fri, Nov 26, 2010 at 4:34 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 11/26/2010 03:31 PM, Ilyas -- wrote:
> > Probably you need to install pcre-devel?
>
> No need to, PHP comes with its own PCRE lib bundled and configure output
> here says:
> checking for PCRE library to use... bundled
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
Antony Dovgal
Re: Error loading apc.so
November 26, 2010 07:46AM
On 11/26/2010 03:38 PM, Sriram Nyshadham wrote:
> If PCRE is already bundled.. could someone please tell why it's throwing
> up that error when I do a php-fpm -v ?

No. Otherwise I would tell you right away.

Probably the PHP binary is built with wrong options or is just broken,
or APC binary is built with wrong PHP headers, or something else.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Sriram Nyshadham
Re: Error loading apc.so
November 26, 2010 07:52AM
I will try to build the php533 packages and apc right from the scratch and
let you know where the problem is.


Thanks,
Sri

On Fri, Nov 26, 2010 at 4:44 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 11/26/2010 03:38 PM, Sriram Nyshadham wrote:
> > If PCRE is already bundled.. could someone please tell why it's throwing
> > up that error when I do a php-fpm -v ?
>
> No. Otherwise I would tell you right away.
>
> Probably the PHP binary is built with wrong options or is just broken,
> or APC binary is built with wrong PHP headers, or something else.
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
Antony Dovgal
Re: Error loading apc.so
November 26, 2010 08:02AM
On 11/26/2010 03:49 PM, Sriram Nyshadham wrote:
> I will try to build the php533 packages and apc right from the scratch
> and let you know where the problem is.

I'd start with building them from the sources without all those fancy packaging tools.
Just tar -xzf .. && ./configure && make and see if it works.
If it does work - you can start from there, if it doesn't - you have some major problem there.
(you DID check that you use the right PHP headers and the right php-config when building APC, didn't you?)

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Dennis J.
Re: Error loading apc.so
November 26, 2010 12:18PM
On 11/26/2010 02:01 PM, Antony Dovgal wrote:
> On 11/26/2010 03:49 PM, Sriram Nyshadham wrote:
>> I will try to build the php533 packages and apc right from the scratch
>> and let you know where the problem is.
> I'd start with building them from the sources without all those fancy packaging tools.
> Just tar -xzf ..&& ./configure&& make and see if it works.
> If it does work - you can start from there, if it doesn't - you have some major problem there.
> (you DID check that you use the right PHP headers and the right php-config when building APC, didn't you?)
I usually do the opposite and simply modify an already existing source rpm.
That way you have a known working base to work off of. Then simply tweak
the parameters or add patches and rebuild.

Regards,
Dennis
Antony Dovgal
Re: Error loading apc.so
November 26, 2010 12:42PM
On 11/26/2010 08:15 PM, Dennis J. wrote:
> On 11/26/2010 02:01 PM, Antony Dovgal wrote:
>> On 11/26/2010 03:49 PM, Sriram Nyshadham wrote:
>>> I will try to build the php533 packages and apc right from the scratch
>>> and let you know where the problem is.
>> I'd start with building them from the sources without all those fancy packaging tools.
>> Just tar -xzf ..&& ./configure&& make and see if it works.
>> If it does work - you can start from there, if it doesn't - you have some major problem there.
>> (you DID check that you use the right PHP headers and the right php-config when building APC, didn't you?)
> I usually do the opposite and simply modify an already existing source rpm.
> That way you have a known working base to work off of. Then simply tweak
> the parameters or add patches and rebuild.

To test the modified rpm you need to actually install it and to rebuild it you need to rebuild the whole package.
With plain sources you can just type 'make' and get a new binary in a couple of seconds.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Dennis J.
Re: Error loading apc.so
November 26, 2010 01:02PM
On 11/26/2010 06:41 PM, Antony Dovgal wrote:
> On 11/26/2010 08:15 PM, Dennis J. wrote:
>> On 11/26/2010 02:01 PM, Antony Dovgal wrote:
>>> On 11/26/2010 03:49 PM, Sriram Nyshadham wrote:
>>>> I will try to build the php533 packages and apc right from the scratch
>>>> and let you know where the problem is.
>>> I'd start with building them from the sources without all those fancy packaging tools.
>>> Just tar -xzf ..&& ./configure&& make and see if it works.
>>> If it does work - you can start from there, if it doesn't - you have some major problem there.
>>> (you DID check that you use the right PHP headers and the right php-config when building APC, didn't you?)
>> I usually do the opposite and simply modify an already existing source rpm.
>> That way you have a known working base to work off of. Then simply tweak
>> the parameters or add patches and rebuild.
> To test the modified rpm you need to actually install it and to rebuild it you need to rebuild the whole package.
> With plain sources you can just type 'make' and get a new binary in a couple of seconds.
That works well if you want to test things first but once I'm done with
this I always create a clean patch and add that to the rpm build. That way
I avoid such neat little things such as missing "pcre_*" symbols.
It would probably have been easier to deal with the build issues of the
original spec file rather than going through all the troubles now.

Regards,
Dennis
Antony Dovgal
Re: Error loading apc.so
November 26, 2010 01:08PM
On 11/26/2010 09:01 PM, Dennis J. wrote:
> That works well if you want to test things first but once I'm done with
> this I always create a clean patch and add that to the rpm build.

Right. That's exactly what we want to do.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Sriram Nyshadham
Re: Error loading apc.so
December 01, 2010 01:54AM
BTW.. I fixed the issue.. I had to rebuild my CLI SAPI to fix the issue.


Thanks,
Sri

On Fri, Nov 26, 2010 at 10:06 AM, Antony Dovgal <tony@daylessday.org> wrote:

> On 11/26/2010 09:01 PM, Dennis J. wrote:
> > That works well if you want to test things first but once I'm done with
> > this I always create a clean patch and add that to the rpm build.
>
> Right. That's exactly what we want to do.
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready