Toon posts:

Problemen met compileren PHP op hp-ux 10.20

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik ben bezig om php te compileren op hp-ux 10.20

als ik deze configure doe:
code:
1
./configure --with-mysql --with-apache=/home/katui001/apache_1.3.9 --enable-track-vars --with-axps --with-zlib=/opt/zlib --enable-libgcc

dan gaat dat goed. Maar als ik make doe gaat ie hier fout:
code:
1
2
3
4
5
6
7
8
9
10
11
Making all in TSRM
make[1]: Entering directory `/afs2/php-4.0.6/TSRM'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c TSRM.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c tsrm_strtok_r.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c tsrm_virtual_cwd.c
tsrm_virtual_cwd.c: In function `virtual_open':
tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' when passed through `...'
tsrm_virtual_cwd.c:568: (so you should pass `int' not `mode_t' to `va_arg')
make[1]: *** [tsrm_virtual_cwd.lo] Error 1
make[1]: Leaving directory `/afs2/php-4.0.6/TSRM'
make: *** [all-recursive] Error 1

snapter nix van

ik heb gcc 3.0.1 en de hele ratteplan wel compleet volgens mij.

Iemand een idee????

  • Johannes Verelst
  • Registratie: Februari 2001
  • Laatst online: 14-11-2022
google:

http://www.google.com/search?hl=en&q=php+hp-ux+gcc+tsrm_virtual_cwd.c&btnG=Google+Search

Klik op de 3e link, is een site binnen .hp.com, dus dat klinkt goed:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe4fdc6af36b7d5118ff10090279cd0f9,00.html

Hmm, daar wordt gewezen naar specifieke instructies van php.net voor compilatie van php op hp-ux:

http://www.php.net/manual/en/install.hpux.php

maar onderop de pagina staat ook dit:
I had the same problem ;o) The first time I can help and not ask...
You only have to go in file tsrm_virtual_cwd.c in line 568 and change mode_t to int. Then save and run again. Should be ok then.
Volgende keer zelf zoeken? :-P

There are no stupid questions, but there are a lot of inquisitive idiots.