Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110932 - wxhaskell ebuild fails with current wxGTK
Summary: wxhaskell ebuild fails with current wxGTK
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on: 123323
Blocks:
  Show dependency tree
 
Reported: 2005-10-30 13:10 UTC by Andrzej
Modified: 2006-03-15 03:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej 2005-10-30 13:10:15 UTC
Emerging wxhaskell-0.8-r1 fails on a fairly new (just installed) system:

>>> emerge (1 of 1) dev-haskell/wxhaskell-0.8-r1 to /
>>> md5 files   ;-) wxhaskell-0.9.ebuild
>>> md5 files   ;-) wxhaskell-0.8-r1.ebuild
>>> md5 files   ;-) wxhaskell-0.9.4.ebuild
>>> md5 files   ;-) files/digest-wxhaskell-0.8-r1
>>> md5 files   ;-) files/digest-wxhaskell-0.9.4
>>> md5 files   ;-) files/digest-wxhaskell-0.9
>>> md5 src_uri ;-) wxhaskell-src-0.8.zip
>>> Unpacking source...
>>> Unpacking wxhaskell-src-0.8.zip to /var/tmp/portage/wxhaskell-0.8-r1/work
>>> Source unpacked.
!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/bin/wxgtk2-2.4-config not found
!!! set-wxconfig:         /usr/bin/wxgtk2d-2.4-config not found
!!! You need to emerge wxGTK with gtk2 in your USE

I actually *do* *have* gtk2 in USE flags for wxGTK.  Remerging wxGTK does not
help.  My current version of wxGTK is 2.6.1.
Comment 1 Andres Loeh (RETIRED) gentoo-dev 2005-11-09 04:16:12 UTC
Thanks for your bug report, and sorry for the very late answer.
Does wxhaskell-0.9.4 work for you?

Cheers,
  ks
