php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21746 gmake: *** [ext/ctype/ctype.lo] Error 1
Submitted: 2003-01-19 05:31 UTC Modified: 2003-01-19 17:49 UTC
From: sjanktie at imap dot cc Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.0 OS: FreeBSD 4.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sjanktie at imap dot cc
New email:
PHP Version: OS:

 

 [2003-01-19 05:31 UTC] sjanktie at imap dot cc
When I run this configure command (and any other options with apxs):
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql \
--enable-track-vars \
--with-openssl=/usr \
--enable-force-cgi-redirect \
--enable-sockets \
--with-gettext \
--with-mm

Followed with the command:
gmake

I get the following error message:

Server# gmake
/bin/sh libtool --silent --mode=compile gcc  -Iext/ctype/ -I/usr/local/src/php-4.3.0/ext/ctype/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.0/include -I/usr/local/src/php-4.3.0/main -I/usr/local/src/php-4.3.0 -I/usr/local/src/php-4.3.0/Zend -I/usr/local/include -I/usr/local/src/php-4.3.0/ext/xml/expat  -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -DEAPI -DAPPLLIB_EXP=/usr/local/lib/perl5/5.6.1/BSDPAN -I/usr/local/src/php-4.3.0/TSRM  -g -O2  -prefer-pic -c /usr/local/src/php-4.3.0/ext/ctype/ctype.c -o ext/ctype/ctype.lo 
In file included from /usr/include/sys/param.h:104,
                 from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14,
                 from /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/src/php-4.3.0/main/php.h:360,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/include/machine/limits.h:81: warning: `LONG_MAX' redefined
/usr/local/src/php-4.3.0/Zend/zend.h:189: warning: this is the location of the previous definition
/usr/include/machine/limits.h:82: warning: `LONG_MIN' redefined
/usr/local/src/php-4.3.0/Zend/zend.h:193: warning: this is the location of the previous definition
In file included from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14,
                 from /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/src/php-4.3.0/main/php.h:360,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/include/sys/param.h:193: warning: `MAXPATHLEN' redefined
/usr/local/src/php-4.3.0/main/php.h:237: warning: this is the location of the previous definition
In file included from /usr/local/src/php-4.3.0/Zend/zend.h:202,
                 from /usr/local/src/php-4.3.0/main/php.h:34,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/Zend/zend_hash.h:119: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.0/Zend/zend.h:203,
                 from /usr/local/src/php-4.3.0/main/php.h:34,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/Zend/zend_llist.h:34: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.0/main/php.h:34,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/Zend/zend.h:285: syntax error before `va_list'
/usr/local/src/php-4.3.0/Zend/zend.h:423: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.0/main/php.h:224,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/main/spprintf.h:40: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/main/php.h:277: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.0/main/php.h:360,
                 from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: `struct utimbuf' declared inside parameter list
/usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: its scope is only this definition or declaration, which is probably not what you want.
gmake: *** [ext/ctype/ctype.lo] Error 1

-I have this problem sinds version 4.2.1.
-Compilation worked when I replace the "--with-apxs=/usr/local/apache/bin/apxs" param with "--with-apache=../apache-1.3.27", but I don't want a static
php installation.
-When I disable ctype in configure (--disable-ctype) it hangs   at gettext. (Also with the error: 

In file included from /usr/include/sys/param.h:104,
                 from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14,
...
)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-19 17:49 UTC] kalowsky@php.net
I just did a configure similar to yours (only with more options) and found no issues.  I'm guessing this is a local install issue as I've not had any of these problems yet on FreeBSD.  Marking as Bogus.
 [2003-01-20 01:24 UTC] sjanktie at imap dot cc
Strange. I had this problem also on a FreeBSD 4.5 & 4.4 installation. With the exact same compile error.
 [2003-01-20 01:34 UTC] sjanktie at imap dot cc
Can you tell me what ./configure command you used for testing?
I want to try it on my own FreeBSD installation.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 22:00:02 2025 UTC