Re: [revoke] Re: Compiling HAProxy with SunStudio on Solaris x86

From: Alberto Giménez <lagimenez#gmail.com>
Date: Fri, 13 Jun 2008 18:47:57 +0200


Hi again,

On Fri, Jun 13, 2008 at 4:10 PM, Aleksandar Lazic <al-haproxy#none.at> wrote:
> On Fre 13.06.2008 16:04, Aleksandar Lazic wrote:
>
>> Thanks both for your suggestion but I still have compile errors.
>
> Please ignore this sentence I have only add the '.' and not changed the ':'
> with '='.
>
> Btw.: Which impact have this change?

Really none. GCC guys some time ago though that having a "discrete struct member" initializer could be good, and they developed an extenson so their compiler offered that feature, and they "invented" the syntax for doing it. Some time past, and C99 standards comitee though the same thing, but they developed the standard with another syntax, more "C 90 friendly" (namely, using the same syntax for accessing struct members as for initializing them).

The code should work the same.

>
>> Attached the output and the current haproxy.c file.
>
> There are a lot of warnings what do you think ignoring or change it?

There are warnings *after* you change the initialization syntax? If not, the errors could be collateral syntax errors derived from the previous parser errors. If the warnings are there even after you fix the code, it means it should be "ported" to clean-compile on Solaris (if the develpers want and have the time to, of course!).

Regards,

-- 
Alberto Giménez
Received on 2008/06/13 18:47

This archive was generated by hypermail 2.2.0 : 2008/06/13 19:01 CEST