Opened 16 years ago

Closed 16 years ago

Last modified 48 years ago

#584 closed bug (Invalid)

ghc-5.00.2 -fvia-C: symbol undeclared

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I am using ghc-5.00.2

While compiling TclHaskell, compiling a C callout
module with -fvia-C I get the following error:

ghc -fglasgow-exts -recomp -dcore-lint -syslib
concurrent -fvia-C '-#include "Check.h"' -c -ohi
TclCompatibility.hi TclCompatibilityGhc.hs
/tmp/ghc4365.hc: In function `s141_fast1':
/tmp/ghc4365.hc:157: `END_TSO_QUEUE_closure' undeclared
(first use in this function)
/tmp/ghc4365.hc:157: (Each undeclared identifier is
reported only once
/tmp/ghc4365.hc:157: for each function it appears in.)

Change History (1)

comment:1 Changed 16 years ago by simonmar

Status: assignedclosed
Logged In: YES 

[ following reply from Sigbjorn Finne on the glasgow-
haskell-bugs mailing list: ]

you're running into trouble with some expeditious hacks 
that were
put into TclHaskell to make it work with ghc-4.xx. The 
change will make it compile with ghc-5.xx - have Check.h now

extern  StgTSO *run_queue_hd;
#if  __GLASGOW_HASKELL__ <= 408
extern StgTSO *MainTSO; /* temporary hack */
#define END_TSO_QUEUE  ((StgTSO *)(void*)


Note: See TracTickets for help on using tickets.