Custom Query (7504 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 7504)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#24 Fixed dlopen() errors reported badly nobody cwitty
Description
(BTW, shouldn't there be a category in the sourceforge
bug-reporting page for "ghci"?)

ghci reports all dlopen() errors as "Can't find
(dynamic) ...".  This misleading error message wasted
quite a bit of my time trying to figure out why it
couldn't find the library that was "right there".

For example:
galaxy% ghci -lXpm
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version
5.02, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package std ... linking ... done.
Loading object (dynamic) Xpm ... failed.
Can't find (dynamic) Xpm in directories:
ghc-5.02: user specified .o/.so/.DLL could not be
loaded.
galaxy%

ghci reported that it couldn't find a dynamic libXpm. 
However, a little peeking with ltrace reveals the real
problem:

galaxy% ltrace -e 'dlerror,dlopen' -s 300 
/usr/lib/ghc-5.02/ghc-5.02 -B/usr/lib/ghc-5.02
--interactive -lXpm
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version
5.02, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

dlopen(NULL, 1)                                   =
0x400153d8
Loading package std ... --- SIGVTALRM (Virtual timer
expired) ---
--- SIGVTALRM (Virtual timer expired) ---
linking ... --- SIGVTALRM (Virtual timer expired) ---
--- SIGVTALRM (Virtual timer expired) ---
--- SIGVTALRM (Virtual timer expired) ---
--- SIGVTALRM (Virtual timer expired) ---
done.
Loading object (dynamic) Xpm ... dlopen("libXpm.so",
258)                          = NULL
dlerror()                                         =
"/usr/X11R6/lib/libXpm.so: undefined symbol:
XDefaultScreen"
failed.
Can't find (dynamic) Xpm in directories:
ghc-5.02: user specified .o/.so/.DLL could not be
loaded.

Armed with the real error message from dlerror()
("undefined symbol: XDefaultScreen"), I can deduce that
I really need to use -lX11 as well.

galaxy% ghci -lXpm -lX11
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version
5.02, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package std ... linking ... done.
Loading object (dynamic) X11 ... done
Loading object (dynamic) Xpm ... done
final link ... done.
Prelude> 

As expected, this works fine.

galaxy% uname -a
Linux galaxy 2.4.14-pre6 #1 Thu Nov 1 02:23:35 PST 2001
i686 unknown
galaxy% gcc -v
Reading specs from
/usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011006 (Debian prerelease)

#25 Fixed ghc requires main to be in Main simonpj iavor_sd
Description
it looks like ghc requires that the main function
be defined in the module Main, rather than simply
be exported from Main as the report says.  

here is an example:

module Main(main) where
import B


module B where
main = print "hello"


ghc B.hs Main.hs
Module `Main' must include a definition for `main'

i tried this using ghc-5.02 on linux (mandrake 8.0 
distribution)

#26 None -fno-warn-incomplete-patterns ignored nobody nobody
Description
Preliminary experimentation with code that comiple with
ghc-5.02 and falls over with ghc-5.02.1 suggests that
the -fno-warn-incomplete-patterns flag is ignored.

Ghc falls over with,

ghc-5.02.1:panic! (the `impossible' happened, GHC
version 5.02.1):
/tmp/ghc[].lpp:[]: Non-exhaustive patterns in case.

Cheers
Rahul

mailto:[email protected]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.