Yes, it is set..
#define HAVE_GETOPT_LONG 1
as well as
#define HAVE_GETOPT 1
#define HAVE_GETOPT_LONG_ONLY 1

I have a feeling that the compile tests are succeeding because of the getopt.h linked in from mysql..
configure:66328: checking for getopt_long
configure:66356: gcc -o conftest -g -O2 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -DFD_SETSIZE=4096 -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/var/tmp/imap-2002.RC8/c-client -L/usr/var/tmp/imap-2002.RC8/c-client -Wl,-rpath,/usr/local/mysql//lib -L/usr/local/mysql//lib conftest.c -lmysqlclient -lfreetype -lpng -lz -ljpeg -lgdbm -lbz2 -lz -lssl -lcrypto -lm -ldl 1>&5
configure:66328: checking for getopt_long_only
configure:66356: gcc -o conftest -g -O2 -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -DFD_SETSIZE=4096 -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/var/tmp/imap-2002.RC8/c-client -L/usr/var/tmp/imap-2002.RC8/c-client -Wl,-rpath,/usr/local/mysql//lib -L/usr/local/mysql//lib conftest.c -lmysqlclient -lfreetype -lpng -lz -ljpeg -lgdbm -lbz2 -lz -lssl -lcrypto -lm -ldl 1>&5



At 12:04 10/28/2002 +0100, Melvyn Sopacua wrote:
At 05:47 28-10-2002, Tomki wrote:

There is no getopt.h installed in any system directories, and my paths don't have anything other.
The applications that have their own getopt.h in their source trees: mysql, apache, mod_ssl, openssh.
Could you check main/php_config.h, to see if HAVE_GETOPT_LONG is set?
And if so, the context of config.log to see where this is done?

I think there's a conflict with one of those external apps, that defines HAVE_GETOPT_LONG. If there's no trace of HAVE_GETOPT_LONG being set in main/php_config.h, then that's the problem and we should probably use something like PHP_HAVE_GETOPT_LONG instead.
There's also 1 other user, on a Mac system, with the same problem (#20131).



At 03:46 10/28/2002 +0100, Melvyn Sopacua wrote:
Tom,

BSDi doesn't come with getopt.h, so you probably installed that afterwards,
but you need to compile a shared libgetopt from getopt.c, and provide that
to EXTRA_LIBS, to make it work. [1]
OR if you have a source licence, recompile the kernel from source, with
some careful hacks :)

But - to make it work for now, please rename getopt.h.

[1] Did that once with another package, but haven't tested this with php.


At 02:29 28-10-2002, Tomki wrote:

On BSDI i386, egcs 1.1.2
configure line:
./configure --enable-yp --enable-sockets --enable-memory-limit --with-mysql=/usr/local/mysql/ --with-imap=../imap-2002.RC8 --with-imap-ssl --with-ttf --with-gd --enable-ftp --with-gdbm --with-bz2=/usr --with-zlib --with-openssl --with-apxs=/usr/local/web/apache/bin/apxs --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --enable-ftp --enable-db --enable-mbregex

'make' fails with:
/bin/sh libtool --silent --mode=compile gcc -Iext/standard/ -I/usr/var/tmp/php-4.3.0pre2/ext/standard/ -DPHP_ATOM_INC -I/usr/var/tmp/php-4.3.0pre2/include -I/usr/var/tmp/php-4.3.0pre2/main -I/usr/var/tmp/php-4.3.0pre2 -I/usr/var/tmp/php-4.3.0pre2/Zend -I/usr/local/ssl/include -I/usr/local/include/freetype2 -I/usr/var/tmp/imap-2002.RC8/c-client -I/usr/local/mysql//include/mysql -I/usr/var/tmp/php-4.3.0pre2/ext/xml/expat -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -DFD_SETSIZE=4096 -I/usr/var/tmp/php-4.3.0pre2/TSRM -g -O2 -prefer-pic -c /usr/var/tmp/php-4.3.0pre2/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo
/usr/var/tmp/php-4.3.0pre2/ext/standard/basic_functions.c:1377: warning: `struct option' declared inside parameter list

Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua

--
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to