PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old January 17th, 2004, 07:30 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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 //////////////////

Reply With Quote
  #2  
Old January 22nd, 2004, 03:33 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
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

Reply With Quote
  #3  
Old January 29th, 2004, 12:14 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP Compile Failed on Mac OS 10.3.2

I just tried and experienced the same thing. Did you ever figure it out?

Reply With Quote
  #4  
Old January 29th, 2004, 12:29 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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!

Reply With Quote
  #5  
Old February 1st, 2004, 11:28 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP Compile Failed on Mac OS 10.3.2

That didn't quite work in my case. I'm trying Entropy.

Reply With Quote
  #6  
Old February 2nd, 2004, 12:19 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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 ..

Reply With Quote
  #7  
Old February 2nd, 2004, 07:39 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #8  
Old February 2nd, 2004, 10:17 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP Compile Failed on Mac OS 10.3.2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway