Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280344 - app-office/openoffice-3.1.1_beta1: configure failed at checking for Qt4 libraries
Summary: app-office/openoffice-3.1.1_beta1: configure failed at checking for Qt4 libra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 17:10 UTC by Martin Samek
Modified: 2010-07-27 13:43 UTC (History)
12 users (show)

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


Attachments
configure log (configure.log,10.66 KB, text/plain)
2009-08-05 20:38 UTC, shade
Details
Modified patch with kde4 support. (kde4-configure.diff,8.71 KB, text/plain)
2009-08-06 16:49 UTC, Martin Samek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Samek 2009-08-04 17:10:38 UTC
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 QTDIR before running "configure".
make: *** [stamp/build] Error 1                                                                                                            
 *                                                                                                                                         
 * ERROR: app-office/openoffice-3.1.1_beta1 failed.                                                                                        
 * Call stack:                                                                                                                             
 *               ebuild.sh, line   49:  Called src_compile                                                                                 
 *             environment, line 4810:  Called die                                                                                         
 * The specific snippet of code:                                                                                                           
 *       make || die "Build failed"                                                                                                        
 *  The die message:                                                                                                                       
 *   Build 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/app-office/openoffice-3.1.1_beta1/temp/build.log'.                                 
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.1.1_beta1/temp/environment'.                        
 *                                                                                                                                         
!!! When you file a bug report, please include the following information:                                                                  
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/home/marsark/.gentoo/java-config-2/current-user-vm"                                                   
JAVACFLAGS="" COMPILER=""                                                                                                                  
and of course, the output of emerge --info                                                                                                 

>>> Failed to emerge app-office/openoffice-3.1.1_beta1, Log file:

>>>  '/var/tmp/portage/app-office/openoffice-3.1.1_beta1/temp/build.log'

 * Messages for package app-office/openoffice-3.1.1_beta1:

 * 
 *  It is important to note that OpenOffice.org is a very fragile  
 *  build when it comes to CFLAGS.  A number of flags have already 
 *  been filtered out.  If you experience difficulty merging this  
 *  package and use agressive CFLAGS, lower the CFLAGS and try to  
 *  merge again. Also note that building OOo takes a lot of time and 
 *  hardware ressources: 4-6 GB free diskspace and 256 MB RAM are    
 *  the minimum requirements. If you have less, use openoffice-bin   
 *  instead.                                                         
 *                                                                   
 *  Also if you experience a build break, please make sure to retry  
 *  with MAKEOPTS=-j1 before filing a bug.                           
 *                                                                   
 *  You are building with java-support disabled, this results in some 
 *  of the OpenOffice.org functionality being disabled.               
 *  If something you need does not work for you, rebuild with         
 *  java in your USE-flags.                                           
 *
 *  If you want the OpenOffice.org systray quickstarter to work
 *  activate either the 'gtk' or 'gnome' use flags.
 *
 *
 * ERROR: app-office/openoffice-3.1.1_beta1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4810:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build 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/app-office/openoffice-3.1.1_beta1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.1.1_beta1/temp/environment'.


Reproducible: Always

Steps to Reproduce:
1. emerge openoffice 3.1.1_beta1 with -java kde 
2.
3.
Comment 1 James Earl Spahlinger 2009-08-04 23:39:05 UTC
Please paste the output of 'emerge --info' into a bugzilla comment to assist the maintainers in resolving this issue
Comment 2 Martin Samek 2009-08-05 14:38:41 UTC
emerge --info                                                                                   
Portage 2.2_rc36 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)      
=================================================================                                                  
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.1                          
Timestamp of tree: Wed, 05 Aug 2009 13:30:01 +0000                                                                 
distcc 3.1 i686-pc-linux-gnu [disabled]                                                                            
app-shells/bash:     3.2_p39                                                                                       
dev-java/java-config: 2.1.8-r1                                                                                     
dev-lang/python:     2.5.4-r3                                                                                      
dev-util/cmake:      2.6.4                                                                                         
sys-apps/baselayout: 2.0.1                                                                                         
sys-apps/openrc:     0.4.3-r3                                                                                      
sys-apps/sandbox:    2.0                                                                                           
sys-devel/autoconf:  2.13, 2.63-r1                                                                                 
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                                    
sys-devel/binutils:  2.18-r3                                                                                       
sys-devel/gcc-config: 1.4.1                                                                                        
sys-devel/libtool:   2.2.6a                                                                                        
virtual/os-headers:  2.6.27-r2                                                                                     
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ "
LANG="cs_CZ"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j2"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 accessibility acpi alsa bash-completion berkdb branding bzip2 cairo cdr chm cli consolekit cracklib cscope cups dbus dri dts dvd dvdr dvdread exif fam fortran gdbm gif hal iconv ieee1394 isdnlog java java6 jpeg jpeg2k kde live logitech-mouse mmx mmxext mp3 mpeg mudflap ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam parport pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc rtsp samba sdl session slang spell spl sse sse2 ssl startup-notification stream svg sysfs tcpd threads tiff truetype unicode usb vdpau vorbis webkit win32codecs x264 x86 xcb xcomposite xinerama xml xorg xosd xulrunner xv xvid 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 shade 2009-08-05 15:11:42 UTC
I compiled 3.1.1_beta1 on ~amd64 and it works. I compiled it with distcc and didnt had any problem. Office starts and looks nice, it looks nice with that qt4 gui, and with ikons from kde4. There is story that openoffice compiled from source, should have gentoo logo on splash, its true? (never compileed it myslef so asking). Going for more testing of java and other stuff now.
Comment 4 Martin Samek 2009-08-05 20:02:58 UTC
I tried to compile updated ebuild from Portage, but somehow configure script is still unable to see Qt4 libs. I have two boxes and same behavior. Both of them are x86. Qt version is 4.5.1.

