[Haskell-cafe] HaXml and ghci unresolved symbol

Udo Stenzel u.stenzel at web.de
Sun Sep 10 07:56:25 EDT 2006

Andrea Rossato wrote:
> [12:03:45][andrea at laptop:~/devel/haskell/xml]$ ghci -package HaXml xml1.hs
> [logo]
> Loading package base-1.0 ... linking ... done.
> Loading package haskell98-1.0 ... linking ... done.
> Loading package HaXml-1.13.1 ... linking ... done.
> Skipping  Main             ( xml1.hs, xml1.o )
> Ok, modules loaded: Main.
> Prelude Main> main
> <interactive>: xml1.o: unknown symbol `TextziXMLziHaXmlziParse_xmlParse_closure'

Hrm, you're accessing a symbol presumably found in a library that isn't
loaded.  Either GHC cannot find the library, which shouldn't happen if
you're using the right package switch, or the .hi file you compiled
against is out of synch with the library, which also shouldn't happen,
as both were compiled from the same source.

- Did you compile and install HaXml from source?  If not, was the binary
  meant for the version of GHC you're using?
- Did you update anything after doing so?  Some library, GHC itself, ...?
- Did you use weird compiler switches (profiling on/off with missing
  profiling libraries)?
- Did you move things around after compiling?  Broken package database?
  configure --user with install --global or vice versa?
- Did you install more than one version of HaXml?  Or are remnants of
  failed installation attempts still in the search path?

You could try the brute force approach of just exploding the source tree
of HaXml right into your project directory and not using the installed
package at all.  ghc --make should be able to pick up the sources and
compile them without further ado.  For hxml this might actually be the
right thing to do, because it's so small.  However, if you didn't mess
with the internals of some package, your problem is just weird.

in the middle of a discussion about the "evil mangler" in GHC 5.04:
<shapr> the evil mangler uses *perl* ??
<ChilliX> yes...
<ChilliX> it is Evil after all
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20060910/5fb1b605/attachment.bin

More information about the Haskell-Cafe mailing list