Bug 74216 - dev-embedded/uisp fails to compile as 'NULL' is undeclared (gcc 3.4)
Bug#: 74216 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: dev-embedded@gentoo.org Reported By: gentoo3@hubbertz.de
Component: Development
URL: 
Summary: dev-embedded/uisp fails to compile as 'NULL' is undeclared (gcc 3.4)
Keywords:  
Status Whiteboard: 
Opened: 2004-12-12 10:22 0000
Description:   Opened: 2004-12-12 10:22 0000
both uisp-20040311 and uisp-20030618 fails to compile with new gcc
(i686-pc-linux-gnu-3.4.3) as 'NULL' is not declared.

-----
In file included from AvrDummy.h:31,
                 from AvrDummy.C:38:
Global.h: In member function `void TPt<TRec>::MkRef()':
Global.h:43: Fehler: `NULL' undeclared (first use this function)
[...]

-----

Including <stdio.h> fixes this!

Also, it compiles well with gcc 3.3 (i686-pc-linux-gnu-3.3.4).



Reproducible: Always
Steps to Reproduce:
1. Use gcc-config to switch to gcc 3.4
2. emerge uisp
Actual Results:  
Compilation fails

Expected Results:  
Compilation should work fine

------- Comment #1 From Daniel Black 2005-01-02 15:40:14 0000 -------
fixed and commited version bump from cvs. Thanks for the bug report and patch.