[Haskell-cafe] Cannot compile Network.CGI programs
Adrian Neumann
aneumann at inf.fu-berlin.de
Sat May 26 04:01:16 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hi,
I installed the Network.CGI package and tried to compile the Hello World
example on my Ubuntu machine.
>ghc cgi.hs -o cgi
gives me
> cgi.o: In function `r1hk_info':
> (.text+0x56): undefined reference to `mtlzm1zi0_ControlziMonadziTrans_zdf1_closure'
> cgi.o: In function `r1hm_info':
> (.text+0xb6): undefined reference to `cgizm2006zi9zi6_NetworkziCGIziMonad_zdf4_closure'
> cgi.o: In function `r1ho_info':
> (.text+0x11a): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_runCGI_closure'
> cgi.o: In function `r1ho_info':
> (.text+0x121): undefined reference to `mtlzm1zi0_ControlziMonadziTrans_zdf1_closure'
> cgi.o: In function `r1hq_info':
> (.text+0x17e): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_output_closure'
> cgi.o: In function `s1hE_info':
> (.text+0x2aa): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_handleErrors_closure'
> cgi.o: In function `r1hk_srt':
> (.rodata+0x0): undefined reference to `mtlzm1zi0_ControlziMonadziTrans_zdf1_closure'
> cgi.o: In function `r1hm_srt':
> (.rodata+0x4): undefined reference to `cgizm2006zi9zi6_NetworkziCGIziMonad_zdf4_closure'
> cgi.o: In function `r1ho_srt':
> (.rodata+0xc): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_runCGI_closure'
> cgi.o: In function `r1ho_srt':
> (.rodata+0x10): undefined reference to `mtlzm1zi0_ControlziMonadziTrans_zdf1_closure'
> cgi.o: In function `r1hq_srt':
> (.rodata+0x14): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_output_closure'
> cgi.o: In function `s1hE_srt':
> (.rodata+0x38): undefined reference to `cgizm2006zi9zi6_NetworkziCGI_handleErrors_closure'
> collect2: ld gab 1 als Ende-Status zurück
However runghc cgi.hs produces a Hello World
> Content-type: text/html; charset=ISO-8859-1
>
> Hello World!
Why is that so? What can I do to compile CGI-programs?
(GHC 6.6, libghc6-cgi-dev 2006.9.6-3)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGV+k211V8mqIQMRsRA62mAKCW0lp+zeniR+3Mi12+9dzRFMZm6QCaArpd
R67KMtScgzFFDV0+GDbH75A=
=Wuax
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list