I was able to emerge the older qt-snapshots, but this one is just not working for me. g++ -fno-exceptions -o ../../../bin/uic .obj/release-shared-mt/main.o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o -Wl,-rpath,/var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/lib -L/var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -ldl -lpthread -lqt-mt -lmng -ljpeg -lpng -lz -lpthread -lGLU -lGL -lXmu -lSM -lICE -ldl -lXext -lX11 -lm -lXinerama -lXrender -lXft -lfreetype -lXi /var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `XftDrawCreateAlpha' /var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `XftCharExists' /var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `XftDrawPicture' collect2: ld returned 1 exit status make[3]: *** [../../../bin/uic] Error 1 make[3]: Leaving directory `/var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/tools/designer/uic' make[2]: *** [sub-uic] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/tools/designer' make[1]: *** [sub-designer] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.1.0/work/qt-x11-free-3.1.0/tools' make: *** [sub-tools] Error 2 !!! ERROR: x11-libs/qt-3.1.0 failed. !!! Function src_compile, Line 72, Exitcode 2 !!! (no error message) I'm running xfree-4.2.1 [not r1] with xft2/fontconfig. I re-emerged xft2 just to be safe, as that fixed it most of the time. I'm still having a problem.
the problem is xft2, if you unmerge it, qt will compile.
isn't qt 3.1 supposed to be compatible with xft2?
Yes, it is... And for the heck of it I tried what you said, and I got this: root@gentoo grandpajive # emerge qt Calculating dependencies ...done! >>> emerge (1 of 1) x11-libs/qt-3.1.0 to / >>> md5 ;-) qt-x11-free-3.1.0.tar.gz >>> Unpacking source... >>> Unpacking qt-x11-free-3.1.0.tar.gz >>> Source unpacked. cups gif Xft support cannot be enabled due to functionality tests! Turn on verbose messaging (-v) to ./configure to see the final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue. !!! ERROR: x11-libs/qt-3.1.0 failed. !!! Function src_compile, Line 68, Exitcode 101 !!! (no error message)
sorry if i'm wrong, but i get the following: -when i emerge xft-2.0, i get exactly your error, without xft-2.0, qt-3.1.0 compiles fine (with xfree-4.2.1) -look at http://bugs.gentoo.org/show_bug.cgi?id=10373 it is a similar issue
agreed, it is similar.. but I noticed that with 3.1.0_pre20021104 some extra things happen: cd include && headers=`ls q*.h 2>/dev/null` &&\ [ "x$headers" != "x" ] && rm -f $headers; cd include && ln -f -s ../src/*/q*.h . && ln -f -s ../extensions/*/src/q*.h . && \ ln -f -s ../tools/designer/uilib/q*.h . &&\ ln -f -s ../tools/assistant/lib/q*.h . && rm -f q*_p.h && \ cd private && rm -f q*.h && ln -f -s ../../src/*/q*_p.h .; and with 3.0.5-rc2 some patches are applied, and with this version no patches or anything happen. I tried again after an rsync from 2 minutes ago, and I still get that problem when I remove xft. I'd really hate to lose xft, but I could try compiling without xft. [ie, remove it from the configure line in the ebuild].
well, qt-3.1.0 works with xft-1 (which is from xfree), you don't have to change the qt-ebuild. a problem is, that xft-2 overwrites files in /usr/include/X11/Xft/, so you have to emerge xfree first (which will put his xft files there) and then emerge qt.
Oddly enough, I could build qt-3.1.0 from source when I removed xft2.. the ebuild when checking/testing for xft would fail. I used this for the configure line: ./configure -system-zlib -qt-gif -system-libpng \ -system-libjpeg -plugin-imgfmt-mng -thread -no-stl \ -no-xinerama -no-g++-exceptions When configuring it said it didn't find XFT so... its not there. Hmm. Guess thats why xft2 is masked after all ;) Nonetheless its a sticky situation... I hope I'm the only one stuck with this.
ok, if you want to use xft-2 and qt-3.1, i have the following solution for you: emerge xft-2 rm /usr/X11R6/lib/libXft* then emerge qt-3.1 should work with xft-2
well, i opened a bug about xft-2 and gentoo in general, i mark this as duplicate of it. thank you for submission. *** This bug has been marked as a duplicate of 10834 ***