[Hat] ntohl / htonl missing
Malcolm Wallace
hat@haskell.org
Fri, 12 Jul 2002 12:32:11 +0100
Amanda Clare <ajc99@aber.ac.uk> writes:
> Undefined first referenced
> symbol in file
> ntohl ...lib/nhc98/sparc-solaris2/libHShat.a(hat.o)
> htonl ...lib/nhc98/sparc-solaris2/libHShat.a(hat.o)
> ld: fatal: Symbol referencing errors. No output written to Insort
A #include that defines these macros is missing from one of the
source files. Patch attached (and available from the download page).
> Also, just for future, the echo.c prog to simulate echo was missing from
> the scripts directory when installing hat, so I used the one from nhc98.
Already noted (and also available separately from the download page).
Thanks!
Malcolm
Index: src/hat/lib/hat.c
===================================================================
RCS file: /usr/src/master/nhc/src/hat/lib/hat.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- src/hat/lib/hat.c 2002/06/18 18:15:32 1.29
+++ src/hat/lib/hat.c 2002/06/20 10:43:03 1.30
@@ -8,7 +8,9 @@
#include <stdlib.h>
#include <string.h>
#include <signal.h>
+#include <netinet/in.h> /* for ntohl() macro */
#include "hat.h"
+
#if defined(DEBUG)
#define HIDE(x) x