Compiling dev-haskell/wxhaskell-0.8 fails. I believe this is because there are mismatches to the wxwidgets includes. I suspect this is a case where the new wxwidgets eclass must be used in the wxhaskell ebuild. See bug #39931. (This occurs with x11-libs/wxGTK-2.4.2-r2.) Reproducible: Always Steps to Reproduce: 1. emerge x11-libs/wxGTK-2.4.2-r2 # this sets up wxwidgets eclass 2. emerge dev-haskell/wxhaskell-0.8 # this doesn't use wxwidgets eclass yet Actual Results: hbg-srv2 wx # emerge -uDv wxhaskell Calculating dependencies ...done! >>> emerge (1 of 1) dev-haskell/wxhaskell-0.8 to / >>> md5 src_uri ;-) wxhaskell-src-0.8.zip >>> Unpacking source... >>> Unpacking wxhaskell-src-0.8.zip to /var/tmp/portage/wxhaskell-0.8/work >>> Source unpacked. checking system: wx-config found ghc found /bin/true found haddock found install program found creating configuration files: config config/config.mk config/wxcore.pkg config/wx.pkg config/wxhaskell-register.bat config/wxhaskell-unregister.bat config/setcd config/macosx-install.info config/macosx-postinstall config/macosx-app config/wxhaskell.spec config/prologue.txt config/cache.txt configuration: library: wxhaskell-0.8 (release 0) compiler: ghc-6.2.1 wxwidgets: gtk-2.4.2 with openGL: yes library dir: /var/tmp/portage/wxhaskell-0.8/image///usr/lib/ghc-6.2.1-r1 done: type 'make' to build wxhaskell. type 'make install' to install wxhaskell. type 'make help' to receive help on all other make targets g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Iwxc/include In file included from wxc/src/ewxw_main.cpp:1: wxc/include/wrapper.h: In constructor ` ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*))': wxc/include/wrapper.h:172: error: no matching function for call to ` wxDataObjectSimple::wxDataObjectSimple(char*&)' /usr/include/wx/dataobj.h:193: error: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) /usr/include/wx/dataobj.h:198: error: wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat&) wxc/include/wrapper.h: In constructor ` ELJTextValidator::ELJTextValidator(void*, void*, void*, long int)': wxc/include/wrapper.h:256: error: ambiguous overload for 'operator=' in ' this->ELJTextValidator::buf = _txt' /usr/include/wx/string.h:278: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx/string.h:519: error: wxString& wxString::operator=(const wxString&) <near match> /usr/include/wx/string.h:521: error: wxString& wxString::operator=(wchar_t) <near match> /usr/include/wx/string.h:527: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:330: error: conflicting return type specified for ` virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' /usr/include/wx/ipcbase.h:86: error: overriding `virtual wxChar* wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' wxc/include/wrapper.h: In constructor `ELJConnection::ELJConnection(char*, int) ': wxc/include/wrapper.h:300: error: no matching function for call to ` wxTCPConnection::wxTCPConnection(char*&, int&)' /usr/include/wx/sckipc.h:60: error: candidates are: wxTCPConnection::wxTCPConnection(wxTCPConnection&) /usr/include/wx/sckipc.h:65: error: wxTCPConnection::wxTCPConnection() /usr/include/wx/sckipc.h:64: error: wxTCPConnection::wxTCPConnection(wxChar*, int) wxc/include/wrapper.h: In constructor `ELJPrintout::ELJPrintout(void*, void*, void*, void*, void*, void*, void*, void*, void*, void*)': wxc/include/wrapper.h:412: error: conversion from `char*' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: In constructor `ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, void*, void*, void*, void*, int, int, int, int, int)': wxc/include/wrapper.h:474: error: conversion from `char*' to `const wxString' is ambiguous /usr/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, unsigned int) <near match> /usr/include/wx/string.h:284: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:533: error: invalid type `const char[11]' for default argument to `const wxString&' make: *** [out/wxc/ewxw_main.o] Error 1 !!! ERROR: dev-haskell/wxhaskell-0.8 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! make failed Expected Results: Should compile successfully. Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r9) ================================================================= System uname: 2.6.7-gentoo-r9 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/spool/fax/etc /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com http://128.213.5.34/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ccccom.com" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm arts artswrappersuid avi berkdb bonobo bsh c++ caps cdr chroot clamav cln crypt cups dba dbm directfb dnd doc droproot dv dvd dvdr encode esd ethereal evo expat f77 fam fastcgi fbcon foomaticdb foreign-package foreign-sysvinit freetds gb gcj gd gd-external gdbm gif ginac gnome gnomedb gnuplot gpm gstreamer gtk gtk2 gtkhtml guile idea imap imlib innodb ipv6 jabber jack java javamail jce jdepend jikes jpeg jsch junit jython kde kerberos latex ldap libg++ libgda libwww lids live log4j ltsp lua lzw-tiff mad maildir matroska mbox mcal mdb memlimit mikmod mmx motif mozilla moznoirc moznomail mpeg mysql native ncurses nls nptl oav objc ocaml odbcofx oggvorbis ooo-kde opengl openssh oss pam parse-clocks pcre pda pdflib pear-db perl pg-hier php pic pie plotutils png posix postgres postgresql ppds python qt quicktime radeon readline ruby ruby18 samba sasl sdk sdl skey slang slp snmp speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype type1 unicode usb utf8 video_cards_radeon wmf wxwin wxwindows x86 xalan xemacs xerces xml xml2 xmms xprint xv yahoo yv12 zeo zlib"
Thanks for the report. I will try to look into this next week. ks
Created attachment 38319 [details] wxhaskell-0.8.ebuild According to the wxhaskell website it doesn't support unicode yet and thats the error you were getting, Howard. This ebuild will let you build either a gtk or gtk2 version using the new wxwidgets eclass. I compiled both versions fine, but don't know how to run a haskell program so its untested by me.
Re: Comment #2: Rob, your ebuild works fine for me (compilation only -- execution not tested). Andres, I suggest it be put into CVS if it works for you.
Thank you very much, Rob. Seems to work without any problems. I've commited the ebuild and I'm closing the bug. ks