Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298269 - dev-java/qtjambi-4.5.2_p1 fails to compile using Qt-4.6.0
Summary: dev-java/qtjambi-4.5.2_p1 fails to compile using Qt-4.6.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-24 22:15 UTC by Krzysztof Magusiak
Modified: 2010-01-03 11:48 UTC (History)
1 user (show)

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


Attachments
emerge --info =dev-java/qtjambi-4.5.2_p1 (emerge.info,4.61 KB, text/plain)
2009-12-24 22:17 UTC, Krzysztof Magusiak
Details
Patch for qtjambi-4.5.2_p1 ebuild (qtjambi-4.5.2_p1.ebuild.patch,1.79 KB, patch)
2009-12-26 17:33 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Magusiak 2009-12-24 22:15:46 UTC
dev-java/qtjambi-4.5.2_p1 fails to compile
USE="examples opengl -debug -doc -phonon -source -webkit -xmlpatterns"

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -av qtjambi

Actual Results:  
Compilation ends with:
[make] x86_64-pc-linux-gnu-g++ -c -pipe -march=athlon64 -O2 -pipe -Wall -W -Wno-unused-function -D_REENTRANT -fPIC -DQT_QTJAMBI_IMPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../qtjambi -I../common -I/opt/icedtea6-bin-1.6.2/include -I/opt/icedtea6-bin-1.6.2/include/linux -I. -I../qtjambi_core -I. -o qtjambishell_QPixmapCache.o ../cpp/com_trolltech_qt_gui/qtjambishell_QPixmapCache.cpp
     [make] ../cpp/com_trolltech_qt_gui/qtjambishell_QPixmapCache.cpp: In function 'jboolean Java_com_trolltech_qt_gui_QPixmapCache_find__Ljava_lang_String_2Lcom_trolltech_qt_QNativePointer_2(JNIEnv*, _jclass*, _jobject*, _jobject*)':
     [make] ../cpp/com_trolltech_qt_gui/qtjambishell_QPixmapCache.cpp:120: error: redefinition of 'jboolean Java_com_trolltech_qt_gui_QPixmapCache_find__Ljava_lang_String_2Lcom_trolltech_qt_QNativePointer_2(JNIEnv*, _jclass*, _jobject*, _jobject*)'
     [make] ../cpp/com_trolltech_qt_gui/qtjambishell_QPixmapCache.cpp:99: error: 'jboolean Java_com_trolltech_qt_gui_QPixmapCache_find__Ljava_lang_String_2Lcom_trolltech_qt_QNativePointer_2(JNIEnv*, _jclass*, _jobject*, _jobject*)' previously defined here
     [make] make[1]: *** [qtjambishell_QPixmapCache.o] Error 1


 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4790:  Called eant '-Dqtjambi.config=release' '-Dlibrary.designer=true' '-Dgentoo.opengl=true' '-Dgentoo.phonon=false' '-Dgentoo.webkit=false' '-Dgentoo.xmlpatterns=false' 'library.native.compile'
 *   environment, line 1097:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"


Expected Results:  
Compile and install.

GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.6.2"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
Comment 1 Krzysztof Magusiak 2009-12-24 22:17:40 UTC
Created attachment 214070 [details]
emerge --info =dev-java/qtjambi-4.5.2_p1
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2009-12-25 17:43:36 UTC
Which qt version?
Comment 3 Krzysztof Magusiak 2009-12-25 23:38:50 UTC
(In reply to comment #2)
> Which qt version?
> 
# equery list x11-libs/qt*
 * Searching for qt* in x11-libs ...
[IP-] [ ~] x11-libs/qt-core-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-dbus-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-gui-4.6.0-r1 (4)
[IP-] [ ~] x11-libs/qt-opengl-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-script-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-sql-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-svg-4.6.0 (4)
[IP-] [ ~] x11-libs/qt-xmlpatterns-4.6.0 (4)

Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2009-12-26 17:23:52 UTC
This is expected, qtjambi-4.5.x isn't compatible with Qt 4.6. Unfortunately a 4.6-compatible qtjambi hasn't been released yet :(
If you need qtjambi, you have to stay with qt-4.5.x until a newer version of qtjambi is available.

Anyway the deps need to be fixed, I'm preparing a patch :)
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2009-12-26 17:33:59 UTC
Created attachment 214226 [details, diff]
Patch for qtjambi-4.5.2_p1 ebuild

Restrict dependencies to '=x11-libs/qt-foo-4.5*'.
While at it, I also ported the ebuild to qt4-r2 eclass.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2009-12-26 17:38:46 UTC
And please remove older versions from the tree :)
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2010-01-03 01:29:27 UTC
Committed. Thanks!
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2010-01-03 11:48:32 UTC
Well, the issue outlined in the summary of this bug is not really fixed... and won't be until upstream releases a new qtjambi version. I suggest marking this as "resolved upstream".