Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12677 - openoffice-1.0.1-r3 not finding g++ includes
Summary: openoffice-1.0.1-r3 not finding g++ includes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seth Chandler
URL:
Whiteboard:
Keywords:
: 12414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-24 17:35 UTC by Mark Hollomon
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

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


Attachments
patch to solve a java build problem in the unoil subsystem (openoffice-1.0.1-fix-unoil-dependencies.patch,845 bytes, patch)
2003-01-12 19:40 UTC, Mark Hollomon
Details | Diff
openoffice-1.0.1-use-libstdc++-5.0.2.patch (openoffice-1.0.1-use-libstdc++-5.0.2.patch,2.14 KB, patch)
2003-01-14 07:18 UTC, Mark Hollomon
Details | Diff
openoffice-1.0.1-r4.proposed.ebuild (openoffice-1.0.1-r4.ebuild,18.61 KB, text/plain)
2003-01-14 07:24 UTC, Mark Hollomon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hollomon 2002-12-24 17:35:44 UTC
when --update to r3 (for r2) I get the following: 
 
$COMPATH=NO_COMPATH 
$_gcc_include_path=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include 
$_gxx_include_path=NO_GXX_INCLUDE 
$JAVA_HOME=/opt/blackdown-jdk-1.3.1 
$TCSH=/bin 
$PERL=/usr/bin 
$x_libraries=/usr/X11R6/lib 
$x_includes=/usr/X11R6/include 
$_LOCAL_SOLENV=DEFAULT 
$_LOCAL_SOLVER=DEFAULT 
$upd=641 
$CYGWIN=NO_CYGWIN 
$STLPORT4=NO_STLPORT4 
$enable_xprint=TRUE 
$with_lang=,ENUS, 
$with_asm_home=NO_ASM_HOME 
$with_unzip_home=NO_UNZIP_HOME 
$MINGWIN32=0 
$with_use_shell=tcsh 
$USE_GCC3=TRUE 
$CC=gcc 
$CXX=g++ 
 
Setting up the environment for building OpenOffice.  
Setting platform independent values... done 
Setting Linux Intel specific values... done 
NO_GXX_INCLUDE = no_gxx_include, NO_GXX_INCLUDE = argv(2) 
Please enter the g++ include path (e.g. /usr/include/g++-3):  
 
 
The correct answer would be: 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3 
 
But the build really should be able to deduce this itself, I would think.
Comment 1 Seth Chandler 2002-12-26 11:10:23 UTC
alright i'm checking this out...

what version of gcc config were you using?

--seth
Comment 2 Mark Hollomon 2002-12-26 19:12:08 UTC
*  sys-devel/gcc 
      Latest version available: 3.2.1-r6 
      Latest version installed: 3.2.1-r6 
      Size of downloaded files: 21,271 kB 
      Homepage:    http://www.gnu.org/software/gcc/gcc.html 
      Description: Modern C/C++ compiler written by the GNU people 
*  sys-devel/gcc-config 
      Latest version available: 1.2.6 
      Latest version installed: 1.2.4 
      Size of downloaded files: 0 kB 
      Homepage:    http://www.gentoo.org/ 
      Description: Utility to change the gcc compiler being used. 
 
root # gcc-config --get-current-profile 
i686-pc-linux-gnu-3.2.1 
 
 
Comment 3 Alec Berryman 2002-12-27 05:40:57 UTC
My compile of openoffice-1.0.1-r3 (not upgrade) with gcc-3.2.1-r6 and
gcc-config-1.2.6 also failed to find g++ includes.
Comment 4 Seth Chandler 2002-12-30 12:16:39 UTC
*** Bug 12414 has been marked as a duplicate of this bug. ***
Comment 5 Mark Hollomon 2003-01-06 20:20:33 UTC
This may need to be a separate bug: 
 
after supplying /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3 to the prompt 
the compile fails with errors: 
 
../../../../unxlngi4.pro/misc/java/com/sun/star/document/XInteractionFilterSelect.java:3: 
package com.sun.star.task does not exist 
public interface XInteractionFilterSelect extends 
com.sun.star.task.XInteractionContinuation 
                                                                   ^ 
1 error 
dmake:  Error code 1, while making 
'../../../../unxlngi4.pro/misc/unoil_document_dummy.java' 
---* TG_SLO.MK *--- 
 
