Re: Compiling lftp on Solaris with Sun Studio

Albert Chin <[email protected]> Fri, 1 Sep 2006 14:04:45 -0500
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Wed, Aug 23, 2006 at 07:32:19PM +0200, Yann Rouillard wrote:
> Alexander V. Lukyanov a ?crit :
> >On Tue, Aug 22, 2006 at 08:08:46PM +0200, Yann Rouillard wrote:
> >>You shouldn't link to stdbool_.h but to stdbool.h
> >>stdbool_.h is just a template file, the Makefile will create later the 
> >>real stdbool.h.
> >
> >Oops, did not notice that.
> >
> >>But if you try to link to stdbool.h at configure time, since stdbool.h 
> >>doesn't yet exist, you have the following error:
> >>config.status: linking ./lib/stdbool.h to include/stdbool.h
> >>config.status: error: ./lib/stdbool.h: file not found
> >
> >What if I link the resulting stdbool.h from lib/Makefile?
> >
> 
> Sure why not. I am not an autoconf/automake master, you need to rely on
> HAVE__STDBOOL.
> However there is still a problem, HAVE__BOOL is defined because the 
> configure test is performed with cc which supports the _Bool type.
> But the compilation of the file which includes stdbool.h is CC which 
> doesn't support _Bool.
> As a result, the _Bool is not correctly defined even after the included 
> stdbool.h is included.
> 
> I don't know yet how to solve this properly.

The gnulib folks recently rewrite the bool module so I'd suggest
updating to the latest gnulib modules you're using.

-- 
albert chin ([email protected])