Guus Sliepen | 2 Oct 2008 12:49
Gravatar

Re: Problem compiling tinc-1.0.8 on gcc-2.95

On Tue, Sep 30, 2008 at 01:26:08PM +0200, Unknown of Borg wrote:

> I found that anonymous structures does not work on gcc-2.95.
> If you guys want to support a bit older platforms I suggest
> fixing it.
>
> You can check out patch I created to fix this issue.
> I just added 2 extra structures to remove anonymous
> structs inside connection_status_t and node_status_t.
>
> Patch is here:
> ftp://borg.uu3.net/pub/unix/tinc/tinc.patch

Thanks for the patch.

Although it would be nice to have tinc running on older platforms, I personally
do not want to support compilers versions that are almost a decade old. In
fact, I would really like to use all the features C99 offers, and get rid of
workarounds for old systems where possible.

Do you have a scenario where it is impossible to use a more recent version of
gcc to compile tinc? If so, would you like to maintain a version of tinc that
can be compiled for that platform? If it's not impossible, perhaps it is better
to work on a howto or a small image of a build system to compile tinc for such
platforms?

--

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus@...>
(Continue reading)

Unknown | 2 Oct 2008 13:27

Re: Problem compiling tinc-1.0.8 on gcc-2.95

Well.. Im using VMware FreeBSD 4.11 image for network emulation.
Compiling GCC there would be quite overkill..
It was just faster to fix tinc.

Most of other platforms im using are gcc-3.x indeed.

I think its best to just put that patch in download section for now.
We dont know if there is a big need for support for gcc-2.95 in the
community. If yes, we can then think about aproach.

Also, If needed I can maintain branch of tinc for gcc-2.95
(As far as you use svn-1.4.x).

Regards,
Borg

On Thu, 2 Oct 2008, Guus Sliepen wrote:
> Thanks for the patch.
>
> Although it would be nice to have tinc running on older platforms, I personally
> do not want to support compilers versions that are almost a decade old. In
> fact, I would really like to use all the features C99 offers, and get rid of
> workarounds for old systems where possible.
>
> Do you have a scenario where it is impossible to use a more recent version of
> gcc to compile tinc? If so, would you like to maintain a version of tinc that
> can be compiled for that platform? If it's not impossible, perhaps it is better
> to work on a howto or a small image of a build system to compile tinc for such
> platforms?
(Continue reading)

Guus Sliepen | 9 Sep 2009 18:11
Gravatar

Re: Problem compiling tinc-1.0.8 on gcc-2.95

On Thu, Oct 02, 2008 at 01:27:39PM +0200, Unknown wrote:

> On Thu, 2 Oct 2008, Guus Sliepen wrote:
> > Although it would be nice to have tinc running on older platforms, I personally
> > do not want to support compilers versions that are almost a decade old. In
> > fact, I would really like to use all the features C99 offers, and get rid of
> > workarounds for old systems where possible.
> 
> Well.. Im using VMware FreeBSD 4.11 image for network emulation.
> Compiling GCC there would be quite overkill..
> It was just faster to fix tinc.

It appears that the whole union+anonymous struct thing is not supported in C99
according to GCC. So, I have removed it at last, you might want to try
compiling the latest version from git to see if it works on older platforms
again.

--

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus@...>
On Thu, Oct 02, 2008 at 01:27:39PM +0200, Unknown wrote:

> On Thu, 2 Oct 2008, Guus Sliepen wrote:
> > Although it would be nice to have tinc running on older platforms, I personally
> > do not want to support compilers versions that are almost a decade old. In
> > fact, I would really like to use all the features C99 offers, and get rid of
> > workarounds for old systems where possible.
> 
(Continue reading)


Gmane