ERROR: Error 65280 occurred while making 
/var/tmp/portage/openoffice-1.0.1-r3/work/oo_1.0.1_src/unoil/com/sun/star/document 
 
 
I am using blackdown-jdk-1.4.1_beta. 
Comment 6 Mark Hollomon 2003-01-09 10:24:53 UTC
This patch to config_office/configure seems to fix the problem. I have know idea 
what it breaks. 
 
If -with-gcc-home isn't given, it assumes the g++ includes are in /usr/include 
 
--- configure.old       2003-01-09 11:15:49.000000000 -0500 
+++ configure   2003-01-09 11:17:24.000000000 -0500 
@@ -1366,7 +1366,7 @@ 
  
       COMPATH=`echo $CC | $SED -n "s,/^/\+$,,p"` 
       _gcc_include_start=/usr/lib/gcc-lib 
-      _gxx_include_start=/usr/include 
+      _gxx_include_start=/usr/lib/gcc-lib 
    else 
             _gcc_path="$with_gcc_home/bin/gcc" 
       if test -x $_gcc_path; then 
 
In the spirit of some of the other stuff in the ebuild you could add the following to 
src-upack (around line 269): 
 
perl -pi -e 's|_gxx_include_start=/usr/include|_gxx_include_start=/usr/lib/gcc-lib|g' \ 
	${S}/config_office/configure 
Comment 7 Seth Chandler 2003-01-10 14:50:15 UTC
Thanks for the fix, i'll be committing this and a couple java fixes to portage 
when i'm done with class =)
Comment 8 Mark Hollomon 2003-01-12 19:40:33 UTC
Created attachment 7239 [details, diff]
patch to solve a java build problem in the unoil subsystem
Comment 9 Seth Chandler 2003-01-14 05:44:43 UTC
Mark, What exactly does that patch fix...like...is it the sun.com.interface. blah blha blah 
bug? or what? 
Comment 10 Mark Hollomon 2003-01-14 07:11:07 UTC
It fixes the build problem I reported in comment #5. basically com.sun.star.document 
depends on com.sun.star.task but does not declare that dependency in the build list. 
So the build engine is free to build document first, which fails. The patch declares 
the dependency to make sure that task gets built first. 
Comment 11 Mark Hollomon 2003-01-14 07:15:41 UTC
hokey dokey. Next problem found: 
 
