Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306135 - app-office/openoffice-3.2.0 doesn't find QT4 Libraries
Summary: app-office/openoffice-3.2.0 doesn't find QT4 Libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 01:07 UTC by Steffen Hau
Modified: 2010-11-11 20:40 UTC (History)
7 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 Steffen Hau 2010-02-21 01:07:36 UTC
Emerging of openoffice-3.2.0 failes because configure doesn't find QT4 libraries.

checking for Qt4 headers... /usr/include/qt4
checking for Qt4 libraries... no
configure: error: Qt4 libraries not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running "configure".
make: *** [stamp/build] Error 1
 * ERROR: app-office/openoffice-3.2.0 failed:
 *   Build failed

gentoo-3.1.1.diff in openoffice files dir considered that the libraries are located in /usr/lib/qt4
-+   qt_libdirs="$QT4LIB $QTLIB /usr/lib $x_libraries"
++   qt_libdirs="$QT4LIB $QTLIB /usr/lib/qt4 /usr/lib $x_libraries"

I guess this has do be also applied in 3.2.0

Reproducible: Always

Steps to Reproduce:
1. merge openoffice-3.2.0
2.
3.

Actual Results:  
configure doesn't find QT4 libraries


schlepptop tmp # emerge --info
Portage 2.2_rc63 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-rc7-HAUIHAU i686)
=================================================================
System uname: Linux-2.6.33-rc7-HAUIHAU-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 20 Feb 2010 19:30:07 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fakeroot fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/x11 /var/lib/layman/hauihau"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apache2 bash-completion berkdb bidi bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli cracklib crypt ctype cups curl cxx dbus dedicated dga directfb doc dri dts dv dvd dvdr dvdread encode examples exif ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz glut gmp gnome gnome-keyring gnutls gphoto2 gstreamer gtk gtk2 hal htmlhandbook iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 java java5 java6 javascript jpeg jpeg2k kde lame lcms ldap libcaca libnotify libsamplerate lua mad mikmod mmap mmx mng modules mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcmcia pcre pdf perl php plasma png policykit posix ppds pppd python qt4 quicktime readline reflection rss rtc ruby samba sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb userlocales v4l2 vcd vim-syntax visualization vorbis win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Penetsdorfer Martin 2010-02-21 18:46:32 UTC
Please try follow:
# echo 'QT4LIB="/usr/lib/qt4"' >> /etc/env.d/44qt4
# echo 'QT4DIR="/usr/lib/qt4"' >> /etc/env.d/44qt4
# env-update && source /etc/profile
# emerge openoffice
Comment 2 Fabio Coatti 2010-02-21 22:04:37 UTC
Same problem here; tried the workaround and right now the build phase is running on, so far so good :)

Not sure about how many hours it will take to end the compile phase but it seems ok.

Interesting enough, on a very similar installation but on a 64 bit arch oo compiled just fine even without env.d fix.
Comment 3 Martin Samek 2010-02-21 23:53:28 UTC
This is only x86 bug with kde flag. More can be found in this thread:
http://bugs.gentoo.org/show_bug.cgi?id=280344
Comment 4 Martin Samek 2010-02-21 23:58:13 UTC
In short, there is wrong Qt4 path in the configure script for x86 plattform.
Comment 5 Juergen Rose 2010-02-22 01:41:53 UTC
When will the patch of Comment  #3 included in the portage tree?
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2010-02-22 10:12:18 UTC
Should be fixed by setting QT4LIB in the ebuild (which I've done now). Please give the mirrors some time to catch up, resync and then report back if the fix works for you.
Comment 7 Alexander Koryushkin 2010-02-22 10:21:41 UTC
(In reply to comment #1)
> Please try follow:
> # echo 'QT4LIB="/usr/lib/qt4"' >> /etc/env.d/44qt4
> # echo 'QT4DIR="/usr/lib/qt4"' >> /etc/env.d/44qt4
> # env-update && source /etc/profile
> # emerge openoffice
> 

This help, but ooo cant build later. This i another bug...
Comment 8 Alexander Koryushkin 2010-02-22 10:22:45 UTC
> This help, but ooo cant build later. This i another bug...

This iS 

Comment 9 Bartosz Brachaczek 2010-03-15 19:43:52 UTC
(In reply to comment #6)
> Should be fixed by setting QT4LIB in the ebuild (which I've done now). Please
> give the mirrors some time to catch up, resync and then report back if the fix
> works for you.
> 

Confirming that this fix works good. Thanks.
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-11 20:40:02 UTC
Fixed, closing