
I get the same error from both nhc98 and ghc when trying to use hat on solaris. Do you know what I'm likely to be missing? legion:haskell> hmake -hat Insort hat-trans Insort.hs Wrote TInsort.hs /dcs/biorepos/FuncProg//bin/nhc98 -c -package hat -o TInsort.o TInsort.hs /dcs/biorepos/FuncProg//bin/nhc98 -package hat -o Insort TInsort.o Undefined first referenced symbol in file ntohl /dcs/biorepos/FuncProg//lib/nhc98/sparc-solaris2/libHShat.a(hat.o) htonl /dcs/biorepos/FuncProg//lib/nhc98/sparc-solaris2/libHShat.a(hat.o) ld: fatal: Symbol referencing errors. No output written to Insort collect2: ld returned 1 exit status legion:haskell> hmake -hat -ghc Insort hat-trans Insort.hs Wrote TInsort.hs ghc -c -package hat -o TInsort.o TInsort.hs ghc -package hat -o Insort TInsort.o Undefined first referenced symbol in file ntohl /dcs/biorepos/FuncProg//lib/ghc-5.02/libHShat.a(hat.o) htonl /dcs/biorepos/FuncProg//lib/ghc-5.02/libHShat.a(hat.o) ld: fatal: Symbol referencing errors. No output written to Insort collect2: ld returned 1 exit status I'm using hat2.00, nhc98-1.14 and ghc-5.02 on a SunOS legion 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-Enterprise. ld is GNU ld 2.11.2. 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. Amanda

Amanda Clare
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
participants (2)
-
Amanda Clare
-
Malcolm Wallace