#2589: gcc reports undefined NULL in inetutils-1.5
--------------------+-------------------------------------------------------
Reporter: thomas | Owner: thomas
Type: defect | Status: new
Priority: normal | Milestone: 6.4
Component: BOOK | Version: SVN
Severity: normal | Keywords: inetutils
--------------------+-------------------------------------------------------
Compilation (gcc-4.3.2) stops with
{{{
icmp_timestamp.c: In Funktion »icmp_timestamp_encode«:
icmp_timestamp.c:46: Fehler: »NULL« nicht deklariert (erste Benutzung in
dieser Funktion)
icmp_timestamp.c:46: Fehler: (Jeder nicht deklarierte Bezeichner wird nur
einmal aufgeführt
icmp_timestamp.c:46: Fehler: für jede Funktion in der er auftritt.)
make[2]: *** [icmp_timestamp.o] Fehler 1
make[2]: Leaving directory `/tmp/build/inetutils-1.5/libicmp'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/tmp/build/inetutils-1.5'
make: *** [all] Fehler 2
}}}
A simple "#include <stdlib.h>" fixes this.
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2589>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page