ID: 26103
Updated by: [EMAIL PROTECTED]
Reported By: freebsd at argentproductions dot com
-Status: Bogus
+Status: Feedback
Bug Type: Compile Failure
Operating System: FreeBSD 5.1-RELEASE
PHP Version: 4.3.3
New Comment:
So it compiles with all the other options, as long as you don't enable
mime-magic ?
(I hope you remembered to delete config.cache when you tried different
options. :)
Previous Comments:
------------------------------------------------------------------------
[2003-11-03 21:27:24] freebsd at argentproductions dot com
Okay I've narrowed it down to this configure option:
--with-mime-magic=/usr/share/misc/magic.mime
If that's in the list it causes --with-mssql to die a horrible death.
This file is rather large. I can post it if you want but its the
standard distro magic.mime file that came with my system AFAICT. Its
just interesting that it would cause --with-mssql to crash.
Anything I can do to help figure out this problem? I'm not personally
addicted to MIME magic, but I was looking forward to playing with it.
I NEED the other options.
Is this still bogus?
Peace...
------------------------------------------------------------------------
[2003-11-03 20:55:09] freebsd at argentproductions dot com
Thanks for the quick reply...
I performed the following on a fresh download of the brand new 4.3.4
(which wasn't there literally 10 minutes before I posted this bug) :
./configure --disable-all --with-mssql=/usr/local
Surprisingly (to me) it worked flawlessly. No problems whatsoever.
However, when I use this configure command:
./configure --enable-versioning --enable-memory-limit --with-layout=GNU
--with-zlib-dir=/usr --disable-all --with-pfpro=/usr/local
--with-regex=php --disable-cli --with-apxs=/usr/local/sbin/apxs
--enable-bcmath --enable-calendar --with-bz2=/usr --enable-ctype
--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 --prefix=/usr/local i386-portbld-freebsd5.1
Which is apparently precisely what the Makefile is using (from the
phpinfo() page using the module currently installed)...
The same error as posted appears. I will play with it and try to see
why.
BTW: I completely uninstalled and reinstalled FreeTDS 0.61.2 from the
latest available code and the error remains. It is seeming like a
problem between mssql and some other configure options. If I leave the
mssql part out of the configure chain there are no errors.
So, still no solution yet... :-/ I'll play with the configure options
and see which one(s) are not happy with the mssql option.
------------------------------------------------------------------------
[2003-11-03 19:57:41] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[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