[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#5050: compile problem
From:       Dirk Mueller <mueller () kde ! org>
Date:       2000-06-18 9:25:22
[Download RAW message or body]

Hi, 

> When I try to build qt-2.1.1 under my redhat 5.2 linux system (highly
> modified since then, but all latest GNU software)
> 
> kernel version 2.3.99pre3
> gcc: 2.95.1

Linux and GCC versions shouldn't be an issue.


> I try to build qt with:
> ./configure -platform gnu-g++ -sm -gif -system-libpng -system-jpeg &&

You probably want -system-zlib as well.
Also I suggest you try linux-g++ instead of gnu-g++. Both should do
but we primarily maintain linux-g++.


> gmake
> 
> I've tried specifying linux-g++ and I get the same errors:
> 
> 
> I get the following build error:
> 
> g++ -c -I/usr/local/qt/include -I/usr/X11R6/include -O2 -fPIC
> -DQT_BUILTIN_GIF_READER -DQT_JPEG_SUPPORT -DQT_SM_SUPPORT
> -I/usr/local/qt/src/3rdparty/zlib  -o widgets/qvalidator.o
> widgets/qvalidator.cpp
> widgets/qvalidator.cpp: In method
> `QDoubleValidator::QDoubleValidator(QWidget *, const char * = 0)':
> widgets/qvalidator.cpp:314: `HUGE_VAL' undeclared (first use this
> function)
> widgets/qvalidator.cpp:314: (Each undeclared identifier is reported only
> once
> widgets/qvalidator.cpp:314: for each function it appears in.)
> gmake[1]: *** [widgets/qvalidator.o] Error 1
> gmake[1]: Leaving directory `/home/local/qt-2.1.1/src'

HUGE_VAL should be defined in <math.h>. From the glibc manual:
        `math.h' defines macros you can use to
        test for overflow on both old and new hardware.

         - Macro: double HUGE_VAL
         - Macro: float HUGE_VALF
         - Macro: long double HUGE_VALL

Try this on your system:
        $ fgrep -sl HUGE_VAL /usr/include/*.h /usr/include/*/*.h
        /usr/include/math.h
        /usr/include/bits/huge_val.h
        /usr/include/bits/mathdef.h
        $
Which version of glibc do you have installed on your system?

Dirk

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic