Subject: pkg/34617: OpenOffice fails to build on NetBSD-4.0_BETA/i386
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <oster@cs.usask.ca>
List: pkgsrc-bugs
Date: 09/25/2006 21:35:01
>Number:         34617
>Category:       pkg
>Synopsis:       OpenOffice fails to build on NetBSD-4.0_BETA/i386
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 25 21:35:00 +0000 2006
>Originator:     oster@cs.usask.ca
>Release:        NetBSD 4.0_BETA
>Organization:
Rarely
>Environment:
System: NetBSD gonzo 4.0_BETA NetBSD 4.0_BETA (GONZO) #0: Sat Aug 19 14:54:39 CST 2006  oster@gonzo:/u1/builds/build114/src/sys/arch/i386/compile/GONZO i386

Architecture: i386
Machine: i386
>Description:
OpenOffice fails to build on NetBSD-4.0_BETA/i386:

gonzo> make package clean
=> Required installed package digest>=20010302: digest-20060826 found
=> Checksum SHA1 OK for openoffice-1.1.5/OOo_1.1.5_src.tar.gz
=> Checksum SHA1 OK for openoffice-1.1.5/gpc231.tar.Z
=> Checksum SHA1 OK for openoffice-1.1.5/ooo_addons_115.tar.bz2
=> Checksum RMD160 OK for openoffice-1.1.5/OOo_1.1.5_src.tar.gz
=> Checksum RMD160 OK for openoffice-1.1.5/gpc231.tar.Z
=> Checksum RMD160 OK for openoffice-1.1.5/ooo_addons_115.tar.bz2
===> Installing dependencies for openoffice-1.1.5nb1
=> Required installed package bison-[0-9]*: bison-2.3 found
=> Required installed package bison-[0-9]*: bison-2.3 found
=> Required installed package {standalone-tcsh,tcsh}-[0-9]*: tcsh-6.14.00nb1 found
=> Required installed package {standalone-tcsh,tcsh}-[0-9]*: tcsh-6.14.00nb1 found
=> Required installed package zip-[0-9]*: zip-2.32 found
=> Required installed package zip-[0-9]*: zip-2.32 found
=> Required installed package unzip-[0-9]*: unzip-5.52nb3 found
=> Required installed package unzip-[0-9]*: unzip-5.52nb3 found
=> Required installed package xpkgwedge>=1.15: xpkgwedge-1.16 found
=> Required installed package gmake>=3.78: gmake-3.81 found
=> Required installed package xorg-imake>=6.8: xorg-imake-6.9.0nb5 found
=> Required installed package perl>=5.0: perl-5.8.8nb3 found
=> Required installed package xorg-libs>=6.9.0nb2: xorg-libs-6.9.0nb10 found
=> Required installed package libxslt>=1.1.15nb1: libxslt-1.1.17 found
===> Overriding tools for openoffice-1.1.5nb1
===> Extracting for openoffice-1.1.5nb1
/bin/cp /usr/pkgsrc/misc/openoffice/work.gonzo/gpc231/gpc.c /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../external/gpc/
/bin/cp /usr/pkgsrc/misc/openoffice/work.gonzo/gpc231/gpc.h /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../external/gpc/
/bin/cp /usr/pkgsrc/misc/openoffice/work.gonzo/moz/*.zip /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../moz/zipped/
/bin/cp /usr/pkgsrc/misc/openoffice/work.gonzo/openintro_pkgsrc.bmp                              /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../offmgr/res/openintro.bmp
/bin/mkdir -p /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../helpcontent/unxbsdi2.pro/bin
/bin/cp /usr/pkgsrc/misc/openoffice/work.gonzo/*.zip /usr/pkgsrc/misc/openoffice/work.gonzo/OOo_1.1.5/config_office/../helpcontent/unxbsdi2.pro/bin/
cp: /usr/pkgsrc/misc/openoffice/work.gonzo/*.zip: No such file or directory
*** Error code 1 (ignored)
===> Patching for openoffice-1.1.5nb1
=> Applying pkgsrc patches for openoffice-1.1.5nb1
===> Creating toolchain wrappers for openoffice-1.1.5nb1
===> Configuring for openoffice-1.1.5nb1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
********************************************************************
*                                                                  *
*   OpenOffice.org build configuration.                            *
*                                                                  *
*   The configure proces checks your platform to see whether       *
*   you can build OpenOffice.org on it.                            *
*   This proces checks all pre-requisites and generates a file     *
*   containing the necessary environment variables.                *
*   Source this file after configure has ended successfully.       *
*                                                                  *
*   Any warning that is generated during the configure process     *
*   must be taken into account, since it can be a reason for       *
*   an unsuccessfull build of OpenOffice.org                       *
*                                                                  *
********************************************************************
********************************************************************
*                                                                  *
*   Checking the platform pre-requisites.                          *
*                                                                  *
********************************************************************
checking for gawk... /usr/bin/awk
checking for /usr/bin/awk... /usr/bin/awk
checking for sed... /usr/bin/sed
checking the operating system... checked (NetBSD)
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for cc... /usr/pkgsrc/misc/openoffice/work.gonzo/.wrapper/bin/cc
checking the GNU gcc compiler version... configure: error: found version "4.1.2", use version 3+ of the gcc compiler
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/openoffice
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/openoffice
gonzo> gcc -v
Using built-in specs.
Target: i386--netbsdelf
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf3.99.17 --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 4.1.2 20060628 prerelease (NetBSD nb2 20060711)
gonzo>


>How-To-Repeat:
	cd /usr/pkgsrc/misc/openoffice
	make package
        Wonder why gcc 4.1.2 isn't good enough to satisfy the gcc 3+ requirement.
>Fix:
	Dunno.  Please.  Thanks.

>Unformatted:
 NetBSD gonzo 4.0_BETA NetBSD 4.0_BETA (GONZO) #0: Sat Aug 19 14:54:39 CST 2006  oster@gonzo:/u1/builds/build114/src/sys/arch/i386/compile/GONZO i386