Re: Compiling HAProxy with SunStudio on Solaris x86

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Fri, 13 Jun 2008 16:04:48 +0200

On Fre 13.06.2008 12:45, Alberto Giménez wrote:
>On Fri, Jun 13, 2008 at 1:32 AM, Aleksandar Lazic <al-haproxy#none.at>
>wrote:
>
>> ###
>> /* global options */
>> struct global global = {
>> logfac1 : -1,
>
>This kind of struct initilization is a GCC extension. GCC manual states
>it is deprecated as of GCC 2.5.I guess your compiler is not GCC and
>therefore it does not support that syntax.
>
>On the other hand, C99 has a specific syntax to get the same results:
>
>struct global global = {
> .logfac1 = 1,
>
>I think it is more "C friendly" as uses the natural syntax to access a
>structure member. For the sake of portability I think the initilalizers
>should be fixed to be C99 compliant.

Thanks both for your suggestion but I still have compile errors.

Attached the output and the current haproxy.c file.

Aleks

Received on 2008/06/13 16:04

This archive was generated by hypermail 2.2.0 : 2008/06/13 16:15 CEST