Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 118636
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 23579
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Peter Slizik <peter.slizik@pobox.sk>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 118636 depends on: Show dependency tree
Bug 118636 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-11 02:40 0000
The ./configure process in emerge dev-php/php-cgi fails with the following
error:

configure: error: Sablotron version 0.96 or greater required.

(Actual version of php-cgi: 4.4.0. XML support enabled.)

Actually, Sablotron version 1.0.1 is installed on my system.

Solution:

The problem lies in how configure checks the version number. It uses the
following test program:

#line 90520 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <sablot.h>

int main ()
{
    double version;
    version = atof(SAB_VERSION);

    if (version >= 0.96) {
        exit(0);
    }
    exit(255);
}

There are two problems with this program. Firstly, it seems that it's not good
to use atof with a double variable. (double test = atof("0.96") returns some
crazy int number, while float test = atof("0.96") works correctly.)  Secondly,
with the change of the version number from 0.xx to 1.x.x the atof() function
fails completely.

Hope this helps.
(I'm not sure whether the configure file is the responsibility of gentoo or
original php developers.)

Peter Slizik

------- Comment #1 From Jakub Moc (RETIRED) 2006-01-11 02:49:57 0000 -------

*** This bug has been marked as a duplicate of 23579 ***

------- Comment #2 From Tarragon M. Allen 2006-01-12 16:26:53 0000 -------
I really don't see how http://bugs.gentoo.org/show_bug.cgi?id=23579 applies to
this problem?

------- Comment #3 From Peter Slizik 2006-01-19 06:51:56 0000 -------
> I really don't see how http://bugs.gentoo.org/show_bug.cgi?id=23579 applies to
> this problem?

Well, I don't see either. But setting USE="-java" have helped. 

------- Comment #4 From Jakub Moc (RETIRED) 2006-01-19 07:17:06 0000 -------
(In reply to comment #2)
> I really don't see how http://bugs.gentoo.org/show_bug.cgi?id=23579 applies to
> this problem?

Check Bug 98853. 

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug