[Lcdproc] Minimum required gcc version?

Peter Marschall peter@adpm.de
Sun May 7 16:48:02 2006


Hi Markus,

On Sunday, 7. May 2006 16:28, Markus Dolze wrote:
> when my FreeBSD port was commited the commiter added a gcc=3.2+
> requirement to the port.
>
> I found out that this is because compilation fails with gcc 2.95.4 which
> is the default version in FreeBSD 4.11.
>
> It fails if it tries to compile the debug() function like this:
>
> CFontzPacket.c: In function `CFontzPacket_flush':
> CFontzPacket.c:549: syntax error before `unsigned'
> ...<snip>
> Stop in /usr/ports/sysutils/lcdproc/work/lcdproc-0.5.0.
> *** Error code 1
>
> If I remove the debug() lines just before that line it compiles until
> gcc crosses the next debug() line.
>
> What is the minimum required gcc version to compile lcdproc-0.5.0?
>
> I am asking this, because requiring gcc 3.2+ adds a big dependency to
> that port (well, perhaps nobody uses 4.11 any longer, so I will ignore
> this if it is to complicated to fix).

I cannot tell the minimum version exactly, but since even the Linux kernel 
itself does not build anymore with gcc 2.95 I do not consider 2.95 current.
(The latest release of gcc 2.95 is more than 5 years old)

Can you try to find out what the problem of these debug lines is ?
Do you comple with DEBUG defined ?
If you don't, the debug() calls should be optimized out by cpp.

CU
Peter

-- 
Peter Marschall
peter@adpm.de