Dear all,
After a long time I decided to start using Haskell again:-)
I've downloaded rpm sources (RPMs for SuSE Linux 7.3 (i386,
glibc 2.2) from Ralf Hinze: base and docs RPM, and profiling
libraries RPM.) from the ghc site and installed them. The
only problem I had was that I had to re-install gmp using
rpm. So that was great.
When I tried to compile some large program I was delighted
to see that all object files got created smoothly.
At the linking stage I got an error:
''cannot find -lreadline
collect2: ld returned 1 exit status''
I couldn't find anything about this on the web or in the
mini faq.
Anybody there to give me a quick hint how to get around
this?
Regards,
Marc van Dongen
--
Marc van Dongen | [EMAIL PROTECTED] |
Computer Science Department | Western Road | () ASCII ribbon campaign
University College Cork |Cork, Ireland | /\ against HTML mail
phone: +353 (0)21 4903578 | fax: 4903978 |
ghc -H20M -recomp -v -fglasgow-exts -cpp -syslib posix -syslib util -fvia-C
-funbox-strict-fields -ddump-rules -ddump-simpl-stats -O2 -o Groebner Groebner.o
Ring.o RingPrelude.o MarcMap.o MarcTypes.o GroebnerTypes.o GroebnerBasis.o Balanced.o
Sort.o Result.o MarcShow.o MarcUtils.o Utilities.o WH.o Terms.o ParseUtils.o
PolyParse.o PolyLexer.o Coefficient.o ChangeBasis.o Simplex.o
Glasgow Haskell Compiler, Version 5.02.2, for Haskell 98, compiled by GHC version
5.02.2
Using package config file: /usr/lib/ghc-5.02.2/package.conf
Hsc static flags: -static -funbox-strict-fields -fignore-asserts -ffoldr-build-on
-fdo-eta-reduction -fdo-lambda-eta-expansion -fcase-merge -flet-to-case -flet-no-escape
*** Linker
gcc -v -o Groebner -DDONT_WANT_WIN32_DLL_SUPPORT Groebner.o Ring.o RingPrelude.o
MarcMap.o MarcTypes.o GroebnerTypes.o GroebnerBasis.o Balanced.o Sort.o Result.o
MarcShow.o MarcUtils.o Utilities.o WH.o Terms.o ParseUtils.o PolyParse.o PolyLexer.o
Coefficient.o ChangeBasis.o Simplex.o -L/usr/lib/ghc-5.02.2 -lHSutil -lHSutil_cbits
-lreadline -lncurses -lHSconcurrent -lHSposix -lHSposix_cbits -lHSlang -lHSlang_cbits
-lHSstd -lHSstd_cbits -lHSrts -lm -lgmp -u Addr_Azh_static_info -u
PrelBase_Izh_static_info -u PrelBase_Czh_static_info -u PrelFloat_Fzh_static_info -u
PrelFloat_Dzh_static_info -u PrelPtr_Ptr_static_info -u PrelWord_Wzh_static_info -u
PrelInt_I8zh_static_info -u PrelInt_I16zh_static_info -u PrelInt_I32zh_static_info -u
PrelInt_I64zh_static_info -u PrelWord_W8zh_static_info -u PrelWord_W16zh_static_info
-u PrelWord_W32zh_static_info -u PrelWord_W64zh_static_info -u
PrelStable_StablePtr_static_info -u PrelBase_Izh_con_info -u PrelBase_Czh_con_info -u
PrelFloat_Fzh_con_info -u PrelFloat_Dzh_con_info -u PrelPtr_Ptr_con_info -u
PrelStable_StablePtr_con_info -u PrelBase_False_closure -u PrelBase_True_closure -u
PrelPack_unpackCString_closure -u PrelIOBase_stackOverflow_closure -u
PrelIOBase_heapOverflow_closure -u PrelIOBase_NonTermination_closure -u
PrelIOBase_BlockedOnDeadMVar_closure -u PrelWeak_runFinalizzerBatch_closure -u
__stginit_Prelude -u PrelMain_mainIO_closure -u __stginit_PrelMain
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/collect2 -m elf_i386 -dynamic-linker
/lib/ld-linux.so.2 -o Groebner -u Addr_Azh_static_info -u PrelBase_Izh_static_info -u
PrelBase_Czh_static_info -u PrelFloat_Fzh_static_info -u PrelFloat_Dzh_static_info -u
PrelPtr_Ptr_static_info -u PrelWord_Wzh_static_info -u PrelInt_I8zh_static_info -u
PrelInt_I16zh_static_info -u PrelInt_I32zh_static_info -u PrelInt_I64zh_static_info -u
PrelWord_W8zh_static_info -u PrelWord_W16zh_static_info -u PrelWord_W32zh_static_info
-u PrelWord_W64zh_static_info -u PrelStable_StablePtr_static_info -u
PrelBase_Izh_con_info -u PrelBase_Czh_con_info -u PrelFloat_Fzh_con_info -u
PrelFloat_Dzh_con_info -u PrelPtr_Ptr_con_info -u PrelStable_StablePtr_con_info -u
PrelBase_False_closure -u PrelBase_True_closure -u PrelPack_unpackCString_closure -u
PrelIOBase_stackOverflow_closure -u PrelIOBase_heapOverflow_closure -u
PrelIOBase_NonTermination_closure -u PrelIOBase_BlockedOnDeadMVar_closure -u
PrelWeak_runFinalizzerBatch_closure -u __stginit_Prelude -u PrelMain_mainIO_closure -u
__stginit_PrelMain /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/crtbegin.o -L/usr/lib/ghc-5.02.2
-L/usr/lib/gcc-lib/i486-suse-linux/2.95.3 -L/usr/i486-suse-linux/lib Groebner.o Ring.o
RingPrelude.o MarcMap.o MarcTypes.o GroebnerTypes.o GroebnerBasis.o Balanced.o Sort.o
Result.o MarcShow.o MarcUtils.o Utilities.o WH.o Terms.o ParseUtils.o PolyParse.o
PolyLexer.o Coefficient.o ChangeBasis.o Simplex.o -lHSutil -lHSutil_cbits -lreadline
-lncurses -lHSconcurrent -lHSposix -lHSposix_cbits -lHSlang -lHSlang_cbits -lHSstd
-lHSstd_cbits -lHSrts -lm -lgmp -lgcc -lc -lgcc
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/crtend.o /usr/lib/crtn.o
/usr/i486-suse-linux/bin/ld: cannot find