<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>176847</bug_id>
          
          <creation_ts>2007-05-02 19:50 0000</creation_ts>
          <short_desc>emerge sci-libs/vtk-5.0.3-5.0.3  fails</short_desc>
          <delta_ts>2007-05-08 13:01:25 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rajil.saraswat@imperial.ac.uk</reporter>
          <assigned_to>markusle@gentoo.org</assigned_to>
          <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rajil.saraswat@imperial.ac.uk</who>
            <bug_when>2007-05-02 19:50:00 0000</bug_when>
            <thetext>I am trying to install vtk-5.0.3 using the following flags 

 
   USE=&quot;-qt3 qt4 examples&quot; 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&apos;: 
 main.cxx:(.text+0xcf): undefined reference to `QApplication::setMainWidget(QWidget*)&apos; 
 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&apos; 
 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&apos; 
 gmake[3]: *** [all] Error 2 
 gmake[3]: Leaving directory `/var/tmp/portage/sci-libs/vtk-5.0.3/work/VTK/Examples/All&apos; 
 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 &apos;src_compile&apos; 
   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 &apos;/var/tmp/portage/sci-libs/vtk-5.0.3/temp/build.log&apos;. 
 
 !!! When you file a bug report, please include the following information: 
 GENTOO_VM=sun-jdk-1.5  CLASSPATH=&quot;&quot; JAVA_HOME=&quot;/opt/sun-jdk-1.5.0.11&quot; 
 JAVACFLAGS=&quot;-source 1.5 -target 1.5&quot; COMPILER=&quot;&quot; 
 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajil.saraswat@imperial.ac.uk</who>
            <bug_when>2007-05-02 19:51:14 0000</bug_when>
            <thetext>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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-march=pentium-m -msse3 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_GB&quot;
LINGUAS=&quot;en_GB&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/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&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;emu10k1 via82xx hda-intel intel8x0&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_GB&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-05-03 03:11:30 0000</bug_when>
            <thetext>Hi Rajil,

Could you please try if emerging qt4 with USE=&quot;qt3support&quot;
solves this issue.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajil.saraswat@imperial.ac.uk</who>
            <bug_when>2007-05-03 15:12:07 0000</bug_when>
            <thetext>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


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-05-03 23:12:38 0000</bug_when>
            <thetext>Great! I will change the ebuild so it will terminate right
at the beginning of the emerge should qt4 be installed
without &quot;qt3support&quot;.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s.breedveld@erasmusmc.nl</who>
            <bug_when>2007-05-07 13:47:41 0000</bug_when>
            <thetext>Also works for me, but I wonder if the problem does not lie with VTK. Should a USE=qt4 build depend on qt3 calls?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-05-08 13:01:25 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Also works for me, but I wonder if the problem does not lie with VTK. Should a
&gt; USE=qt4 build depend on qt3 calls?
&gt; 

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

I&apos;d say the problem is VTK&apos;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&apos;t compile any more.

In any case, &quot;mixed&quot; qt3/qt4 code like this even though it is supported by
qt4 really isn&apos;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</thetext>
          </long_desc>
      
    </bug>

</bugzilla>