Edit report at https://bugs.php.net/bug.php?id=59241&edit=1

 ID:                 59241
 Comment by:         dominic dot benson at thirdlight dot com
 Reported by:        magical...@php.net
 Summary:            Configure fails when compiled with php
 Status:             Open
 Type:               Bug
 Package:            uuid
 Operating System:   Linux
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

The oci8 extension has a somewhat comparable check (4.3.9<=version<6.0.0), so 
I've borrowed and modified it for the patch.

Simply removing it wouldn't appear entirely unreasonable, though.


Previous Comments:
------------------------------------------------------------------------
[2010-05-27 22:57:07] magical...@php.net

Description:
------------
When compiling uuid with PHP (copy into ext dir and 
regenerate configure) configure fails:

checking whether uuid is available... yes
checking for uuid_type in -luuid... yes
checking for uuid_variant in -luuid... yes
checking for uuid/uuid.h... yes
checking PHP version... configure: error: need at least PHP 
4.0.0

The configure log shows:

configure:95377: checking PHP version
configure:95390: gcc -c -I/usr/include -g -O2 -
fvisibility=hidden   -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/date/lib -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/ereg/regex -I/usr/include/libxml2 -
I/usr/include/imap -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/mbstring/oniguruma -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/mbstring/libmbfl -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -
I/home/magicaltux/projects/pinetd2/php/php-
5.3.2/ext/sqlite3/libsqlite -I/include -DHAVE_UUID 
conftest.c 1>&5
configure:95380:25: error: php_version.h: No such file or 
directory
configure:95384:2: error: #error this extension requires at 
least PHP version 4.0.0
configure: failed program was:
#line 95379 "configure"
#include "confdefs.h"
#include <php_version.h>
int main() {

#if PHP_VERSION_ID < 40000
#error  this extension requires at least PHP version 4.0.0
#endif

; return 0; }


I'd guess the php 4.0.0 check can be safely dropped.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=59241&edit=1

Reply via email to