
Hi, Recently, I installed the GHC 6.3 cvs ( ghc-6.3.20040609-src.tar.bz2)which I got from http://www.haskell.org/ghc/dist/current/dist/ I want to have the latest HopenGL, so I did the following autoreconf ./configure --enable-hopengl make all make html make install make install-docs the first question is I can't find OpengGL or HOpenGL in package.conf, 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 the HShaskell98 is in the lib/. The following are three conf files, root@shiqicao ghc-6.3 # cat ghc-6.3.20040609.sh #!/bin/sh libexecdir=/usr/lib/ghc-6.3 libdir=$libexecdir GHCBIN="$libexecdir/ghc-6.3.20040609"; TOPDIROPT="-B$libdir"; #! /bin/bash # Mini-driver for GHC exec $GHCBIN $TOPDIROPT ${1+"$@"} root@shiqicao ghc-6.3 # cat ghc-pkg-6.3.20040609.sh #!/bin/sh libexecdir=/usr/lib/ghc-6.3 libdir=$libexecdir GHCPKGBIN="$libexecdir/ghc-pkg.bin"; PKGCONFOPT="-f $libdir/package.conf"; # Mini-driver for ghc-pkg exec $GHCPKGBIN $PKGCONFOPT ${1+"$@"} root@shiqicao ghc-6.3 # cat ghci-6.3.20040609.sh #!/bin/sh libexecdir=/usr/lib/ghc-6.3 libdir=$libexecdir GHCBIN="/usr/lib/ghc-6.3/ghc-6.3.20040609"; TOPDIROPT="-B/usr/lib/ghc-6.3"; #!/bin/bash GHC_CFLAGS="-optc-fno-pic -optc-fno-stack-protector" # Mini-driver for GHCi exec $GHCBIN $TOPDIROPT ${GHC_CFLAGS} --interactive ${1+"$@"} root@shiqicao ghc-6.3 # Regards, Shiqi Cao

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.

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
participants (2)
-
Shiqi Cao
-
Sven Panne