Bug 150026

Summary: [PATCH] databases/php5-pdo_mysql: Fix building error
Product: Ports & Packages Reporter: joehorn
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description joehorn 2010-08-26 20:00:13 UTC
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for php5-pdo_mysql-5.3.3_1
===>  Extracting for php5-pdo_mysql-5.3.3_1
=> MD5 Checksum OK for php-5.3.3.tar.bz2.
=> SHA256 Checksum OK for php-5.3.3.tar.bz2.
===>  Patching for php5-pdo_mysql-5.3.3_1
===>   php5-pdo_mysql-5.3.3_1 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-pdo_mysql-5.3.3_1 depends on file: /usr/local/bin/phpize - found
===>   php5-pdo_mysql-5.3.3_1 depends on file: /usr/local/lib/php/20090626/pdo.so - found
===>   php5-pdo_mysql-5.3.3_1 depends on file: /usr/local/lib/php/20090626/mysql.so - found
===>   php5-pdo_mysql-5.3.3_1 depends on file: /usr/local/bin/autoconf-2.62 - found
===>  PHPizing for php5-pdo_mysql-5.3.3_1
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
./../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
./../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:2729: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
./../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
./../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:2729: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
===>  Configuring for php5-pdo_mysql-5.3.3_1
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... amd64-portbld-freebsd8.1
checking host system type... amd64-portbld-freebsd8.1
checking target system type... amd64-portbld-freebsd8.1
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for MySQL support for PDO... yes, shared
checking for the location of libz... no
checking for PDO includes... checking for PDO includes... /usr/local/include/php/ext
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC...
checking if c++ static flag  works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.1 ld.so
(cached) (cached) checking how to hardcode library paths into programs... unsupported
configure: creating ./config.status
config.status: creating config.h
===>  Building for php5-pdo_mysql-5.3.3_1
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/pdo_mysql.c -o pdo_mysql.lo
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_driver.c -o mysql_driver.lo
mkdir .libs
mkdir .libs
mkdir: .libs: File exists
 cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_driver.c  -fPIC -DPIC -o .libs/mysql_driver.o
 cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c -o mysql_statement.lo
 cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c  -fPIC -DPIC -o .libs/mysql_statement.o
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c: In function 'pdo_mysql_stmt_execute_prepared_libmysql':
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:167: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: 'MYSQL_BIND' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: for each function it appears in.)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:188: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:188: error: 'MAX_MEDIUMINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:191: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:191: error: 'MAX_INT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:194: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:194: error: 'MAX_BIGINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:197: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:197: error: 'MAX_TINYINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:200: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:200: error: 'MAX_SMALLINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:203: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:207: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:207: error: 'pdo_mysql_db_handle' has no member named 'max_buffer_size'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:208: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:208: error: 'pdo_mysql_db_handle' has no member named 'max_buffer_size'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:216: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:217: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:222: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:222: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:223: error: 'MYSQLND_PARAM_BIND' has no member named 'is_null'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:224: error: 'MYSQLND_PARAM_BIND' has no member named 'length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:225: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_type'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:228: warning: passing argument 2 of 'S->stmt->m->bind_result' from incompatible pointer type
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c: In function 'pdo_mysql_stmt_col_meta':
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:889: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.

Fix: Add the patch file.

Ref. http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo_mysql/mysql_statement.c?revision=301877&view=markup&pathrev=301877


Patch attached with submission follows:
How-To-Repeat: # cd /usr/ports/databases/php5-pdo_mysql
# make config

Enable MYSQLND option.

# make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-08-26 20:00:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2010-08-27 11:13:36 UTC
State Changed
From-To: open->feedback

Unable to reproduce. Can you give me more details about: 
- lang/php5 version 
- mysql version (if installed) 
- the state of the MYSQLND option for php5-pdo_mysql 
- the state of the MYSQLND option for php5-mysql
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2010-08-30 10:41:27 UTC
State Changed
From-To: feedback->closed

Closed per submitter request.
Comment 4 Christos Chatzaras 2010-10-08 21:45:36 UTC
Same problem here:



