[Top][All Lists]

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

Re: [Bug-glpk] build failure glpk-4.16 on solaris

From: Andrew Makhorin
Subject: Re: [Bug-glpk] build failure glpk-4.16 on solaris
Date: Wed, 6 Jun 2007 16:47:03 +0400

> apparently there is a type conflict in glpk-4.16 with the solaris
> type system in respect to the ulong_t type.

> The solaris manual describes (and "sys/types.h" defines) :

> <solaris manual>

>   32-bit Solaris
>      The data types listed below are defined in <sys/types.h> for
>      32-bit Solaris.

> [...]

>      typedef    unsigned long     ulong_t;

> [...]

> </solaris manual>

> This obviously clashes with glplib.h :

> <glplib.h>

> #define ulong_t               _glp_lib_ulong_t

> </glplib.h>

> and leads to a compile error.

> After substituting ulong_t with some other string throughout the
> glpk sources, glpk compiles fine.

Thank you for your bug report.

Probably using the standard type name was not a good idea. I will
replace it by another name to fix the bug.

Nevertheless, the name ulong_t is replaced by _glp_lib_ulong_t with
the #define directive *below* its definition in the standard header,
so in the preprocessed code there must be no datatype named ulong_t
in the glplib.h header. I think this is a compiler quirk.

Could you please send me the compiler diagnostics?

Andrew Makhorin

reply via email to

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