gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling 0.6.14 on Solaris 10 SPARC


From: Martin White
Subject: Re: Compiling 0.6.14 on Solaris 10 SPARC
Date: Fri, 20 Apr 2007 15:13:57 +0100


----- Original Message ----- From: "Pawel Kot" <address@hidden>
To: "Discussion forum for gnokii users." <address@hidden>
Sent: Friday, April 20, 2007 2:54 PM
Subject: Re: Compiling 0.6.14 on Solaris 10 SPARC


Hi,

On 4/20/07, ML mail <address@hidden> wrote:
Thanks for your suggestion,  HAVE_LIBUSB was defined to 1, so I just
commented the define out with /* */. The compilation now went further but
stops with another problem as you can see here in the output:

Could you please check out why configure didn't work well?

gnokii-calendar.c:222: error: `INT_MAX' undeclared (first use in this
function)
gnokii-calendar.c:222: error: (Each undeclared identifier is reported only
once
gnokii-calendar.c:222: error: for each function it appears in.)
gnokii-calendar.c: In function `deletecalendarnote':
gnokii-calendar.c:304: error: `INT_MAX' undeclared (first use in this
function)

Again. configure did something wrong:
gnokii/gnokii-calendar.c includes compat.h
compat.h includes <limits.h> or compat.h defines INT_MAX

Could you please check out whether limits.h defines INT_MAX?

as I'm currently logged into a Solaris 10 system, I thought I'd have a quick look. INT_MAX appears to be defined in sys/types.h

types.h:#define INT_MAX         2147483647      /* max value of an "int" */
types.h:#define UINT_MAX 4294967295U /* max value of an "unsigned int" */

limits.h includes the following, which doesn't appear to include sys/types.h

#include <sys/feature_tests.h>
#include <sys/isa_defs.h>
#include <iso/limits_iso.h>
#include <sys/int_limits.h>
#include <sys/unistd.h>

Regards,
   Martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]