[Haskell-beginners] linker error, protips welcome

Michael Litchard michael at schmong.org
Tue Aug 2 05:36:58 CEST 2011


ghci is trying to load both
network-2.3.0.2
and
network-2.3.0.4

I don't have 2.3.02 installed
I checked package.conf, and it's not there. What can I check to see
what's going on?

hcifoo> :main
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-3.1.1 ... linking ... done.
Loading package unix-2.4.2.0 ... linking ... done.
Loading package network-2.3.0.2 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package HTTP-4000.1.1 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package deepseq-1.1.0.2 ... linking ... done.
Loading package text-0.11.0.6 ... linking ... done.
Loading package curl-1.3.7 ... linking ... done.
Loading package HUnit-1.2.2.3 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package process-1.0.1.5 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package haskell98-1.1.0.1 ... linking ... done.
Loading package network-2.3.0.4 ...

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   my_inet_ntoa
whilst processing object file
   /home/mlitchard/.cabal/lib/network-2.3.0.4/ghc-7.0.3/HSnetwork-2.3.0.4.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.



More information about the Beginners mailing list