
On Mon, 2004-06-14 at 13:40, Sven Panne wrote:
Shiqi Cao wrote:
[...] the first question is I can't find OpengGL or HOpenGL in package.conf,
Could you send config.log and a log of the configuration/compilation, please? Guessing is very hard. :-) It could e.g. be the case that configure was unable to detect your OpenGL installation, although I haven't seen this in a while.
the second one is ghc doesn't work well,
caos2@shiqicao Haskell $ ghc63 -o hw hw.hs /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lHShaskell98 collect2: ld returned 1 exit status [...]
Alas, I've never seen this problem...
#!/bin/bash GHC_CFLAGS="-optc-fno-pic -optc-fno-stack-protector" # Mini-driver for GHCi exec $GHCBIN $TOPDIROPT ${GHC_CFLAGS} --interactive ${1+"$@"}
Hmmm, this looks a bit hand-made. What exactly did you change?
Cheers, S.
Hi Sven, Here is the config.log http://www.haskell.org//pipermail/hopengl/2004-June/000515.html I don't know where is log of the configuration. After it has been compiled, I set "libexecdir" and "libdir" to the lib directory. Then I tried ghci, and got the following message, root@shiqicao ghc-6.3 # ./ghci-6.3.20040609.sh ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.3.20040609, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base ... linking ... /usr/lib/ghc-6.3/HSbase.o: unknown symbol `writeErrString__' ghc-6.3.20040609: unable to load package `base' Then I compared the ghci-6.2.sh and ghci-6.3.20040609.sh, found there were some more flags, I guessed that might cause the problem, so I copied the flags to ghci-6.3.20040609.sh, but still does not work. I think the "base" is the first package, so it's probably nothing to do with the order of package in the package.conf. Thank you for your help Shiqi Cao