|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
PHP Compile Failed on Mac OS 10.3.2
Hi there,
I'm having a problem installing PHP on Mac OS X. I'm just wondering if anyone else out there has experienced the same problem with installing PHP 4.3.4 on Mac OS 10.3.2 (released Dec 17, 2003). The configuration worked fine. The compile seems to be failing (Error 1). Here's an abridged transcript: [Steve:~/Applications/php-4.3.4] jthoburn% ./configure --with-apxs ... [Steve:~/Applications/php-4.3.4] jthoburn% make ... php-4.3.4/ext/mysql/libmysql/violite.c:22:22: sys/poll.h: No such file or directory ... make: *** [ext/mysql/libmysql/violite.lo] Error 1 [Steve:~/Applications/php-4.3.4] jthoburn% Would Appreciate anyone's help and/or confirmation that they're having a problem doing the same thing. Thanks much, -Jim ////////////////// Full Transcript ////////////////// [Steve:~/Applications/php-4.3.4] jthoburn% ./configure --with-apxs creating cache ./config.cache checking host system type... powerpc-apple-darwin7.2.0 checking for gcc... gcc ... Generating files updating cache ./config.cache creating ./config.status creating php4.spec creating main/build-defs.h creating scripts/phpize creating scripts/php-config creating sapi/cli/php.1 creating main/php_config.h creating number.c creating number.h creating main/internal_functions.c creating main/internal_functions_cli.c ... Thank you for using PHP. [Steve:~/Applications/php-4.3.4] jthoburn% make gcc -Iext/ctype/ -I/Users/jthoburn/Applications/php-4.3.4/ext/ctype/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/ctype/ctype.c -o ext/ctype/ctype.o && echo > ext/ctype/ctype.lo gcc -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.o && echo > ext/mysql/php_mysql.lo gcc -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/libmysql.c -o ext/mysql/libmysql/libmysql.o && echo > ext/mysql/libmysql/libmysql.lo /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/libmysql.c: In function `connect2': /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/libmysql.c:183: warning: passing arg 5 of `getsockopt' from incompatible pointer type gcc -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/errmsg.c -o ext/mysql/libmysql/errmsg.o && echo > ext/mysql/libmysql/errmsg.lo gcc -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/net.c -o ext/mysql/libmysql/net.o && echo > ext/mysql/libmysql/net.lo gcc -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/Users/jthoburn/Applications/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/Users/jthoburn/Applications/php-4.3.4/include -I/Users/jthoburn/Applications/php-4.3.4/main -I/Users/jthoburn/Applications/php-4.3.4 -I/Users/jthoburn/Applications/php-4.3.4/Zend -I/Users/jthoburn/Applications/php-4.3.4/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/jthoburn/Applications/php-4.3.4/TSRM -g -O2 -c /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c -o ext/mysql/libmysql/violite.o && echo > ext/mysql/libmysql/violite.lo /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:22:22: sys/poll.h: No such file or directory /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c: In function `vio_peer_addr': /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:385: warning: passing arg 3 of `getpeername' from incompatible pointer type /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c: In function `vio_poll_read': /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:415: storage size of `fds' isn't known /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:419: `POLLIN' undeclared (first use in this function) /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:419: (Each undeclared identifier is reported only once /Users/jthoburn/Applications/php-4.3.4/ext/mysql/libmysql/violite.c:419: for each function it appears in.) make: *** [ext/mysql/libmysql/violite.lo] Error 1 [Steve:~/Applications/php-4.3.4] jthoburn% ////////////////// End Transcript ////////////////// |
|
#2
|
||||
|
||||
|
RE: PHP Compile Failed on Mac OS 10.3.2
It looks like you're having a problem with the mysql extensions. I've never compiled in OS X before, but here's some things I'd check, first:
A) Do you need the MySQL extensions available? B) Do you have MySQL installed? C) Have you tried updating ld.so.conf? -Tim |
|
#3
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
I just tried and experienced the same thing. Did you ever figure it out?
|
|
#4
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
I finally got it. Install mysql. Seems wrong that mysql is required even if you don't specify --with-mysql!
|
|
#5
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
That didn't quite work in my case. I'm trying Entropy.
|
|
#6
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
same for me here!
i have previously installed mysql by server logistics. i get exactly the same errors with make. i tried entropy which installs but phpinfo will still give me version 4.3.2 instead of 4.3.4 .. |
|
#7
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
me again ..
i installed entropy over the whole stuff once again and now its working out very nicely !!! everything .. --with-gd |
|
#8
|
|||
|
|||
|
RE: PHP Compile Failed on Mac OS 10.3.2
I found a solution to the problem!
I installed the Mac OS X Xcode Tools package that comes with the Mac OS 10.3 Installation disc set. Then I tried installing PHP again. It works without a hitch now. The problem was that the installation depends on a number of .h files located in /usr/include (most notably "poll.h"). For some reason these weren't installed when I upgraded to Mac OS 10.3 (But they are installed by the Xcode Tools package). The strange thing is, I've installed PHP on Mac OS 10.2 in the past with no problems. I sure wish there was more information on apple.com and php.net about the "/usr/include" folder and PHP's dependency on it (especially if it's not installed by default). I hope this helps somebody else at some point. Thank you to everyone who replied to my original post. -Jim |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP Compile Failed on Mac OS 10.3.2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|