[nhc-bugs] Build Error under nhc98

Brent A. Fulgham bfulgham@debian.org
Sun, 03 Jun 2001 12:54:44 -0700


When using the original nhc98 binaries I built from the
included C sources, I got a build error while building
...../prelude/Binary/PutBits.gc

Greencard complained about 'foreign' being an undefined:

/home/bfulgham/nhc98-1.04/script/nhc98 -cpp -c +CTS -part -redefine -CTS   -o /home/bfulgham/nhc98-1.04/targets/ix86-Linux/obj/prelude/Binary/PutBits.o PutBits.gc
No C type decl for variable foreign in DIS:
Apply (Constructor "BH") [Apply (Declare "BinHandle" (Var "bh")) [Apply (Var "foreign") [Exp "finaliseBH",Var "bh"]]]
greencard-nhc98 failed on ./PutBits.gc
make: *** [/home/bfulgham/nhc98-1.04/targets/ix86-Linux/obj/prelude/Binary/PutBits.o] Error 1

Comparing this directory with one in which "foreign" style
functions compiled successfully, I found that the IO directory
was omitted.  This patch allows the build to complete successfully,
though I don't know if it is the best possible fix.

Thanks,

-Brent

===================================================================

*** Makefile.old        Sun Jun  3 12:52:34 2001
--- Makefile    Sun Jun  3 12:52:41 2001
***************
*** 1,7 ****
include Makefile.inc
    
THISLIB       = Binary
! SEARCH        = 
EXTRA_H_FLAGS =
EXTRA_C_FLAGS =
	    
--- 1,7 ----
include Makefile.inc
	        
THISLIB       = Binary
! SEARCH        = -P../IO
EXTRA_H_FLAGS =
EXTRA_C_FLAGS =