ID: 26103
Updated by: [EMAIL PROTECTED]
Reported By: freebsd at argentproductions dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: FreeBSD 5.1-RELEASE
PHP Version: 4.3.3
New Comment:
Looks like your freetds installation is somewhat broken.
Try PHP 4.3.4 with this configure line:
# ./configure --disable-all --with-mssql=/usr/local
And if this still happens, check your freetds installation,
it seems like there is some conflict between some header files you have
installed in /usr/local/include.
Previous Comments:
------------------------------------------------------------------------
[2003-11-03 19:41:44] freebsd at argentproductions dot com
Description:
------------
After an extensive search that came up with nothing quite like this
scenario, I figured I'd post this since its eating up all my time and I
have to get this up ASAP. Any and all comments / suggestions are very
welcome!
When building mod_php4 from the FreeBSD port (using PHP 4.3.3 release)
I get a compile error (listed in "Actual Result" section). So far I've
had no other trouble with this system, and a previous compilation of
4.3.3 with mssql at one point did succeed, but since then I am not sure
what has changed as its been almost two months now since I last
compiled mod_php4. I have tried a number of things to fix this
problem, but since I'm using the port management system, changing the
actual PHP distribution code is all but impossible. I need the port
management system for version tracking. An attempt to use 4.3.4RC1
failed with the same exact error. There is not yet a port for
4.3.4RC3.
Environment is as follows:
FreeBSD 5.1-RELEASE with latest security patches.
FreeTDS 0.61.2 installed with --prefix=/usr/local --with-tdsver=7.0
--enable-msdblib
Configure Options (note: I'm typing this by hand from the Makefile for
the port, so forgive any misspellings I might accidentally do...)
--enable-versioning --enable-memory-limit --with-layout=GNU
--with-zlib-dir=/usr --disable-all -- with-pfpro=/usr/local
--with-regex=php --enable-bcmath --enable-calendar --with-bz2=/usr
--with-curl=/usr/local --with-dom=/usr/local --with-dom-xslt=/usr/local
--with-dom-exslt=/usr/local --enable-ftp --with-gd
--enable-gd-native-ttf --enable-gd-jis-conv
--with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local
--with-png-dir=/usr/local --with-gettext=/usr/local
--with-iconv=/usr/local --with-imap=/usr/local
--with-imap-ssl=/usr/local --enable-mbstring --enable-mbregex
--with-mcal=/usr/local --with-mcrypt=/usr/local --with-mhash=/usr/local
--with-mime-magic=/usr/share/misc/magic.mime --with-mysql=/usr/local
--with-openssl=/usr --enable-overload --with-pcre-regex=yes
--enable-posix --enable-session --with-mssql=/usr/local
--enable-tokenizer --enable-xml --with-expat-dir=/usr/local
--with-zlib=yes
Expected result:
----------------
I expected a clean compile as it has done before (actually, it did it
once before using an RC of 4.3.3 (It might have been the release,
even). I am not sure why a recompile all of a sudden causes problems.
Actual result:
--------------
/bin/sh /usr/ports/www/mod_php4/work/php-4.3.3/libtool --silent
--preserve-dup-deps --mode=compile cc -Imain/
-I/usr/ports/www/mod_php4/work/php-4.3.3/main/ -DPHP_ATOM_INC
-I/usr/ports/www/mod_php4/work/php-4.3.3/include
-I/usr/ports/www/mod_php4/work/php-4.3.3/main
-I/usr/ports/www/mod_php4/work/php-4.3.3
-I/usr/ports/www/mod_php4/work/php-4.3.3/Zend -I/usr/local/include
-I/usr/local/include/libxml2 -I/usr/local/include/freetype2
-I/usr/local/include/c-client -I/usr/local/include/mcal
-I/usr/local/include/mysql
-I/usr/ports/www/mod_php4/work/php-4.3.3/TSRM -O -pipe -march=pentium3
-prefer-pic -c main/internal_functions.c -o
main/internal_functions.lo
In file included from /usr/local/include/sybfront.h:23,
from /usr/local/include/sqlfront.h:23,
from
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:36,
from main/internal_functions.c:55:
/usr/local/include/sybdb.h:103: syntax error before numeric constant
/usr/local/include/sybdb.h:150: syntax error before numeric constant
/usr/local/include/sybdb.h:177: syntax error before numeric constant
/usr/local/include/sybdb.h:204: syntax error before numeric constant
/usr/local/include/sybdb.h:210: syntax error before numeric constant
/usr/local/include/sybdb.h:281: syntax error before numeric constant
/usr/local/include/sybdb.h:285: syntax error before numeric constant
/usr/local/include/sybdb.h:339: syntax error before numeric constant
/usr/local/include/sybdb.h:453: syntax error before numeric constant
In file included from /usr/local/include/sybfront.h:23,
from /usr/local/include/sqlfront.h:23,
from
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:36,
from main/internal_functions.c:55:
/usr/local/include/sybdb.h:20:1: unterminated #ifndef
In file included from /usr/local/include/sqlfront.h:23,
from
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:36,
from main/internal_functions.c:55:
/usr/local/include/sybfront.h:20:1: unterminated #ifndef
In file included from
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:36,
from main/internal_functions.c:55:
/usr/local/include/sqlfront.h:20:1: unterminated #ifndef
In file included from main/internal_functions.c:55:
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:26:1:
unterminated #if
/usr/ports/www/mod_php4/work/php-4.3.3/ext/mssql/php_mssql.h:22:1:
unterminated #ifndef
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.3.3.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade27655.0 make
** Fix the problem and try again.
** The following packages were not installed or upgraded (*:skipped /
!:failed)
! www/mod_php4 (mod_php4-4.3.3,1) (bad C++ code)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26103&edit=1