[PHP] error bij make

Pagina: 1
Acties:

  • Mannes
  • Registratie: Februari 2001
  • Laatst online: 17-04 17:21
Ik wil PHP 4.2.2 instaleren icm apache 2.0.4.0
apache doet het inmiddels maar PHP geeft telkens een foutmelding bij make

ik probeer dit op linux debian 2.2.19
ik heb apache geconfigd met --prefix=/usr/local/apache --enable-modules=so

code:
1
2
./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
make && make install

geeft:
Making all in apache2filter
make[2]: Entering directory `/root/php-4.2.2/sapi/apache2filter'
make[3]: Entering directory `/root/php-4.2.2/sapi/apache2filter'
/bin/sh /root/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/root/php-4.2.2/sapi/apache2filter -I/root/php-4.2.2/main -I/root/php-4.2.2 -I/usr/local/apache/include -I/root/php-4.2.2/Zend -I/root/php-4.2.2/ext/mysql/libmysql -I/root/php-4.2.2/ext/xml/expat -D_REENTRANT -I/root/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast
sapi_apache2.c:534: too few arguments to function `ap_register_output_filter'
sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast
sapi_apache2.c:535: too few arguments to function `ap_register_input_filter'
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.2/sapi'
make: *** [all-recursive] Error 1

A computer without Windows is like a fish without a bicycle.


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 21-05 15:56
./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
make && make install
op deze manier gaat hij ook make install uitvoeren ookal heeft make een error geproduceerd.
ik denk dat je eerst moet kijken wat voor error MAKE geeft voordat je MAKE INSTALL gaat doen.

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • intoxicated
  • Registratie: Januari 2001
  • Niet online

intoxicated

Haaaai :w | ALT-S

a casema user schreef op 29 augustus 2002 @ 17:36:
op deze manier gaat hij ook make install uitvoeren ookal heeft make een error geproduceerd.
Absoluut niet, wanneer je '&&' gebruikt, wordt het volgende commando alleen uitgevoerd als het voorgaande niet met een error eindigde.

"Anyone who does not agree with me is mentally sick, and should be shot I'm afraid to say."
- Pastor Richards @ VCPR


  • Mannes
  • Registratie: Februari 2001
  • Laatst online: 17-04 17:21
intoxicated schreef op 29 augustus 2002 @ 17:41:
[...]
Absoluut niet, wanneer je '&&' gebruikt, wordt het volgende commando alleen uitgevoerd als het voorgaande niet met een error eindigde.
ja.. dat wist ik al wel ... :)

en die error is dus van de gewone make.
maar is er iemand die wwet waar het aan ligt..
heb de config al een paar keer gedaan.. alles opnieuw gedownload en uitgepakt.. etc. etc.

A computer without Windows is like a fish without a bicycle.


Verwijderd

kijk eens op http://nl.php.net/manual/en/install.apache.php

met name moet je misschien eens lezen wat er over apxs2 staat?

  • purge
  • Registratie: November 2000
  • Niet online
Deze foutmelding heb ik ook gehad, wat ik daarna heb gedaan is de volgende bestanden (source) veranderd: (na wat googlen)

- sapi/apache2filter/sapi_apache2.c (ongeveer regel 567)
code:
1
2
ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);

Deze heb ik gewijzigd in:
code:
1
2
ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);

en

- sapi/apache2filter/php_functions.c (regel 93)
code:
1
MODULE_MAGIC_AT_LEAST

Dit heb ik gewijzigd in:
code:
1
AP_MODULE_MAGIC_AT_LEAST


---
Niet dat php daarna werkte maar ik kon in ieder geval 'make' en daarna 'make install' zonder foutmeldingen uitvoeren.

Daarna zit er iets niet lekker met de versies van Apache en PHP; de volgende foutmelding krijg ik bij het starten van Apache2 (na het wijzigen van de httpd.conf)
Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: Undefined symbol "pthread_getspecific"
Misschien dat iemand hier iets meer over weet?

  • intoxicated
  • Registratie: Januari 2001
  • Niet online

intoxicated

Haaaai :w | ALT-S

Mannes schreef op 29 augustus 2002 @ 22:54:
ja.. dat wist ik al wel ... :)
't Was ook een reply op 'a casema user', niet op jouw message :P

"Anyone who does not agree with me is mentally sick, and should be shot I'm afraid to say."
- Pastor Richards @ VCPR


  • Solarsparc
  • Registratie: Juli 2001
  • Laatst online: 03:05
Voor zover ik heb gelezen, is de php support voor apache 2.x nog steeds beta en niet supported.
Ik heb het in ieder geval niet werkend kunnen krijgen. Ik heb apache uiteindelijk maar gedowngrade naar de 1.3.x branch. Die is stable, niet exploitable en bovendien heeft apache 2 niet zo heel veel voordelen ten opzichte van apache 1.3x, alleen als je heel veel threads hebt draaien zou apache 2 wat sneller zijn enzo.

  • Mannes
  • Registratie: Februari 2001
  • Laatst online: 17-04 17:21
dus we gaan downgraden naar 1.3.x en dan moet alles werken?
keej.. ik probeer het eens.

A computer without Windows is like a fish without a bicycle.


  • Mannes
  • Registratie: Februari 2001
  • Laatst online: 17-04 17:21
De make en install ging dit keer goed..

maar ik krijg een fout bij het laden van de php4 module.
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: core_globals

A computer without Windows is like a fish without a bicycle.


  • Kees
  • Registratie: Juni 1999
  • Laatst online: 19:32

Kees

Serveradmin / BOFH / DoC
voor de nieuwste apache moet je de CVS versie van PHP gebruiken.

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan


  • Solarsparc
  • Registratie: Juli 2001
  • Laatst online: 03:05
Doe 's make uninstall in je apache source dir, dan zou ie als het goed is alle troep weg moeten halen die eventueel is blijven staan tijdens je vorige install. Dan nog es installeren. Ik denk namelijk dat ie de apache 2 versie van libphp heeft laten staan.
Pagina: 1