Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2006 05:42:35 -0500
From:      Gerard Seibert <gerard@seibercom.net>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Error in c++ code when building php5-mysql
Message-ID:  <20061116053319.8FC4.GERARD@seibercom.net>
In-Reply-To: <200611161133.20456.shinjii@virusinfo.rdksupportinc.com>
References:  <200611161133.20456.shinjii@virusinfo.rdksupportinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday November 15, 2006 at 08:33:20 (PM) Warren Liddell wrote:


> Im running FreeBSD 6.2-PRERELEASE .. below is the error when trying to build 
> this port..
> 
> 
> ==============
> 
> ===>  Building for php5-mysql-5.2.0
> /bin/sh /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/libtool --mode=compile 
> cc  -I. -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/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/mysql  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c -o 
> php_mysql.lo
> mkdir .libs
>  
> cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.2.0/ext/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/mysql -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c  -fPIC -DPIC -o .libs/php_mysql.o
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:120: 
> warning: parameter names (without types) in function declaration
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:145: 
> error: syntax error before '{' token
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:145: 
> warning: initialization from incompatible pointer type
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:145: 
> warning: initialization makes pointer from integer without a cast
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:146: 
> error: syntax error before '{' token
> /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql/php_mysql.c:45:1: 
> unterminated #if
> *** Error code 1
> 
> Stop in /usr/ports/databases/php5-mysql/work/php-5.2.0/ext/mysql.
> *** Error code 1
> 
> Stop in /usr/ports/databases/php5-mysql.

Interesting! I just built this a few days ago without incident. Off hand,
try cleaning out your '/usr/ports/distfiles' directory, then either
running 'make clean' in the '/usr/ports/databases/php5-mysql' directory,
or running 'portsclean -C -L' to get rid of any old crud and then
rerunning the make process. You probably should update your ports tree
prior to attempting to build again in case any changes have occurred. If
you have 'portmanager' installed, you could try this: 'portmanager
databases/php5-mysql -l' and see what transpires.


-- 
Gerard

     Mail from '@gmail' is rejected and/or discarded here. Don't waste
     your time!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061116053319.8FC4.GERARD>