php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59241 Configure fails when compiled with php
Submitted: 2010-05-27 22:57 UTC Modified: 2015-04-12 04:22 UTC
From: magicaltux@php.net Assigned:
Status: No Feedback Package: uuid (PECL)
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
15 + 15 = ?
Subscribe to this entry?

 
 [2010-05-27 22:57 UTC] magicaltux@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.


Patches

uuid_version_check_fix.patch (last revision 2011-10-25 12:25 UTC by dominic dot benson at thirdlight dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-25 12:29 UTC] dominic dot benson at thirdlight dot com
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.
 [2015-04-04 05:26 UTC] remi@php.net
-Status: Open +Status: Feedback
 [2015-04-04 05:26 UTC] remi@php.net
If still needed, please open a PR on https://github.com/php/pecl-networking-uuid
 [2015-04-12 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 05:01:31 2024 UTC