Comment 5 Martin Samek 2009-08-05 20:09:58 UTC
It seems that configure script is searching for the libqt-mt.so.
Comment 6 shade 2009-08-05 20:38:56 UTC
Created attachment 200300 [details]
configure log

(In reply to comment #5)
> It seems that configure script is searching for the libqt-mt.so.
> 

From where did you get that info? This file is from qt3. Dunno why but i dont see Ooo 3.1.1_beta1 from portage checking on configure for Qt4.

my flags:

     Installed versions:  3.1.1_beta1(19:37:47 05.08.2009)(bash-completion binfilter cups dbus eds java kde ldap linguas_en linguas_pl nsplugin opengl pam)

Im adding my configure
Comment 7 Martin Samek 2009-08-05 20:53:00 UTC
Sorry, I looked at wrong line in configure script. But It changes nothing. Still It can't find Qt lib.
Comment 8 Martin Samek 2009-08-05 21:05:49 UTC
Here is the tricky part of configure script. There is a wrong path to Qt4 libs on x86 branch. For amd64 it's ok. Given patch is /usr/lib, but there is no file libQtCore.so. It is in /usr/lib/qt4. 

if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
   qt_incdirs="$QTINC $QTDIR /usr/include/qt4 /usr/include $x_includes"
   qt_libdirs="$QTLIB /usr/lib $x_libraries"

   kde_incdirs="/usr/include $x_includes"
   kde_libdirs="/usr/lib $x_libraries"

   if test "$build_cpu" == "x86_64" ; then
      qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
      kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4"
   fi

   qt_test_include="Qt/qobject.h"
   qt_test_library="libQtCore.so"
   kde_test_include="ksharedptr.h"
   kde_test_library="libkdeui.so"

   { $as_echo "$as_me:$LINENO: checking for Qt4 headers" >&5
$as_echo_n "checking for Qt4 headers... " >&6; }
   qt_header_dir="no"
   for inc_dir in $qt_incdirs ; do
      if test -r "$inc_dir/$qt_test_include" ; then
         qt_header_dir="$inc_dir"
         break
      fi
   done

   { $as_echo "$as_me:$LINENO: result: $qt_header_dir" >&5
$as_echo "$qt_header_dir" >&6; }
   if test "x$qt_header_dir" = "xno" ; then
      { { $as_echo "$as_me:$LINENO: error: Qt4 headers not found.  Please specify the root of your Qt4 installation by exporting QTDIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt4 headers not found.  Please specify the root of your Qt4 installation by exporting QTDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
   fi
Comment 9 Martin Samek 2009-08-05 21:14:02 UTC
Yes, confirmed. I did symlinks and now it works.
Comment 10 Martin Samek 2009-08-05 21:29:50 UTC
Compilation failed later with:

par2script -i ../unxlngi6.pro/par,/var/tmp/portage/app-office/openoffice-3.1.1_beta2/work/ooo/build/ooo310-m17/solver/310/unxlngi6.pro/par @@/var/tmp/portage/app-office/openoffice-3.1.1_beta2/temp/mkgY1msf -o ../unxlngi6.pro/bin/osl/sdkoo.ins                                                                                                                                            
Reading par files                                                                                                                                                                              
Collecting items                                                                                                                                                                               
Collecting assigned items                                                                                                                                                                      
Searching for Undefinitions                                                                                                                                                                    
Removing assigned GIDs without definitions                                                                                                                                                     
Adding definitions without assignment to the root                                                                                                                                              
Control of multiple assignments                                                                                                                                                                
Control of definitions with missing assignments                                                                                                                                                
Checking directory definitions ...                                                                                                                                                             
Checking module definitions ...                                                                                                                                                                
Checking module assignments ...                                                                                                                                                                
Checking StarRegistry ...                                                                                                                                                                      
Checking Root Module ... gid_Module_Root_SDK                                                                                                                                                   
Checking Shortcut assignments ...                                                                                                                                                              
Checking missing parents ...                                                                                                                                                                   
Shorten lines at modules                                                                                                                                                                       
Creating setup script                                                                                                                                                                          
Saving script                                                                                                                                                                                  
Module 'scp2' delivered successfully. 84 files copied, 4 files unchanged                                                                                                                       

1 module(s): 
        vcl  
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.1_beta2/work/ooo/build/ooo310-m17/vcl/util

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from vcl"

rmdir /tmp/16677
make: *** [stamp/build] Error 1
 *                             
 * ERROR: app-office/openoffice-3.1.1_beta2 failed.
 * Call stack:                                     
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5338:  Called die        
 * The specific snippet of code:                          
 *       make || die "Build failed"                       
 *  The die message:                                      
 *   Build 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/app-office/openoffice-3.1.1_beta2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.1.1_beta2/temp/environment'.
 *
Comment 11 Martin Samek 2009-08-06 16:49:44 UTC
Created attachment 200403 [details]
Modified patch with kde4 support.
Comment 12 Martin Samek 2009-08-06 16:52:31 UTC
I have modified kde4-configure patch. Now configure is finishing ok at x86. I have added Qt4 path /usr/lib/qt4 to qt_libdirs variable.
Comment 13 Arne Flagge 2009-08-09 10:07:55 UTC
Martin, how do you apply this patch? I added it to the other patches in src_prepare, but the patch fails.
Comment 14 Martin Samek 2009-08-10 08:51:31 UTC
Actually, this patch is taken from dist archive ooo-build-3.1.0.99.2.tar.gz, where is in path patches/dev300/. I have altered line 107, where add new path. Than I repacked archive and regen ebuild manifest. I know, it's ugly, but ebuild maintainer should fix this.

I'll try to provide patch for src_prepare usage.
Comment 15 Ashu Tiwary 2009-09-03 08:11:19 UTC
Issue still exists with non-beta release.
Comment 16 Martin Samek 2009-09-03 10:32:29 UTC
I can confirm still exists in 3.1.1 on x86. Does any body have contact for maintainer? I can't find it. Solution is simple.

Comment 17 Andreas Proschofsky (RETIRED) gentoo-dev 2009-09-03 15:32:08 UTC
Just fixed this in gentoo cvs. Though not sure this will be sufficient for amd64 (cause the qt4-libdir should be different), so leaving open for user feedback.
Comment 18 Martin Samek 2009-09-03 16:37:12 UTC
amd64 configure works fine. Only x86 qt4 libs path was wrong.
Comment 19 Martin Samek 2009-09-03 19:41:01 UTC
Successful on x86 with kde support. So we can close the bug.
Comment 20 Andreas Proschofsky (RETIRED) gentoo-dev 2009-09-03 19:49:00 UTC
Thanks to everyone, especially Martin! Closing
Comment 21 Marcello Magaldi 2009-10-27 15:11:35 UTC
(In reply to comment #20)
> Thanks to everyone, especially Martin! Closing
> 

I still have this problem on x86 with openoffice-3.1.1, I have qt-4.5.2 and kde-4.3.1 installed.
Comment 22 David W Noon 2009-10-27 17:50:25 UTC
(In reply to comment #21)
> I still have this problem on x86 with openoffice-3.1.1, I have qt-4.5.2 and
> kde-4.3.1 installed.

<AOL>Me too!<\AOL>

I tried the build today when emerge sync re-enabled the kde USE flag and the ebuild died saying it was unable to find QTDIR.
Comment 23 Alex Barker 2009-10-27 20:49:20 UTC
(In reply to comment #22)
> (In reply to comment #21)
> > I still have this problem on x86 with openoffice-3.1.1, I have qt-4.5.2 and
> > kde-4.3.1 installed.
> 
> <AOL>Me too!<\AOL>
> 
> I tried the build today when emerge sync re-enabled the kde USE flag and the
> ebuild died saying it was unable to find QTDIR.
> 

I can also confirm, can we reopen this.
Comment 24 Marcello Magaldi 2009-10-28 15:53:05 UTC
This bug is now fixed :
from Changelog :
28 Oct 2009; Andreas Proschofsky <suka@gentoo.org>
  openoffice-3.1.1.ebuild, files/gentoo-3.1.1.diff:
  Bump to ooo-build-3.1.1.4, also re-fix kde4/qt4-support