dmake:  Error -- 
`/var/tmp/portage/openoffice-1.0.1-r4/work/oo_1.0.1_src/solver/641/unxlngi4.pro/lib/libstdc++.so.5.0.1' 
not found, and can't be made 
---* RULES.MK *--- 
 
ERROR: Error 65280 occurred while making 
/var/tmp/portage/openoffice-1.0.1-r4/work/oo_1.0.1_src/product/util 
 
 
I fixed this by copying openoffice-1.0.1-use-libstdc++-5.0.1.patch to 
openoffice-1.0.1-use-libstdc++-5.0.2.patch 
and making the necessary changes to the ebuild and to the patch itself. 
 
I don't know if there is some condition that needs to be checked to decide between 
5.0.1 and 5.0.2. 
 
With this change, I get a clean compile that installs and actually runs correctly. Or 
at least as correct as r2 did. 
 
Comment 12 Mark Hollomon 2003-01-14 07:18:48 UTC
Created attachment 7291 [details, diff]
openoffice-1.0.1-use-libstdc++-5.0.2.patch

This belongs in the files/1.0.1 subdir. The proposed r4 ebuild relies on it.
Comment 13 Mark Hollomon 2003-01-14 07:24:47 UTC
Created attachment 7292 [details]
openoffice-1.0.1-r4.proposed.ebuild

A proposed r4 ebuild. It depends on the previous two patches being in the
files/1.0.1 subdir as
openoffice-1.0.1-fix-unoil-dependencies.patch
openoffice-1.0.1-use-libstdc++-5.0.2.patch

respectively.

This ebuild solves all the problems I've reported in this bug.

Hope this helps.
Comment 14 Peter Ruskin 2003-01-17 06:16:49 UTC
The 1.0.1-r4 ebuild and patches worked fine for me.
$ sudo emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2,2.3.1-r3)
=================================================================
System uname: 2.4.20-win4lin-r1-pnr i686 AMD Athlon(tm) XP 1900+
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage/"
USE="x86 oss 3dnow apm avi cups encode gif jpeg libg++ mikmod mmx mpeg ncurses
nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm
berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java guile mysql
postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk
qt kde opengl mozilla snmp cdr scanner doc dvd fbcon innodb maildir mbox
nocardbus odbc samba slp sse tiff wmf -crypt -motif"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe -mmmx -msse -m3dnow "
CXXFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe -mmmx -msse -m3dnow "
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="-sandbox ccache"

One thing: after successful emerge I unmerged openoffice-bin, which took
openoffice with it.  So that's two successful emerges ;-\
Comment 15 Seth Chandler 2003-01-17 18:00:44 UTC
do you mean 1.0.1-r3?  i don't see a -r4 in portage =) 
Comment 16 Peter Ruskin 2003-01-17 18:06:35 UTC
No, I mean the proposed -r4 ebuild and patches.  See Comment #13.
Comment 17 Seth Chandler 2003-01-18 00:40:55 UTC
why don't you try the -r3 ebuild thats in portage now....it has a better
solution to making 50,000 patches for libstdc++ every time they bump it


also, you're all using gcc-config if you've got libstdc++-5.0.2


the unoil patch is already in portage....called xinteraction fix

i'm closing this out becuase it is resolved...try 1.0.1-r3 for me, and we may
get the damned thing bumped to stable yet =)


seth
Comment 18 Mark Hollomon 2003-01-18 19:47:06 UTC
Sorry. It is not resolved. - or if you wish - new error. I think, in the future it would be 
better to change the name of the ebuild when you modify it, if it already in portage. 
It makes it kind of tough to see when the update is really available without 
inspecting timestamps. 
 
============= 
Building project stlport 
============= 
/var/tmp/portage/openoffice-1.0.1-r3/work/oo_1.0.1_src/stlport 
------------- 
cd ./unxlngi4.pro/misc/build && cat ../../../STLport-4.5.3.patch | patch -b -p2 && 
touch so_patched 
patching file STLport-4.5.3/src/fstream.cpp 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
1 out of 1 hunk ignored -- saving rejects to file STLport-4.5.3/src/fstream.cpp.rej 
patching file STLport-4.5.3/src/gcc-3.0.mak 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
1 out of 1 hunk ignored -- saving rejects to file STLport-4.5.3/src/gcc-3.0.mak.rej 
patching file STLport-4.5.3/src/vc6.mak 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
1 out of 1 hunk ignored -- saving rejects to file STLport-4.5.3/src/vc6.mak.rej 
patching file STLport-4.5.3/src/vc_common.mak 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
3 out of 3 hunks ignored -- saving rejects to file 
STLport-4.5.3/src/vc_common.mak.rej 
patching file STLport-4.5.3/stlport/stdexcept 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
1 out of 1 hunk ignored -- saving rejects to file STLport-4.5.3/stlport/stdexcept.rej 
patching file STLport-4.5.3/stlport/config/stl_gcc.h 
Hunk #1 succeeded at 250 (offset 24 lines). 
Hunk #2 FAILED at 309. 
1 out of 2 hunks FAILED -- saving rejects to file 
STLport-4.5.3/stlport/config/stl_gcc.h.rej 
patching file STLport-4.5.3/src/common_rules.mak 
Reversed (or previously applied) patch detected!  Assume -R? [n]  
Apply anyway? [n]  
Skipping patch. 
1 out of 1 hunk ignored -- saving rejects to file 
STLport-4.5.3/src/common_rules.mak.rej 
dmake:  Error code 1, while making './unxlngi4.pro/misc/build/so_patched' 
---* TG_SLO.MK *--- 
 
ERROR: Error 65280 occurred while making 
/var/tmp/portage/openoffice-1.0.1-r3/work/oo_1.0.1_src/stlport 
 
!!! ERROR: app-office/openoffice-1.0.1-r3 failed. 
!!! Function src_compile, Line 442, Exitcode 1 
!!! Build failed! 
 
Comment 19 Seth Chandler 2003-01-18 20:03:46 UTC
if its a new issue then submit it as a new bug, and we don't bump -r number every time 
we touch an ebuild, browse through the cvs tree on the web and that is pretty evident. 
 
as far as your bug, its not an openoffice bug 
 
rm -rf /var/tmp/portage/openoffice-1.0.1-r3/ 
 
that should fix it 
Comment 20 SpanKY gentoo-dev 2003-01-18 20:11:57 UTC
also, bumping the rev value on an ebuild when the changes only affect the compilation process 
will cause users who already had the package installed to needlessly recompile 
 
that is *really* bad when dealing with OOo