openoffice-1.1 make target fails on CURRENT
Christian Hiris
4711 at chello.at
Thu Jul 15 15:44:29 PDT 2004
Hi,
It looks like Davids commit on gcc builtins,
http://lists.freebsd.org/pipermail/cvs-all/2004-July/072713.html ,
breaks the build of the openoffice-1.1 port on CURRENT.
gmake[4]: Entering directory
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpcom/tools/registry'
regExport.cpp
g++32 -o regExport.o -c -DOSTYPE=\"FreeBSD5\" -DOSARCH=\"FreeBSD\" -DOJI
-DUSE_NSREG -I../../../dist/include/string -I../../../dist/include/xpcom
-I../../../dist/include
-I/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/dist/include/nspr
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/X11R6/include -fPIC -I/usr/X11R6/include -I/usr/X11R6/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-long-long -O -pipe -fshort-wchar -pipe -DNDEBUG
-DTRIMMED -ffunction-sections -I/usr/X11R6/include -I/usr/X11R6/include
-DMOZILLA_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
-Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O -pipe
-fshort-wchar -pipe -DNDEBUG -DTRIMMED -ffunction-sections -o regExport
regExport.o -L../../../dist/bin -L../../../dist/lib -L../../../dist/bin
-lxpcom -liconv
-L/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/dist/lib
-lplds4 -lplc4 -lnspr4 -pthread -lm
../../../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
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpcom/tools/registry'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpcom/tools'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory
`/usr/wrkdir/usr/ports/editors/openoffice-1.1/work/mozilla/work/mozilla/xpcom'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory
`/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 invoke
the new builtin HUGE_VAL at line 1397:
#ifdef __STDC__
rv = HUGE_VAL;
#else
/* Can't trust HUGE_VAL */
#ifdef IEEE_Arith
word0(rv) = Exp_mask;
word1(rv) = 0;
#else
word0(rv) = Big0;
word1(rv) = Big1;
#endif
#endif
Is it save to comment out the the STDC define and use the IEEE_Arith define
instead? Or, David, is there anything you want to change on the compilers
definitions?
Some more infos:
jail003# uname -a
FreeBSD jail003.matrix.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 15
15:03:25 CEST 2004
admin at 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/specs
Configured with: ./..//gcc-3.2.3/configure --disable-nls
--with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/include/g++-v3
--with-system-zlib
--includedir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/include/Java
--disable-shared --prefix=/usr/local i386-portbld-freebsd5.2
Thread model: posix
gcc version 3.2.3
jail003#
cat /usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.2.3/include/math.h |
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 <====
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 <====
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,
ch
--
Christian Hiris <4711 at chello.at> | OpenPGP KeyID 0x941B6B0B
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-openoffice/attachments/20040716/c8dda4b6/attachment.bin
More information about the freebsd-openoffice
mailing list