Hi wxhaskell-users mailinglist,

Uuhm, I didn't know that 'darcs send' directly transmits the email :o
(and apparantly, the mailer on my machine doesn't know my email address)

The reason I send these patches is as follows:
I tried to compile wxHaskell on x86_64 gentoo linux, but that failed.
With these patches I can build, install and run wxHaskell (although I
have to configure with --with-opengl otherwise ghc complains about
missing symbols when run with -package wx).

I encountered two problems:

(1) I had to add the -fPIC option to the CXX flags in the make file,
otherwise during linking, the "make" (wxcore) fails, as it requires
locatable .o files to produce a dynamic library.

(2) Made a few fixes in the code with respect to 64bit compatiblity. I
hope I didn't make changes in generated C-code...

Hope you can do something with it...

All the best,
Arie


On Wed, 2006-11-15 at 13:22 +0100, [EMAIL PROTECTED] wrote:
> Wed Nov 15 13:10:06 CET 2006  Arie Middelkoop <[EMAIL PROTECTED]>
>   * Added the -fPIC compiler flag to CXX options in the makefile.
>   
>   Apparantly, my platform (gentoo x86_64 linux) required that .o files are 
> "relocatable" when there 
>   are linked into a dynamic library.
>   
>   (It might be an idea to use libtool to hide this kind of platform-specific 
> details)
>   
> 
> Wed Nov 15 13:14:08 CET 2006  Arie Middelkoop <[EMAIL PROTECTED]>
>   * Compiling wxHaskell on a 64bits platform fails, because there
>   are some assumptions in the code that assume that integers are
>   32bits. For example, there are a couple of assignments of a
>   pointer to an int.
>   
>   This patch fixes these problems. Sometimes, after assigning a
>   pointer to an integer, the int was used as a boolean value. In
>   those cases, instead of returning a pointer p, I changed the
>   code to return p != NULL. In two other cases, a pointer is stored
>   inside the int and in these cases I changed the type of the
>   int to intptr_t, of which it is guaranteed that a pointer can be
>   assigned to it and recovered from it (requires <inttypes.h>, i'm
>   not sure if it is available of windows platforms though).
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________ wxhaskell-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxhaskell-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to