
Greetings, I recently installed a library (namely Hpysics, not on hackage) with shared libraries (they were on by default). When trying to do some stuff with the library (program attached), I get a bunch of undefined symbol errors like this: $ ghc --make Main.hs Linking Main ... /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x46e): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_constructBoundingSpherezugo_info' /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x4f9): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_zdwlgo_info' /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0xaca6): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_constructBoundingSpherezugo_info' /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0xad31): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_zdwlgo_info Does anyone know, what this is about? PS: Hpysics can be found at http://code.haskell.org/hpysics/ Regards Sven

On Fri, Sep 4, 2015 at 3:06 PM, Sven Bartscher < sven.bartscher@weltraumschlangen.de> wrote:
I recently installed a library (namely Hpysics, not on hackage) with shared libraries (they were on by default). When trying to do some stuff with the library (program attached), I get a bunch of undefined symbol errors like this:
$ ghc --make Main.hs Linking Main ...
/home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x46e): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_constructBoundingSpherezugo_info' /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x4f9):
Physics.Hpysics.BoundingSphere is missing from extra-modules in Hpysics' cabal file. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Fri, Sep 4, 2015 at 3:12 PM, Brandon Allbery
Physics.Hpysics.BoundingSphere is missing from extra-modules in Hpysics' cabal file.
Sorry, it's other-modules:, not extra-modules:. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Fri, 4 Sep 2015 15:12:20 -0400
Brandon Allbery
On Fri, Sep 4, 2015 at 3:06 PM, Sven Bartscher < sven.bartscher@weltraumschlangen.de> wrote:
I recently installed a library (namely Hpysics, not on hackage) with shared libraries (they were on by default). When trying to do some stuff with the library (program attached), I get a bunch of undefined symbol errors like this:
$ ghc --make Main.hs Linking Main ...
/home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x46e): undefined reference to `Hpysicszm0zi0_PhysicsziHpysicsziBoundingSphere_constructBoundingSpherezugo_info' /home/sven/.cabal/lib/i386-linux-ghc-7.8.4/Hpysics-0.0/libHSHpysics-0.0.a(Body.o):(.text+0x4f9):
Physics.Hpysics.BoundingSphere is missing from extra-modules in Hpysics' cabal file.
Thanks! Correcting that did indeed work. I think you actually meant other-modules, but I was able to at least figure that out, by myself. Regards and thanks Sven
participants (2)
-
Brandon Allbery
-
Sven Bartscher