Subject: php-mysql on OS X
To: None <tech-pkg@netbsd.org>
From: John Klos <john@klos.com>
List: tech-pkg
Date: 05/12/2006 18:40:17
Hi,

php-gd is working great thanks to Min, but php-mysql fails. This is Mac OS 
X 10.4.6 on Intel with the latest pkgsrc, plus php-4.4.2 and MySQL 5.0.20.


  gcc -pipe -I. 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql 
-DPHP_ATOM_INC 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql/include 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql/main 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/main 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/TSRM 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/Zend 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/mysql 
-no-cpp-precomp 
-I/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include 
-DHAVE_CONFIG_H -O2 -c 
/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql/php_mysql.c 
-fno-common -DPIC -o .libs/php_mysql.o
In file included from /usr/include/sys/wait.h:110,
                  from /usr/include/stdlib.h:64,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/main/../main/php_config.h:2699,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/Zend/zend_config.h:1,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/Zend/zend.h:51,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/main/php.h:34,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql/php_mysql.c:32:
/usr/include/sys/signal.h:183: error: two or more data types in 
declaration specifiers
In file included from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/main/../main/php_config.h:2703,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/Zend/zend_config.h:1,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/Zend/zend.h:51,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/.buildlink/include/php/main/php.h:34,
                  from 
/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql/php_mysql.c:32:
/usr/include/sys/types.h:114: error: two or more data types in declaration 
specifiers
*** Error code 1

Stop.
bmake: stopped in 
/Volumes/sys/pkgsrc/databases/php-mysql/work/php-4.4.2/ext/mysql
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/databases/php-mysql


Ideas?

Thanks,
John Klos