--->  Upgrade of databases/php5-pdo_mysql started at: Fri, 08 Oct 2010
23:47:16 +0300
--->  Upgrading 'php5-pdo_mysql-5.3.3' to
'php5-pdo_mysql-5.3.3_2' (databases/php5-pdo_mysql)
--->  Build of databases/php5-pdo_mysql started at: Fri, 08 Oct 2010
23:47:16 +0300
--->  Building '/usr/ports/databases/php5-pdo_mysql'
===>  Cleaning for php5-pdo_mysql-5.3.3_2
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for php5-pdo_mysql-5.3.3_1
===>  Extracting for php5-pdo_mysql-5.3.3_2
=> MD5 Checksum OK for php-5.3.3.tar.bz2.
=> SHA256 Checksum OK for php-5.3.3.tar.bz2.
===>  Patching for php5-pdo_mysql-5.3.3_2
===>   php5-pdo_mysql-5.3.3_2 depends on
file: /usr/local/include/php/main/php.h - found
===>   php5-pdo_mysql-5.3.3_2 depends on file: /usr/local/bin/phpize -
found
===>   php5-pdo_mysql-5.3.3_2 depends on
file: /usr/local/lib/php/20090626/pdo.so - found
===>   php5-pdo_mysql-5.3.3_2 depends on
file: /usr/local/lib/php/20090626/mysql.so - found
===>   php5-pdo_mysql-5.3.3_2 depends on
file: /usr/local/bin/autoconf-2.67 - found
===>  PHPizing for php5-pdo_mysql-5.3.3_2
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious
cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2019: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2040: AC_CACHE_CHECK is expanded from...
aclocal.m4:2729: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
configure.in:3: warning: prefer named diversions
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious
cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2019: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2040: AC_CACHE_CHECK is expanded from...
aclocal.m4:2729: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
===>  Configuring for php5-pdo_mysql-5.3.3_2
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd7.3
checking host system type... i386-portbld-freebsd7.3
checking target system type... i386-portbld-freebsd7.3
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to
regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for MySQL support for PDO... yes, shared
checking for the location of libz... no
checking for PDO includes... checking for PDO
includes... /usr/local/include/php/ext
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd7.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for c++ option to produce PIC... 
checking if c++ static flag  works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd7.3 ld.so
(cached) (cached) checking how to hardcode library paths into
programs... unsupported
configure: creating ./config.status
config.status: creating config.h
===>  Building for php5-pdo_mysql-5.3.3_2
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/ TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/pdo_mysql.c -o pdo_mysql.lo
mkdir .libs
 cc -I/usr/local/include/php/ext -I -I.
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql
-DPHP_ATOM_INC
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/ pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/ TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_driver.c -o mysql_driver.lo
 cc -I/usr/local/include/php/ext -I -I.
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql
-DPHP_ATOM_INC
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/ mysql_driver.c  -fPIC -DPIC -o .libs/mysql_driver.o
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/libtool --mode=compile cc -I/usr/local/include/php/ext -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/ TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c -o mysql_statement.lo
 cc -I/usr/local/include/php/ext -I -I.
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql
-DPHP_ATOM_INC
-I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/ mysql_statement.c  -fPIC -DPIC -o .libs/mysql_statement.o
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c: In function 'pdo_mysql_stmt_execute_prepared_libmysql':
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:167: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: 'MYSQL_BIND' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:175: error: for each function it appears in.)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:188: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:188: error: 'MAX_MEDIUMINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:191: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:191: error: 'MAX_INT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:194: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:194: error: 'MAX_BIGINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:197: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:197: error: 'MAX_TINYINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:200: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:200: error: 'MAX_SMALLINT_WIDTH' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:203: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:207: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:207: error: 'pdo_mysql_db_handle' has no member named 'max_buffer_size'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:208: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:208: error: 'pdo_mysql_db_handle' has no member named 'max_buffer_size'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:216: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:217: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:222: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:222: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:223: error: 'MYSQLND_PARAM_BIND' has no member named 'is_null'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:224: error: 'MYSQLND_PARAM_BIND' has no member named 'length'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:225: error: 'MYSQLND_PARAM_BIND' has no member named 'buffer_type'
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:228: warning: passing argument 2 of 'S->stmt->m->bind_result' from incompatible pointer type
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c: In function 'pdo_mysql_stmt_col_meta':
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.3/ext/pdo_mysql/mysql_statement.c:889: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
** Command failed [exit code 1]: /usr/bin/script
-qa /tmp/portupgrade20101008-41445-ug1pf8-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=php5-pdo_mysql-5.3.3 UPGRADE_PORT_VER=5.3.3 make
** Fix the problem and try again.
--->  Build of databases/php5-pdo_mysql ended at: Fri, 08 Oct 2010
23:47:34 +0300 (consumed 00:00:18)
--->  Upgrade of databases/php5-pdo_mysql ended at: Fri, 08 Oct 2010
23:47:34 +0300 (consumed 00:00:18)
--->  ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! databases/php5-pdo_mysql (php5-pdo_mysql-5.3.3)	(compiler error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Session ended at: Fri, 08 Oct 2010 23:47:34 +0300 (consumed
00:00:31)
Comment 5 Christos Chatzaras 2010-10-09 18:42:07 UTC
I was able to upgrade php5-mysql_pdo by make deinstall and make install.