PHP 4.1.1 & MySQL 3.23.47 & Apache 3.1.14

Pagina: 1
Acties:

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

Topicstarter
ik heb deze vraag ook in ANS gesteld ([topic=377887])
Bij nader inzien lijkt NOS me toch een betere plek :D

Ik draai op het moment php 4.0.3 met mysql support.
Nu leek het mij een goed plan om te upgraden naar 4.1.1 :)

Zo gezegd, zo gedaan.
Nu krijg ik alleen de exacte foutmelding die hier beschreven staat (httpd dumps core).

De oplossing is
If your MySQL libs are linked against pthreads this will happen. Check using ldd. If they are, grab the MySQL tarball and compile from source, or recompile from the source rpm and remove the switch in the spec file that turns on the threaded client code. Either of these suggestions will fix this. Then recompile PHP with the new MySQL libs.
Het enige probleem is dat ik MySQL al vanaf de source compile.....
De configure commandline:
code:
1
2
3
./configure \
--with-unix-socket-path=/var/mysql/mysql.sock \
--with-mysqld-user=mysql

en dat mysql (volgens mij) niet met tegen pthreads gelinkt is:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ldd /usr/local/bin/mysql
/usr/local/bin/mysql:
      -lcurses.8 => /usr/lib/libcurses.so.8.0 (0x4003f000)
      -lmysqlclient.10 => /usr/local/lib/mysql/libmysqlclient.so.10.0 (0x4007e000)
      -lz.1 => /usr/lib/libz.so.1.3 (0x40099000)
      -lm.0 => /usr/lib/libm.so.0.1 (0x400a5000)
      -lstdc++.30 => /usr/lib/libstdc++.so.30.0 (0x400b9000)
      -lc.26 => /usr/lib/libc.so.26.2 (0x400fd000)

# ldd /usr/local/libexec/mysqld
/usr/local/libexec/mysqld:
      -lc_r.4 => /usr/lib/libc_r.so.4.2 (0x402bd000)
      -lz.1 => /usr/lib/libz.so.1.3 (0x40387000)
      -lstdc++.30 => /usr/lib/libstdc++.so.30.0 (0x40393000)
      -lm.0 => /usr/lib/libm.so.0.1 (0x403d7000)

Ik zal ongetwijfeld "iets" over het hoofd zien, maar WAT :?

Verwijderd

windows of linux/

  • bodiug
  • Registratie: Augustus 2001
  • Laatst online: 11:26
Er staat als mysql LIBS gelinked staan naar pthread. Kan dit gebeuren. Jij doet ldd op de mysql binaries.

Overigens, met pthreads linken moet je expliciet aangeven.
--with-pthreads

Verwijderd

Op zaterdag 26 januari 2002 11:57 schreef ericjanssen het volgende:
windows of linux/
Das toch wel vrij duidelijk te zien volgens mij....
in NOS en als je de meldingen bekijkt....

  • QuarK
  • Registratie: Maart 2000
  • Laatst online: 09-07 21:48
If your MySQL libs are linked against pthreads this will happen. Check using ldd. If they are, grab the MySQL tarball and compile from source, or recompile from the source rpm and remove the switch in the spec file that turns on the threaded client code. Either of these suggestions will fix this. Then recompile PHP with the new MySQL libs.
Heb je die suggestie nou gevolgd of niet?

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

Topicstarter
Op zaterdag 26 januari 2002 11:58 schreef guidob het volgende:
Er staat als mysql LIBS gelinked staan naar pthread. Kan dit gebeuren. Jij doet ldd op de mysql binaries.

Overigens, met pthreads linken moet je expliciet aangeven.
--with-pthreads
ldd op de libraries
code:
1
2
3
4
# ldd /usr/local/lib/mysql/libmysqlclient.so.10.0
ldd: /usr/local/lib/mysql/libmysqlclient.so.10.0: no support for dynamic libraries
# ldd /usr/local/lib/mysql/libmysqlclient.so.6.0   
ldd: /usr/local/lib/mysql/libmysqlclient.so.6.0: no support for dynamic libraries

het rare is dat php4.0.3+MySQL 3.23.47 wel gewoon werkt :(
OS is trouwens OpenBSD 2.8

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

Topicstarter
Op zaterdag 26 januari 2002 12:08 schreef QuarK het volgende:

[..]

Heb je die suggestie nou gevolgd of niet?
Die suggestie is IMHO voor als je via een RPM installeerd, aangezien ik van source compile is die suggestie volgens mij niet van toepassing ....
Pagina: 1