Linking Problem, ghc 5.02: cannot find -lreadline

2002-02-05 Thread Marc van Dongen

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 

Re: Linking Problem, ghc 5.02: cannot find -lreadline

2002-02-05 Thread Martin Norbäck

tis 2002-02-05 klockan 11.53 skrev Marc van Dongen:
 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?

Install the readline-devel package.

Regards,

Martin

-- 
[ http://www.dtek.chalmers.se/~d95mback/ ] [ PGP: 0x453504F1 ] [ UIN:
4439498 ]
Opinions expressed above are mine, and not those of my future
employees.
SIGBORE: Signature boring error, core dumped

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



the GCC snapshot

2002-02-05 Thread David Feuer

What is arbitrarily ranked polymorphism?  I don't 
understand anything past rank 2...  Is this arbitrarily 
ranked polymorphism decidable?

This message has been brought to you by the letter alpha and the number pi.

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Binary Compatibility

2002-02-05 Thread Ashley Yakeley

Apologies if this has been covered before. What compatibility is there 
between code compiled in different versions of GHC?

My JVM-Bridge was compiled under 5.02 and assembled as package 'javavm'. 
Will that package work if added to GHC 5.02.2? What about 5.03?

-- 
Ashley Yakeley, Seattle WA

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: ANNOUNCE: GHC 5.03.20020204 snapshot release

2002-02-05 Thread Ashley Yakeley

At 2002-02-05 06:36, Julian Seward (Intl Vendor) wrote:

   - newtypes support deriving *any* class for which the
 underlying type is also an instance.

How about multi-parameter classes where there are instances for the 
underlying type on more than one parameter: is it possible to specify 
which parameter the newtype is being derived on?

   - Linear implicit parameters: a highly experimental feature.

What are they?


-- 
Ashley Yakeley, Seattle WA

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: Binary Compatibility

2002-02-05 Thread Sigbjorn Finne

 Apologies if this has been covered before. What compatibility is there 
 between code compiled in different versions of GHC?
 

As a rule, none. Always recompile your code for every new
release.

--sigbjorn


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users