ports/151133: Unable to build databases/php5-mysqli

Gerard Seibert gerard at seibercom.net
Fri Oct 1 08:20:03 UTC 2010


>Number:         151133
>Category:       ports
>Synopsis:       Unable to build databases/php5-mysqli
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 01 08:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Gerard Seibert
>Release:        FreeBSD 8.1/amd64
>Organization:
seibercom.net
>Environment:
FreeBSD scorpio.seibercom.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Sep 22 21:21:36 EDT 2010     gerard at scorpio.seibercom.net:/usr/obj/usr/src/sys/SCORPIO  amd64

>Description:
The databases/php5-mysqli port will not build. A copy of the build log follows.

Script started on Fri Oct  1 03:51:45 2010
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for php5-mysqli-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-mysqli-5.3.3_2
===>  Applying FreeBSD patches for php5-mysqli-5.3.3_2
===>   php5-mysqli-5.3.3_2 depends on file: /usr/local/bin/phpize - found
===>   php5-mysqli-5.3.3_2 depends on file: /usr/local/bin/autoconf-2.67 - found
===>   php5-mysqli-5.3.3_2 depends on shared library: mysqlclient.16 - found
===>  PHPizing for php5-mysqli-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
configure.in:3: warning: prefer named diversions
===>  Configuring for php5-mysqli-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... 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... gawk
checking for MySQLi support... yes, shared
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... yes
checking for mysql_set_character_set in -lmysqlclient... yes
checking for mysql_stmt_next_result in -lmysqlclient... yes
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/local/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/local/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-mysqli-5.3.3_2
/bin/sh /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/libtool --mode=compile cc  -I. -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -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 -I/usr/local/include/mysql  -DHAVE_CONFIG_H  -O2 -pipe -march=athlon64 -fno-strict-aliasing   -c /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c -o mysqli.lo
/bin/sh /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/libtool --mode=compile cc  -I. -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -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 -I/usr/local/include/mysql  -DHAVE_CONFIG_H  -O2 -pipe -march=athlon64 -fno-strict-aliasing   -c /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c -o mysqli_api.lo
mkdir .libs
 cc -I. -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -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 -I/usr/local/include/mysql -DHAVE_CONFIG_H -O2 -pipe -march=athlon64 -fno-strict-aliasing -c /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c  -fPIC -DPIC -o .libs/mysqli_api.o
 cc -I. -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/include -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/main -I/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli -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 -I/usr/local/include/mysql -DHAVE_CONFIG_H -O2 -pipe -march=athlon64 -fno-strict-aliasing -c /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c  -fPIC -DPIC -o .libs/mysqli.o
In file included from /usr/local/include/mysql/my_global.h:76,
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_config.h:1217:1: warning: "PACKAGE_NAME" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:56:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_config.h:1220:1: warning: "PACKAGE_STRING" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:24:
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_config.h:1217:1: warning: "PACKAGE_NAME" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:56:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_config.h:1220:1: warning: "PACKAGE_STRING" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:59:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_config.h:1223:1: warning: "PACKAGE_TARNAME" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:62:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_config.h:1226:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:68:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_sys.h:47,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_pthread.h:742:36: error: mysql/psi/mysql_thread.h: No such file or directory
In file included from /usr/local/include/mysql/my_sys.h:47,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_pthread.h:749: error: expected specifier-qualifier-list before 'mysql_cond_t'
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_sys.h:338: error: expected specifier-qualifier-list before 'mysql_mutex_t'
/usr/local/include/mysql/my_sys.h:354: error: expected specifier-qualifier-list before 'mysql_mutex_t'
/usr/local/include/mysql/my_sys.h:417: error: expected specifier-qualifier-list before 'mysql_mutex_t'
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_sys.h:960:27: error: mysql/psi/psi.h: No such file or directory
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:78,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/m_string.h:219:26: error: mysql/plugin.h: No such file or directory
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:78,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/m_string.h: In function 'lex_string_set':
/usr/local/include/mysql/m_string.h:304: error: dereferencing pointer to incomplete type
/usr/local/include/mysql/m_string.h:305: error: dereferencing pointer to incomplete type
*** Error code 1
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:59:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_config.h:1223:1: warning: "PACKAGE_TARNAME" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:62:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_global.h:76,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:58,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_config.h:1226:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:24:
/usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/config.h:68:1: warning: this is the location of the previous definition
In file included from /usr/local/include/mysql/my_sys.h:47,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_pthread.h:742:36: error: mysql/psi/mysql_thread.h: No such file or directory
In file included from /usr/local/include/mysql/my_sys.h:47,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_pthread.h:749: error: expected specifier-qualifier-list before 'mysql_cond_t'
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_sys.h:338: error: expected specifier-qualifier-list before 'mysql_mutex_t'
/usr/local/include/mysql/my_sys.h:354: error: expected specifier-qualifier-list before 'mysql_mutex_t'
/usr/local/include/mysql/my_sys.h:417: error: expected specifier-qualifier-list before 'mysql_mutex_t'
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:74,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/my_sys.h:960:27: error: mysql/psi/psi.h: No such file or directory
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:78,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/m_string.h:219:26: error: mysql/plugin.h: No such file or directory
In file included from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/php_mysqli_structs.h:78,
                 from /usr/ports/databases/php5-mysqli/work/php-5.3.3/ext/mysqli/mysqli_api.c:33:
/usr/local/include/mysql/m_string.h: In function 'lex_string_set':
/usr/local/include/mysql/m_string.h:304: error: dereferencing pointer to incomplete type
/usr/local/include/mysql/m_string.h:305: error: dereferencing pointer to incomplete type
*** Error code 1
2 errors
*** Error code 1

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

Script done on Fri Oct  1 03:51:58 2010

>How-To-Repeat:
Attempt to build the port.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list