Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 176847
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Markus Dittrich <markusle@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rajil <rajil.saraswat@imperial.ac.uk>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176847 depends on: Show dependency tree
Bug 176847 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-02 19:50 0000
I am trying to install vtk-5.0.3 using the following flags 


   USE="-qt3 qt4 examples" emerge sci-libs/vtk 



 Note that i want to build vtk using qt4 rather than qt3. vtk builds fine, but
when it come to compiling examples it fails like this 
   Linking CXX executable
/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/bin/qtsimpleview 
 CMakeFiles/qtsimpleview.dir/main.o: In function `main': 
 main.cxx:(.text+0xcf): undefined reference to
`QApplication::setMainWidget(QWidget*)' 
 collect2: ld returned 1 exit status 
 gmake[5]: *** [/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/bin/qtsimpleview]
Error 1 
 gmake[5]: Leaving directory
`/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/Examples/All' 
 gmake[4]: *** [GUI/Qt/SimpleView/CMakeFiles/qtsimpleview.dir/all] Error 2 
 gmake[4]: Leaving directory
`/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/Examples/All' 
 gmake[3]: *** [all] Error 2 
 gmake[3]: Leaving directory
`/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/Examples/All' 
 make[2]: *** [VTKExamples] Error 1 
 make[1]: *** [Examples/CMakeFiles/VTKExamplesTarget.dir/all] Error 2 
 make: *** [all] Error 2 
 !!! ERROR: sci-libs/vtk-5.0.3 failed. 
 Call stack: 
   ebuild.sh, line 1614:   Called dyn_compile 
   ebuild.sh, line 971:   Called qa_call 'src_compile' 
   environment, line 5112:   Called src_compile 
   vtk-5.0.3.ebuild, line 153:   Called die 

 !!! emake failed 
 !!! If you need support, post the topmost build error, and the call stack if
relevant. 
 !!! A complete build log is located at
'/var/tmp/portage/sci-libs/vtk-5.0.3/temp/build.log'. 

 !!! When you file a bug report, please include the following information: 
 GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.11" 
 JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" 
 and of course, the output of emerge --info 



 Since setMainWidget has moved from qapplication to QtSupport class, the source
code might have to be changed. Can anybody help?


Reproducible: Always

------- Comment #1 From Rajil 2007-05-02 19:51:14 0000 -------
emerge info:
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0,
2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Core(TM)2 CPU          6600  @
2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 28 Apr 2007 16:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/spool/PBS"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/nx
/usr/portage/local/layman/sunrise /usr/portage/local/layman/voip
/usr/portage/local/layman/stormfront /usr/portage/local/layman/xeffects
/usr/portage/local/layman/enlightenment /usr/portage/local/layman/java-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi addbookmarks adsl akode alias alsa amarok amr amrr apache2
arts asf atm audiofile autoreplace bash-completion beagle berkdb bitmap-fonts
bluetooth bzip2 cddb cdparanoia cdr cdrom chm chroot cjk clamav cli
connectionstatus contactnotes cracklib crypt css cups dbus dga dhcp divx
divx4linux djvu doc dri dv dvd dvdr dvdread dvi emerald encode exif fame
fbsplash firefox fortran freetype gcj gd gdbm gif gimp glitz glx gmedia gnutls
gphoto2 gpm h323 hal highlight history iconv idn ieee1394 ilbc imagemagick ipod
irc isdnlog jabber java jingle jpeg jpeg2k kde kdeenablefinal kdepim kdgraphics
kipi latex lcms ldap libg++ libsamplerate live mad midi mikmod mmx mmx2 mmxext
mng mozbranding moznopango mp3 mplayer msn musicbrainz nas ncurses net netpbm
network nls nodrm nowlistening nptl nptlonly nsplugin nvidia nxclient ofx ogg
opengl openssh oss pam pcntl pcre pdf perl php png posix ppds pppd python qt3
quicktime rdesktop readline real realmedia reflection samba sametime scanner
screen session slp sms spamassassin speech speex spl sse sse2 ssl statistics
subtitles svg tcl tcltk tcpd tetex texteffect theora tiff tk truetype
truetype-fonts type1-fonts unicode unzip upnp usb v4l v4l2 vcd vnc vorbis
webpresence wifi win32codecs winpopup wmf wmp x86 xchatdccserver xcomposite
xine xinerama xorg xosd xv xvid yahoo yaz zeroconf zip zlib"
ALSA_CARDS="emu10k1 via82xx hda-intel intel8x0" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus
cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3
s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via
vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Markus Dittrich 2007-05-03 03:11:30 0000 -------
Hi Rajil,

Could you please try if emerging qt4 with USE="qt3support"
solves this issue.

Thanks,
Markus

------- Comment #3 From Rajil 2007-05-03 15:12:07 0000 -------
Hi Markus,
Thanks for the hint. With qt3support enabled it worked :). Maybe a warning can
be added to the vtk ebuild about this.

Cheers,
Rajil

------- Comment #4 From Markus Dittrich 2007-05-03 23:12:38 0000 -------
Great! I will change the ebuild so it will terminate right
at the beginning of the emerge should qt4 be installed
without "qt3support".

Thanks,
Markus

------- Comment #5 From Sebastiaan 2007-05-07 13:47:41 0000 -------
Also works for me, but I wonder if the problem does not lie with VTK. Should a
USE=qt4 build depend on qt3 calls?

------- Comment #6 From Markus Dittrich 2007-05-08 13:01:25 0000 -------
(In reply to comment #5)
> Also works for me, but I wonder if the problem does not lie with VTK. Should a
> USE=qt4 build depend on qt3 calls?
> 

Here's my stand on this and I might very well be wrong ;)

I'd say the problem is VTK's combined with qt4 or rather the way qt4 is 
distributed within gentoo. qt4 provides backward compatibility functions 
for qt3 and as long as qt4 is build with this support enabled, qt4 code that 
uses some of these calls compiles fine. However, as soon as qt3support 
is missing, code like this won't compile any more.

In any case, "mixed" qt3/qt4 code like this even though it is supported by
qt4 really isn't clean and deprecated and the VTK folks will have to spend 
some time porting it to qt4 all the way rather than just hacking their 
previous qt3 code and relying on qt4 to provide the proper bindings.

Best,
Markus

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug