ID: 36110
User updated by: ifette at gmail dot com
Reported By: ifette at gmail dot com
Status: Open
Bug Type: Compile Failure
Operating System: Linux 2.6.14-gentoo-r2 #2 SMP PR
PHP Version: 6CVS-2006-01-20 (CVS)
New Comment:
Hmm... I seem to have failed to notice that this changed from 5 to 6
:-). One thing I always hated about the gnu build tools was having to
dig around in ./configure --help for such things. I guess I'm not sure
if this really qualifies as a bug, but it would be nice if there was at
least a warning for users unaware of the change from 5->6.
Previous Comments:
------------------------------------------------------------------------
[2006-01-20 22:35:33] [EMAIL PROTECTED]
It might have had, but seems like there's a tiny buglet in here after
all. I'm working on a fix right now..
This would have worked fine if you had passed --with-gd what it's
expecting: full path to gdlib-config.
------------------------------------------------------------------------
[2006-01-20 22:33:49] ifette at gmail dot com
Not entirely sure why this would make a big difference, but I'll bite.
[EMAIL PROTECTED]:/tmp/php_cvs] $ tar xvjf php6.0-200601201933.tar.bz2
...
[EMAIL PROTECTED]:/tmp/php_cvs] $ cd php6.0-200601201933
... same configure command, same result...
[EMAIL PROTECTED]:/tmp/php_cvs/php6.0-200601201933] $ tail -n 15
config.log
configure:34813: gcc -o conftest -g -O2 -Wl,-rpath, -L conftest.c
-lgd -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lm -licui18n -licuuc
-licudata -lm -licuio -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lidn
-lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lgd 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../crt1.o: In function
`_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
configure: failed program was:
#line 34802 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gdImageCreate();
int main() {
gdImageCreate()
; return 0; }
------------------------------------------------------------------------
[2006-01-20 22:28:23] [EMAIL PROTECTED]
What you're doing wrong is not using the snapshots from
http://snaps.php.net/
Grab the latest from there first.
------------------------------------------------------------------------
[2006-01-20 22:21:31] ifette at gmail dot com
So far as I know I'm really using the latest...
/* automatically generated by configure */
/* edit configure.in to change version number */
#define PHP_MAJOR_VERSION 6
#define PHP_MINOR_VERSION 0
#define PHP_RELEASE_VERSION 0
#define PHP_EXTRA_VERSION "-dev"
#define PHP_VERSION "6.0.0-dev"
~
Correct me if I'm doing something wrong here, but:
[EMAIL PROTECTED]:/tmp/php_cvs] $ export
CVSROOT=:pserver:[EMAIL PROTECTED]:/repository
[EMAIL PROTECTED]:/tmp/php_cvs] $ cvs login
Logging in to :pserver:[EMAIL PROTECTED]:2401/repository
CVS password:
[EMAIL PROTECTED]:/tmp/php_cvs] $ cvs co php-src
... many updates, this was an empty directory...
U ZendEngine2/tests/zend_operators.phpt
[EMAIL PROTECTED]:/tmp/php_cvs] $ cd php-src/
[EMAIL PROTECTED]:/tmp/php_cvs/php-src] $ ./buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
rebuilding aclocal.m4
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in
[EMAIL PROTECTED]:/tmp/php_cvs/php-src] $ ./configure
--prefix=/nonportage/php --with-openssl --with-zlib --with-bz2
--with-gd=/usr --with-mcrypt
--with-mysqli=/nonportage/mysql/bin/mysql_config
--with-apxs2=/usr/sbin/apxs2 --enable-mbstring --with-curl
--with-mysql=/nonportage/mysql
creating cache ./config.cache
...
./configure: line 34524: test: : integer expression expected
./configure: line 34537: /usr: is a directory
./configure: line 34604: /usr: is a directory
./configure: line 34606: /usr: is a directory
./configure: line 34607: /usr: is a directory
checking for gdImageCreate in -lgd... no
configure: error: GD build test failed. Please check the config.log for
details.
------------------------------------------------------------------------
[2006-01-20 22:07:54] [EMAIL PROTECTED]
Are you _really_ using the latest CVS snapshot?
And it's really PHP 6.0.0-dev ? (see main/php_version.h)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36110
--
Edit this bug report at http://bugs.php.net/?id=36110&edit=1