php-5.0.4-5 causes segfault

Support for webhosts that use CentOS
Post Reply
osmedd
Posts: 2
Joined: 2005/12/15 18:02:49
Contact:

php-5.0.4-5 causes segfault

Post by osmedd » 2005/12/15 18:13:44

We are running CentOS 4.2 (x86_64) with current Apache/MySQL from the distribution. Due to a support request, we upgraded to use the php-5.0.4 that is in the centosplus channel. However we find Apache now segfaults when the php application successfully authenticates via the MySQL database (the application is SugarCRM, fyi).

I attempted to rebuild the 5.0.4-5 source rpm, but that fails too. Sigh. Any ideas?

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/libc-client.a(osdep.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/libc-client.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ext/imap/imap.la] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.61030 (%build)

Owen

Evolution
Posts: 229
Joined: 2005/02/22 16:10:54
Location: Houston Texas
Contact:

php-5.0.4-5 causes segfault

Post by Evolution » 2006/01/06 20:36:58

Other than loading/installing php5 from centosplus, were any other customizations made? php.ini changes etc? Do the log files provide any errors about the crash? Rebuilding may not help, as it may have the same issue as the previous release. How did you install from centosplus? did you use yum or did you get the rpm and force it in?

dayne
Posts: 3
Joined: 2006/01/07 01:47:54
Contact:

Re: php-5.0.4-5 causes segfault

Post by dayne » 2006/01/07 01:57:53

I am also interested in this problem. I need a custom PHP on my server (getting MapServer setup). I'm trying to build the php-4.3.9 source RPM and am getting the same error:

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/libc-client.a(osdep.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/libc-client.a: could not read symbols: Bad value

The steps taken to achive that: Install src rpm (yum install the devel dependancies). Edit php.spec and add '--enable-dbase' to ./configure options and add '-fPIC' to the CFLAGS. Then rpmbuild -bb php.spec. Nothing special beyond that.

Looks to me like the libc-client wasnt' compiled with -fPIC. Going around recompile a pile of other rpms doesn't sound like a good plan yet.

Evolution
Posts: 229
Joined: 2005/02/22 16:10:54
Location: Houston Texas
Contact:

Re: php-5.0.4-5 causes segfault

Post by Evolution » 2006/01/07 04:11:12

Ick. I just finished building a whole suite of mapserver rpms for an i386 based client. along with postgis, proj, geos etc. which version of the libc-client do you have installed?

dayne
Posts: 3
Joined: 2006/01/07 01:47:54
Contact:

Re: php-5.0.4-5 causes segfault

Post by dayne » 2006/01/10 01:26:15

My version of libc-client is: libc-client-2002e-14

I tested this on another one of my Centos4 boxes (one of my new installs). Only thing abnormal I've done on either of these boxes is enable dag's repository (RPMForge). Nothing special beyond that. The test on the other Centos x86_64 box also had the exact same problem .. just trying to rebuild the php src rpm fails.. w/o changing anything in spec file.
---
This inspired me to double check the status of my libc-client.. and I think I found the problem with it. The last yum update upgraded libc-client.. but for some reason it only installed the i386 update and not the x86_64. I manually downloaded the x86_64 libc-client from updates and installed it. Funny enough that fixed the issue with *that* error. Now I've got a new (and not much different error):

/usr/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/mysql/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

The same trick isn't going to work here since the mysql-devel package is still the system default and the x86_64 rpm is installed.

So what might be going on here? Something has gotten updated into sadness.

Any other ideas? I'll keep this thread updated as to my progress on this problem


-dayne

dayne
Posts: 3
Joined: 2006/01/07 01:47:54
Contact:

Re: php-5.0.4-5 causes segfault

Post by dayne » 2006/01/10 02:24:10

Well, w/o a lot of extra time and deadlines coming up (need this mapserver stuff all setup by end of the week).. I've found a solution to my problem

http://phprpms.sourceforge.net/

Provides me php-dbase support w/o having to recompile the php rpm.

However I do have an idea of what is wrong.. I'm pretty sure this is related to me using RPMForge repository. I had a buddy w/ a "clean" (no 3rd party repos) try rebuilding the php src rpm and he didn't have any issue. I will punt this problem to the RPMForge crew and see if they have any ideas.


-dayne

dnuttall
Posts: 20
Joined: 2005/03/16 11:11:07
Location: San Antonio, Texas

Re: php-5.0.4-5 causes segfault

Post by dnuttall » 2006/03/01 11:50:44

[quote]dayne wrote:
Well, w/o a lot of extra time and deadlines coming up (need this mapserver stuff all setup by end of the week).. [/quote]

Dayne,
Does this mean you were able to get mapserver to compile as a PHP5 extension and make it load?

I've tinkered with mapserver on i386/CentOS 4.2 w/PHP 5.0.4, and it appears to compile (i.e., I get the php_mapserver.so in the */mapscript/php3 directory), but moving the *.so and creating an *.ini and then restarting does NOT load/show with phpinfo().

I'd be grateful if you'd kindly share your mapserver configure options or insights that may be useful.

TIA and best regards from San Antonio, Texas
Dave

sesumpah77
Posts: 1
Joined: 2006/09/15 14:27:32

Re: php-5.0.4-5 causes segfault

Post by sesumpah77 » 2006/09/15 14:34:24

need to install package libc-client-2002e-14.x86_64.rpm to compile 64 bit php+imap otherwise it will use static library libc-client.a which cause u those problem ..

Post Reply

Return to “CentOS 4 - Webhosting Support”