Date: Thu, 26 Aug 2010 18:50:20 GMT From: Joe Horn <joehorn@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/150026: [PATCH] databases/php5-pdo_mysql: Fix building error Message-ID: <201008261850.o7QIoKn0033980@www.freebsd.org> Resent-Message-ID: <201008261900.o7QJ0DtV095408@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 150026 >Category: ports >Synopsis: [PATCH] databases/php5-pdo_mysql: Fix building error >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 26 19:00:13 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Joe Horn >Release: FreeBSD 8.1-RELEASE amd64 >Organization: Taiwanese User >Environment: System: FreeBSD joehorn.idv.tw 8.1-RELEASE FreeBSD 8.1-RELEASE #2: Tue Jul 20 22:36:33 CST 2010 >Description: ===> 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. >How-To-Repeat: # cd /usr/ports/databases/php5-pdo_mysql # make config Enable MYSQLND option. # make >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: diff -ruN /usr/ports/databases/php5-pdo_mysql/files/patch-mysql_statement.c /home/admin/joehorn/php5-pdo_mysql/files/patch-mysql_statement.c --- /usr/ports/databases/php5-pdo_mysql/files/patch-mysql_statement.c 1970-01-01 08:00:00.000000000 +0800 +++ /home/admin/joehorn/php5-pdo_mysql/files/patch-mysql_statement.c 2010-08-27 02:33:33.000000000 +0800 @@ -0,0 +1,11 @@ +--- mysql_statement.c.orig 2010-08-27 02:05:49.000000000 +0800 ++++ mysql_statement.c 2010-08-27 02:06:27.000000000 +0800 +@@ -131,7 +131,7 @@ + } + /* }}} */ + +-#ifdef HAVE_MYSQL_STMT_PREPARE ++#ifndef PDO_USE_MYSQLND + static int pdo_mysql_stmt_execute_prepared_libmysql(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ + { + pdo_mysql_stmt *S = stmt->driver_data; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008261850.o7QIoKn0033980>