From: Arie M. <ami...@cs...> - 2006-11-15 12:32:20
|
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, ar...@cs... wrote: > Wed Nov 15 13:10:06 CET 2006 Arie Middelkoop <ar...@cs...> > * Added the -fPIC compiler flag to CXX options in the makefile. > =20 > Apparantly, my platform (gentoo x86_64 linux) required that .o files ar= e "relocatable" when there=20 > are linked into a dynamic library. > =20 > (It might be an idea to use libtool to hide this kind of platform-speci= fic details) > =20 >=20 > Wed Nov 15 13:14:08 CET 2006 Arie Middelkoop <ar...@cs...> > * 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. > =20 > 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 !=3D 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 y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ wxhaskell-users mailing l= ist wxh...@li... https://lists.sourceforge.net/lis= ts/listinfo/wxhaskell-users |