Bug 109368

Summary: Build error in php5-iconv
Product: Ports & Packages Reporter: Christian Marg <marg>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Christian Marg 2007-02-20 19:00:14 UTC
Trying to build /usr/port/converters/php5-iconv I get an error:
====================================================================
===>  Building for php5-iconv-5.2.1_2
/bin/sh /usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/libtool --mode=compile cc -I"/usr/local/include" -I. -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv -DPHP_ATOM_INC -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/include -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/main -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv -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  -DHAVE_CONFIG_H  -I/usr/local/include -O -pipe   -c /usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c -o iconv.lo
mkdir .libs
 cc -I/usr/local/include -I. -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv -DPHP_ATOM_INC -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/include -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/main -I/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv -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 -DHAVE_CONFIG_H -I/usr/local/include -O -pipe -c /usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c  -fPIC -DPIC -o .libs/iconv.o
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:145: error: `iconv' undeclared here (not in a function)
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:146: error: syntax error before '{' token
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:146: warning: initialization from incompatible pointer type
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:146: warning: initialization from incompatible pointer type
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:146: warning: initialization makes pointer from integer without a cast
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:147: error: syntax error before '{' token
/usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv/iconv.c:42:1: unterminated #ifdef
*** Error code 1

Stop in /usr/ports/converters/php5-iconv/work/php-5.2.1/ext/iconv.
*** Error code 1

Stop in /usr/ports/converters/php5-iconv.
====================================================================

I tried updating my ports collection, didn't help.

How-To-Repeat: On my system: Just try to build php5-iconv.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-20 21:25:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2007-02-21 07:22:32 UTC
State Changed
From-To: open->feedback

Something is screwed up in your build system, try removing 
all php ports and autotools.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2007-02-22 07:04:53 UTC
State Changed
From-To: feedback->closed

The submitter solved his problem.