Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120483 - Emerge fails for mahjongg3d - ... MainDialogBase.h: No such file or directory
Summary: Emerge fails for mahjongg3d - ... MainDialogBase.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 16:02 UTC by Bill Krueger
Modified: 2006-05-05 12:19 UTC (History)
2 users (show)

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 Bill Krueger 2006-01-26 16:02:07 UTC
I'm getting the following error when trying to emerge mahjongg3d:
 emerge mahjongg3d
Calculating dependencies ...done!
>>> emerge (1 of 1) games-board/mahjongg3d-0.96 to /
>>> Downloading ftp://ftp.ndlug.nd.edu/pub/gentoo/distfiles/mahjongg3d-0.96.tar.bz2
--17:49:07--  ftp://ftp.ndlug.nd.edu/pub/gentoo/distfiles/mahjongg3d-0.96.tar.bz2
           => `/usr/portage/distfiles/mahjongg3d-0.96.tar.bz2'
Resolving ftp.ndlug.nd.edu... 129.74.170.242
Connecting to ftp.ndlug.nd.edu|129.74.170.242|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gentoo/distfiles ... done.
==> PASV ... done.    ==> RETR mahjongg3d-0.96.tar.bz2 ... done.
Length: 4,906,036 (4.7M) (unauthoritative)

100%[================================================================================================================>] 4,906,036      1.50M/s    ETA 00:00

17:49:11 (1.43 MB/s) - `/usr/portage/distfiles/mahjongg3d-0.96.tar.bz2' saved [4906036]

>>> checksums files   ;-) mahjongg3d-0.96.ebuild
>>> checksums files   ;-) files/digest-mahjongg3d-0.96
>>> checksums src_uri ;-) mahjongg3d-0.96.tar.bz2
>>> Unpacking source...
>>> Unpacking mahjongg3d-0.96.tar.bz2 to /var/tmp/portage/mahjongg3d-0.96/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mahjongg3d-0.96/work/mahjongg3d.release ...
cd src && /usr/bin/qmake src.pro -unix
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
cd src && make
make[1]: Entering directory `/var/tmp/portage/mahjongg3d-0.96/work/mahjongg3d.release/src'
g++ -c -pipe -march=pentium4 -O2 -pipe -fprefetch-loop-arrays -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/doc/qt-4.1.0-r2/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include -I/usr/include -I. -I. -o main.o main.cpp
In file included from main.cpp:2:
MainDialog.h:23:28: MainDialogBase.h: No such file or directory
In file included from main.cpp:2:
MainDialog.h:39: error: expected class-name before '{' token
MainDialog.h:39: warning: `class MainDialog' has virtual functions but non-virtual destructor
main.cpp: In function `int main(int, char**)':
main.cpp:33: error: 'class MainDialog' has no member named 'setCaption'
main.cpp:34: error: 'class MainDialog' has no member named 'show'
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mahjongg3d-0.96/work/mahjongg3d.release/src'
make: *** [sub-src-make_default] Error 2

!!! ERROR: games-board/mahjongg3d-0.96 failed.



---------------------------------------------------------------------------
output of emerge --info:

Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-gentoo-r6 i686)
=================================================================
System uname: 2.6.14-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://ftp.ndlug.nd.edu/pub/gentoo/  ftp://ftp.ussg.iu.edu/pub/linux/gentoo  ftp://gentoo.ccccom.com  ftp://gentoo.mirrors.tds.net/gentoo  ftp://ftp.ussg.iu.edu/pub/linux/gentoo  ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo  ftp://gentoo.mirrors.pair.com/  ftp://gentoo.noved.org/  #ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo  ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ "
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="x86 X aac acl aim alsa apache2 apm artworkextra audiofile avi bash-completion berkdb bitmap-fonts bmp browserplugin bzip2 cairo canvas cdr crypt cups curl dbus doc ecc eds emacs emboss encode esd ethereal examples exif expat fam ffmpeg firefox flac foomaticdb fortran freetts gd gdbm gecko-sdk gif gimpprint glitz glut gmp gnome gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal howl idea idn imagemagick imlib insecure-savers ipv6 java jpeg junit lcms ldap lesstif libclamav libg++ libwww live lua mad mailwrapper mbrola mhash mikmod mmx mmx2 mng mozilla mozsvg mp3 mpeg mplayer mysql ncurses network new-login nls nptl nptlonly nsplugin ntlm oci8 offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl png postgres ppds python quicktime readline real recode rtc sdl source speex spell sqlite sse sse2 ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis win32codecs xanim xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_i810 video_cards_i915"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2006-01-27 08:34:53 UTC
use qt3
Comment 2 Bill Krueger 2006-02-02 09:42:58 UTC
Is using qt3 a requirement or do you want me to test this out?  

If it's a requirement then the ebuild is broken and needs to be changed to not allow qt 4 to be used. 

If it's a test then I've been scratching my head on how to get the ebuild of mahjongg3d to use qt-3. I've changed the line in the ebuild that reads:

DEPEND="$(qt_min_version 3.2)

to read 

DEPEND="x11-libs/qt-3*

but the result is the same. I'll keep trying but any suggestions would help. Note I have both versions of qt (3 and 4) installed on my system.
Comment 3 Bill Krueger 2006-02-02 11:18:34 UTC
(In reply to comment #2)

Actually I meant 

 DEPEND="=x11-libs/qt-3*

(forgot the equals sign).

Comment 4 Bill Krueger 2006-02-02 13:54:28 UTC
Got it to compile using qt3. 

First I followed the instructions from bug number 97404 at

http://bugs.gentoo.org/show_bug.cgi?id=97404

which said to add "inherit qt3" and use DEPEND=$(qt_min_version n.m) which I had previously changed to the =x11-libs/qt-3* so I changed that back to (qt_min_version 3.2). All that didn't help though so further research found bug # 120116 that had a patch to qt3.eclass so I applied that patch since it hasn't been applied yet. See:

http://bugs.gentoo.org/show_bug.cgi?id=120116#c6

for the patch. I then changed the line in the mahjongg3d ebuild that executed qmake to eqmake to use the new function from the patch. I was then able to successfully compile and run mahjongg3d using emerge. 
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2006-05-05 04:47:05 UTC
Looks like this has been fixed now.

09 Feb 2006; Caleb Tennis <caleb@gentoo.org> mahjongg3d-0.96.ebuild:
  Fix qmake call to get the Qt3 version
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-05 12:19:26 UTC
Thanks for the heads up!