Comment 2 Andrzej 2005-11-10 00:35:20 UTC
(In reply to comment #1)
> Thanks for your bug report, and sorry for the very late answer.
> Does wxhaskell-0.9.4 work for you?

It is not in stable yet, but I have tried it (with a keyword set for just this
package, other packages mostly stable).  It goes a little bit further,
configures nicely and borks on compilation after a short time.  This is the tail
of messages:

i686-pc-linux-gnu-g++ -c wxc/src/image.cpp -o out/wxc/image.o -MD
-march=pentium3 -O2 -msse -pipe -fomit-frame-pointer -fforce-mem -fforce-addr
-frename-registers -fprefetch-loop-arrays -falign-functions=64 -fPIC
-I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1   -Iwxc/include
wxc/src/image.cpp:124:2: warning: no newline at end of file
i686-pc-linux-gnu-g++ -c wxc/src/apppath.cpp -o out/wxc/apppath.o -MD
-march=pentium3 -O2 -msse -pipe -fomit-frame-pointer -fforce-mem -fforce-addr
-frename-registers -fprefetch-loop-arrays -falign-functions=64 -fPIC
-I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1   -Iwxc/include
wxc/src/apppath.cpp:114:2: warning: no newline at end of file
i686-pc-linux-gnu-g++ -c wxc/src/db.cpp -o out/wxc/db.o -MD -march=pentium3 -O2
-msse -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -frename-registers
-fprefetch-loop-arrays -falign-functions=64 -fPIC
-I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1   -Iwxc/include
wxc/src/db.cpp: In function `int wxDbColInf_GetColumnSize(wxDbColInf*)':
wxc/src/db.cpp:1035: error: 'class wxDbColInf' has no member named 'columnSize'
wxc/src/db.cpp: In function `int wxDbColInf_GetBufferLength(wxDbColInf*)':
wxc/src/db.cpp:1044: error: 'class wxDbColInf' has no member named '
   bufferLength'
wxc/src/db.cpp: In function `wxDbColInf* wxDb_GetResultColumns(wxDb*, int*)':
wxc/src/db.cpp:1158: error: 'class wxDbColInf' has no member named 'columnSize'
make: *** [out/wxc/db.o] Błąd 1

!!! ERROR: dev-haskell/wxhaskell-0.9.4 failed.
!!! Function src_compile, Line 60, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

and emerge info:

sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -msse -pipe -fomit-frame-pointer -fforce-mem
-fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -msse -pipe -fomit-frame-pointer -fforce-mem
-fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/
http://gentoo.intergenia.de ftp://ftp.du.se/pub/os/gentoo
http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo
http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo"
LINGUAS="pl en de da ru nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apm audiofile avi bash-completion berkdb bitmap-fonts bonobo
bzip2 crypt cscope cups curl directfb eds emboss encode esd exif expat fam
ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnutls gphoto2 gpm gstreamer
gtk gtk2 guile idn imagemagick imlib java jpeg junit lcms ldap libcaca libg++
libwww mad mikmod mng motif mp3 mpeg mysql ncurses nls nptl odbc ogg oggvorbis
opengl pam pcre pdflib perl pic png python quicktime readline ruby samba sdl
slang speex spell ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts
udev unicode usb vorbis wmf xine xml xml2 xmms xv xvid zlib video_cards_radeon
linguas_pl linguas_en linguas_de linguas_da linguas_ru linguas_nl userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2005-11-10 01:32:56 UTC
I can reproduce the new error. It seems to be caused by the odbc USE flag
being active while emerging wxGTK.

Do you require odbc support for wxGTK? Otherwise, please try to remerge
wxGTK with USE="-odbc" and see whether wxhaskell-0.9.4 succeeds. It does
on my machine, at least.

If this indeed fixes the problem for you, too, I'll try to see what can be
done to provide a better error message.

Cheers,
  ks
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2005-11-10 03:58:48 UTC
USE="-odbc" wxGTK and wxhaskell-0.9.4 emerges on my machine.
Comment 5 Andrzej 2005-11-10 04:33:23 UTC
(In reply to comment #4)
> USE="-odbc" wxGTK and wxhaskell-0.9.4 emerges on my machine.

I can also confirm that now.  It works on my machine.  Is a better error message
an only thing that can be done?  Cannot the ebuild be made to depend on wxGTK
with -odbc ? (I do not know the dependency system that is in place, to answer
this myself).

Also if wxhaskell-0.8 does not compile with current stable wxGTK, should not it
be removed from portage, or at least made dependent on an older version of wxGTK?
Comment 6 Andres Loeh (RETIRED) gentoo-dev 2005-11-10 05:07:43 UTC
Good. Well, I have to find out if there's a way to make wxhaskell compile
with an odbc version of wxGTK. If not, an informative error message while
emerging wxhaskell is the best we can do. USE-based dependencies are planned
for a long time, but not there yet.

And of course, I will try to fix wxhaskell-0.8. Not sure if I manage to do
so this week, but it will happen :)

Thanks again for your help.

ks
Comment 7 Duncan Coutts (RETIRED) gentoo-dev 2006-02-17 03:12:52 UTC
I've made the wxhaskell ebuilds check to see if wxGTK was built with odbc and if so give a helpful error message.

If there are any patches from upstream to get wxHaskell to work with wxGTK built with odbc then we can look again at this issue.

I'm marking this bug as a duplicate of bug #92827 and closing that bug.

If anyone thinks we've missed somethign then feel free to re-open this bug.

*** This bug has been marked as a duplicate of 92827 ***
Comment 8 Duncan Coutts (RETIRED) gentoo-dev 2006-02-18 11:23:38 UTC
Actually I've changed my mind. I don't think this is related to odbc in the USE flags. I can reproduce it with ghc-6.2.2, wxGTK-2.6.2 and wxhaskell-0.8-r1. Reopening.
Comment 9 Duncan Coutts (RETIRED) gentoo-dev 2006-02-19 10:51:46 UTC
Masking wxhaskell-0.8 and 0.9 because current wxGTK-2.4.x versions suffer from bug #123323 which prevents the wxcore package from linking properly.

If that bug gets fixed then we can unmask them again. Until then I can reccomend wxhaskell-0.9.4 (which requires wxGTK-2.6.x).
Comment 10 Duncan Coutts (RETIRED) gentoo-dev 2006-03-15 03:49:50 UTC
wxGTK-2.4.2 has been fixed and wxhaskell-0.8-r1 and wxhaskell-0.9 now build ok again. They have now been removed from the package.mask.

Closing this bug.