Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2004 00:44:15 +0200
From:      Christian Hiris <4711@chello.at>
To:        freebsd-openoffice@freebsd.org
Cc:        David Schultz <das@FreeBSD.org>
Subject:   openoffice-1.1 make target fails on CURRENT
Message-ID:  <200407160044.26629.4711@chello.at>

next in thread | raw e-mail | index | archive | help

--Boundary-02=_Kjw9AIx2M/2wiCJ
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,=20

It looks like Davids commit on gcc builtins,  =20
http://lists.freebsd.org/pipermail/cvs-all/2004-July/072713.html ,
breaks the build of the openoffice-1.1 port on CURRENT.=20

gmake[4]: Entering directory=20
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpc=
om/tools/registry'
regExport.cpp
g++32 -o regExport.o -c -DOSTYPE=3D\"FreeBSD5\" -DOSARCH=3D\"FreeBSD\" -DOJ=
I=20
=2DDUSE_NSREG  -I../../../dist/include/string -I../../../dist/include/xpcom=
=20
=2DI../../../dist/include=20
=2DI/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/=
dist/include/nspr =20
=2DI/usr/local/include -I/usr/local/include -I/usr/local/include =20
=2DI/usr/X11R6/include   -fPIC  -I/usr/X11R6/include  -I/usr/X11R6/include=
=20
=2Dfno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith=20
=2DWbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth=20
=2DWno-ctor-dtor-privacy -Wno-long-long -O -pipe -fshort-wchar -pipe  -DNDE=
BUG=20
=2DDTRIMMED -ffunction-sections  -I/usr/X11R6/include  -I/usr/X11R6/include=
=20
=2DDMOZILLA_CLIENT -include ../../../config-defs.h regExport.cpp
regExport.cpp: In function `int main(int, char**)':
regExport.cpp:109: warning: too few arguments for format
g++32  -I/usr/X11R6/include  -I/usr/X11R6/include -fno-rtti -fno-exceptions=
=20
=2DWall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align=20
=2DWoverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O -pi=
pe=20
=2Dfshort-wchar -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -o regExport=
=20
regExport.o   -L../../../dist/bin -L../../../dist/lib -L../../../dist/bin=20
=2Dlxpcom  -liconv=20
=2DL/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/=
dist/lib=20
=2Dlplds4 -lplc4 -lnspr4 -pthread   -lm
=2E./../../dist/bin/libnspr4.so: undefined reference to `__builtin_huge_val'
collect2: ld returned 1 exit status
gmake[4]: *** [regExport] Error 1
gmake[4]: Leaving directory=20
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpc=
om/tools/registry'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory=20
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpc=
om/tools'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory=20
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpc=
om'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory=20
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2

Stop in /usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla.
*** Error code 1

Stop in /usr/ports/editors/openoffice-1.1.
*** Error code 1

Stop in /usr/ports/editors/openoffice-1.1.
*** Error code 1

Stop in /usr/ports/editors/openoffice-1.1.
jail003#


The "bad" source file seems to be
/work/mozilla/work/mozilla/nsprpub/pr/src/misc/prdtoa.c which tries to invo=
ke=20
the new builtin HUGE_VAL at line 1397:  =20
=20
#ifdef __STDC__
                                rv =3D HUGE_VAL;
#else
                                /* Can't trust HUGE_VAL */
#ifdef IEEE_Arith
                                word0(rv) =3D Exp_mask;
                                word1(rv) =3D 0;
#else
                                word0(rv) =3D Big0;
                                word1(rv) =3D Big1;
#endif
#endif

Is it save to comment out the the STDC define and use the IEEE_Arith define=
=20
instead? Or, David, is there anything you want to change on the compilers=20
definitions?


Some more infos:

jail003# uname -a
=46reeBSD jail003.matrix.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 15=
=20
15:03:25 CEST 2004    =20
admin@matrix010.matrix.net:/usr/obj/usr/src/sys/MATRIX010  i386

gcc32 from the ports:
jail003# /usr/local/bin/gcc32 -v
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/spe=
cs
Configured with: ./..//gcc-3.2.3/configure --disable-nls=20
=2D-with-gxx-include-dir=3D/usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3=
=2E2.3/include/g++-v3=20
=2D-with-system-zlib=20
=2D-includedir=3D/usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/inclu=
de/Java=20
=2D-disable-shared --prefix=3D/usr/local i386-portbld-freebsd5.2
Thread model: posix
gcc version 3.2.3

jail003#=20
cat /usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/include/math.h |=20
grep Exp
 * $FreeBSD: src/lib/msun/src/math.h,v 1.40 2004/07/09 03:32:39 das Exp $


jail003# objdump --syms prdtoa.o
[...]
00000000         *UND*  00000000 _GLOBAL_OFFSET_TABLE_
00000000         *UND*  00000000 PR_Lock
00000000         *UND*  00000000 PR_Unlock
00000000         *UND*  00000000 PR_Malloc
00000bef g     F .text  0000002e _PR_InitDtoa
00000000         *UND*  00000000 PR_NewLock
00000c1d g     F .text  00000045 _PR_CleanupDtoa
00000000         *UND*  00000000 PR_DestroyLock
00000c62 g     F .text  00000b9d PR_strtod
00000000         *UND*  00000000 _pr_initialized
00000000         *UND*  00000000 _PR_ImplicitInitialization
00000000         *UND*  00000000 PR_SetError
00000000         *UND*  00000000 __builtin_huge_val	<=3D=3D=3D=3D
00001a3a g     F .text  00000f70 PR_dtoa
00000000         *UND*  00000000 strcpy
00000000         *UND*  00000000 memcpy
000029aa g     F .text  000001c7 PR_cnvtf
00000000         *UND*  00000000 PR_snprintf
00000000         *UND*  00000000 PR_Free

the old (working) object shows:
jail003# objdump --syms prdtoa.o
00000000         *UND*  00000000 _GLOBAL_OFFSET_TABLE_
00000000         *UND*  00000000 PR_Lock
00000000         *UND*  00000000 PR_Unlock
00000000         *UND*  00000000 PR_Malloc
00000bef g     F .text  0000002e _PR_InitDtoa
00000000         *UND*  00000000 PR_NewLock
00000c1d g     F .text  00000045 _PR_CleanupDtoa
00000000         *UND*  00000000 PR_DestroyLock
00000c62 g     F .text  00000b9e PR_strtod
00000000         *UND*  00000000 _pr_initialized
00000000         *UND*  00000000 _PR_ImplicitInitialization
00000000         *UND*  00000000 PR_SetError
00000000         *UND*  00000000 __infinity	<=3D=3D=3D=3D  =20
00001a3b g     F .text  00000f70 PR_dtoa
00000000         *UND*  00000000 strcpy
00000000         *UND*  00000000 memcpy
000029ab g     F .text  000001c7 PR_cnvtf
00000000         *UND*  00000000 PR_snprintf
00000000         *UND*  00000000 PR_Free

Many Thanks,=20
ch=20

=2D-=20
Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x941B6B0B=20
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu

--Boundary-02=_Kjw9AIx2M/2wiCJ
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBA9wjKcyi/EZQbawsRArtgAJ0UxT19hEun2TK3eVJHJrd6yDQcuQCdHZFG
CBJTLdQaJKMqEZ+gWtx2/V8=
=sU3a
-----END PGP SIGNATURE-----

--Boundary-02=_Kjw9AIx2M/2wiCJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407160044.26629.4711>