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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: magicaltux@php.net
New email:
PHP Version: OS:

 

 [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: Fri Apr 19 18:01:28 2024 UTC