trying to compile a cgi library from hugs

2002-07-02 Thread Chris Moline

hi. since my webhoster doesnt have haskell installed i have decided to use compiled 
cgi programs instead. since there doesnt seem to be a cgi library for ghc i was hoping 
to port the library i found at 
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne/haskell_libs/CGI.html

the library (CGI.lhs) seems to compile fine. but when i go to compile the programs i 
get the following

[04:13pm 0.13 0.15 0.16 ~/CGI]$ mv Counter.cgi Counter.lhs
Counter.cgi - Counter.lhs
[04:14pm 0.11 0.15 0.16 ~/CGI]$ ghc Counter.lhs 
compilation IS NOT required
Counter.o: In function `__stginit_Main':
Counter.o(.text+0x16): undefined reference to `__stginit_CGI'
Counter.o: In function `Main_main_srt':
Counter.o(.text+0x288): undefined reference to `CGI_h1_closure'
Counter.o(.text+0x2a8): undefined reference to `CGI_submit_closure'
Counter.o(.text+0x2ac): undefined reference to `CGI_gui_closure'
Counter.o(.text+0x2b8): undefined reference to `CGI_page_closure'
Counter.o(.text+0x2c0): undefined reference to `CGI_zdfShowCgiOut_closure'
Counter.o(.text+0x2c4): undefined reference to `CGI_zdfMimeHTML_closure'
Counter.o(.text+0x2c8): undefined reference to `CGI_wrapper_closure'
Counter.o: In function `s13m_entry':
Counter.o(.text+0x35e): undefined reference to `CGI_h1_closure'
Counter.o: In function `s13Z_entry':
Counter.o(.text+0x689): undefined reference to `CGI_submit_closure'
Counter.o: In function `s144_entry':
Counter.o(.text+0x6fe): undefined reference to `CGI_gui_closure'
Counter.o: In function `s14f_entry':
Counter.o(.text+0x7e2): undefined reference to `CGI_page_closure'
Counter.o: In function `s14v_ret':
Counter.o(.text+0x81a): undefined reference to `CGI_Content_con_info'
Counter.o: In function `s13d_entry':
Counter.o(.text+0x898): undefined reference to `CGI_zdfMimeHTML_closure'
Counter.o(.text+0x89d): undefined reference to `CGI_zdfShowCgiOut_closure'
Counter.o: In function `Main_main_entry':
Counter.o(.text+0x91e): undefined reference to `CGI_wrapper_closure'
[04:14pm 0.15 0.15 0.16 ~/CGI]$ 

i do not know what is happening here. any hints on how to proceed?

sincerly,
chris moline
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: trying to compile a cgi library from hugs

2002-07-02 Thread Wolfgang Thaller

 [04:14pm 0.11 0.15 0.16 ~/CGI]$ ghc Counter.lhs
 compilation IS NOT required
 Counter.o: In function `__stginit_Main':
 Counter.o(.text+0x16): undefined reference to `__stginit_CGI'
 [...]

Your invocation of the ghc command is telling GHC to just compile 
Counter.lhs to Counter.o and then create an executable (link) with just 
Counter.o, not CGI.o. The linker then complains about undefined 
references to the CGI module.
Solution 1: GHC works just like an ordinary UNIX-style C compiler. 
Specify CGI.o on the command line.
Solution 2: use ghc --make Counter.lhs
GHC will automatically look for all required modules and compile them if 
necessary (for GHC versions = 5).

Cheers,

Wolfgang

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: trying to compile a cgi library from hugs

2002-07-02 Thread Chris Moline

On Wed, 03 Jul 2002 00:31:25 +0200, Wolfgang Thaller [EMAIL PROTECTED] wrote:
 Your invocation of the ghc command is telling GHC to just compile 
 Counter.lhs to Counter.o and then create an executable (link) with just 
 Counter.o, not CGI.o. The linker then complains about undefined 
 references to the CGI module.
 Solution 1: GHC works just like an ordinary UNIX-style C compiler. 
 Specify CGI.o on the command line.
 Solution 2: use ghc --make Counter.lhs
 GHC will automatically look for all required modules and compile them if 
 necessary (for GHC versions = 5).

ah, thanks. if anyone wants to know the cgi library works without any changes except 
youll have to change the .cgi's to .lhs so ghc will handle them right.

sincerly,
chris moline
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: Can anyone get at c2hs in cvs?

2002-07-02 Thread Manuel M. T. Chakravarty

Adrian Hey [EMAIL PROTECTED] wrote,

 Sorry if this is slightly off topic, but I don't seem to be able to
 get at c2hs and I wonder if anyone here has had the same problem or
 knows of a fix.
[..]
 When I do this all I get back is..
 cvs [login aborted]: connect to ceres.cse.unsw.edu.au:2401 failed: Connection 
 refused

I am sorry, but the anonymous CVS server become unavailable
and I'll have to look for a new box to host the server.  In
the meantime, I have put a tar file with a current CVS
snapshot on the web page.  Sorry for the inconvenience.

Manuel

PS: I have put a corresponding note on the web page now, too.
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users