Bug 42331

Summary: openoffice 1.0.1_3 fails to build for FreeBSD 4.6R
Product: Ports & Packages Reporter: stevedav <stevedav>
Component: Individual Port(s)Assignee: freebsd-openoffice (Nobody) <openoffice>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description stevedav 2002-09-02 19:10:02 UTC
cd /usr/ports/editors/openoffice
make
[...]
=============
Building project freetype
=============
/usr/ports/editors/openoffice/work/oo_1.0.1_src/freetype
-------------
deliver -- version: 1.17.4.1
Statistics:
Files copied: 0
Files unchanged/not matching: 54

=============
Building project stlport
=============
/usr/ports/editors/openoffice/work/oo_1.0.1_src/stlport
-------------
mkdir ./unxfbsd.pro/misc/build/STLport-4.5/src
mkdir: ./unxfbsd.pro/misc/build/STLport-4.5/src: File exists
cd ./unxfbsd.pro/misc/build/STLport-4.5/src && gmake -f gcc-3.0-freebsd.mak && touch so_built
g++31 -D_THREAD_SAFE -D_REENTRANT -fexceptions -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32  -fPIC dll_main.cpp -c -o ../lib/obj/GCC-FREEBSD/ReleaseD/dll_main.o
In file included from stlport_prefix.h:28,
                 from dll_main.cpp:34:
./stlport/ctime:25:44: ../g++-v3/ctime: No such file or directory
In file included from stlport_prefix.h:28,
                 from dll_main.cpp:34:
./stlport/ctime:32: `size_t' not declared
./stlport/ctime:33: `clock_t' not declared
./stlport/ctime:34: `time_t' not declared
./stlport/ctime:35: `tm' not declared
./stlport/ctime:37: `clock' not declared
./stlport/ctime:38: `asctime' not declared
./stlport/ctime:39: `ctime' not declared
./stlport/ctime:40: `gmtime' not declared
./stlport/ctime:41: `difftime' not declared
./stlport/ctime:42: `mktime' not declared
./stlport/ctime:43: `localtime' not declared
./stlport/ctime:44: `strftime' not declared
./stlport/ctime:45: `time' not declared
In file included from dll_main.cpp:34:
stlport_prefix.h:30: `time_t' not declared
In file included from ../stlport/stl/debug/_debug.c:160,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdlib:25:46: ../g++-v3/cstdlib: No such file or directory
In file included from ../stlport/stl/debug/_debug.c:160,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdlib:42: `div_t' not declared
./stlport/cstdlib:43: `ldiv_t' not declared
./stlport/cstdlib:44: `size_t' not declared
./stlport/cstdlib:47: `abort' not declared
./stlport/cstdlib:48: `atexit' not declared
./stlport/cstdlib:49: `exit' not declared
./stlport/cstdlib:50: `getenv' not declared
./stlport/cstdlib:51: `calloc' not declared
./stlport/cstdlib:52: `free' not declared
./stlport/cstdlib:53: `malloc' not declared
./stlport/cstdlib:54: `realloc' not declared
./stlport/cstdlib:55: `atof' not declared
./stlport/cstdlib:56: `atoi' not declared
./stlport/cstdlib:57: `atol' not declared
./stlport/cstdlib:58: `mblen' not declared
./stlport/cstdlib:59: `mbstowcs' not declared
./stlport/cstdlib:60: `mbtowc' not declared
./stlport/cstdlib:61: `strtod' not declared
./stlport/cstdlib:62: `strtol' not declared
./stlport/cstdlib:63: `strtoul' not declared
./stlport/cstdlib:64: `system' not declared
./stlport/cstdlib:70: `bsearch' not declared
./stlport/cstdlib:71: `qsort' not declared
./stlport/cstdlib:74: `abs' not declared
./stlport/cstdlib:76: `div' not declared
./stlport/cstdlib:77: `labs' not declared
./stlport/cstdlib:78: `ldiv' not declared
./stlport/cstdlib:79: `rand' not declared
./stlport/cstdlib:80: `srand' not declared
In file included from ../stlport/stl/debug/_debug.c:236,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdarg:25:46: ../g++-v3/cstdarg: No such file or directory
In file included from ../stlport/stl/debug/_debug.c:236,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdarg:32: `va_list' not declared
In file included from ../stlport/stl/debug/_debug.c:237,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdio:27:45: ../g++-v3/cstdio: No such file or directory
In file included from ../stlport/stl/debug/_debug.c:237,
                 from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/cstdio:51: `FILE' not declared
./stlport/cstdio:52: `fpos_t' not declared
./stlport/cstdio:53: `size_t' not declared
./stlport/cstdio:64: `clearerr' not declared
./stlport/cstdio:65: `fclose' not declared
./stlport/cstdio:66: `feof' not declared
./stlport/cstdio:67: `ferror' not declared
./stlport/cstdio:68: `fflush' not declared
./stlport/cstdio:69: `fgetc' not declared
./stlport/cstdio:70: `fgetpos' not declared
./stlport/cstdio:71: `fgets' not declared
./stlport/cstdio:72: `fopen' not declared
./stlport/cstdio:73: `fprintf' not declared
./stlport/cstdio:74: `fputc' not declared
./stlport/cstdio:75: `fputs' not declared
./stlport/cstdio:76: `fread' not declared
./stlport/cstdio:77: `freopen' not declared
./stlport/cstdio:78: `fscanf' not declared
./stlport/cstdio:79: `fseek' not declared
./stlport/cstdio:80: `fsetpos' not declared
./stlport/cstdio:81: `ftell' not declared
./stlport/cstdio:82: `fwrite' not declared
./stlport/cstdio:85: `getc' not declared
./stlport/cstdio:86: `getchar' not declared
./stlport/cstdio:87: `putc' not declared
./stlport/cstdio:88: `putchar' not declared
./stlport/cstdio:91: `gets' not declared
./stlport/cstdio:92: `perror' not declared
./stlport/cstdio:93: `printf' not declared
./stlport/cstdio:94: `puts' not declared
./stlport/cstdio:95: `remove' not declared
./stlport/cstdio:96: `rename' not declared
./stlport/cstdio:97: `rewind' not declared
./stlport/cstdio:98: `scanf' not declared
./stlport/cstdio:99: `setbuf' not declared
./stlport/cstdio:100: `setvbuf' not declared
./stlport/cstdio:101: `sprintf' not declared
./stlport/cstdio:102: `sscanf' not declared
./stlport/cstdio:103: `tmpfile' not declared
./stlport/cstdio:104: `tmpnam' not declared
./stlport/cstdio:105: `ungetc' not declared
./stlport/cstdio:106: `vfprintf' not declared
./stlport/cstdio:107: `vprintf' not declared
./stlport/cstdio:108: `vsprintf' not declared
In file included from ../stlport/stl/debug/_debug.h:418,
                 from ../stlport/utility:36,
                 from dll_main.cpp:36:
./stlport/stl/debug/_debug.c: In static member function `static void
   _STL::__stl_debug_engine<_Dummy>::_Message(const char*, ...)':
./stlport/stl/debug/_debug.c:245: parse error before `;' token
In file included from ../stlport/stl/_alloc.h:31,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/cstddef:35:46: ../g++-v3/cstddef: No such file or directory
In file included from ../stlport/stl/_alloc.h:31,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/cstddef: At global scope:
./stlport/cstddef:42: `ptrdiff_t' not declared
./stlport/cstddef:43: `size_t' not declared
In file included from ../stlport/stl/_alloc.h:42,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/cstring:25:46: ../g++-v3/cstring: No such file or directory
In file included from ../stlport/cstring:32,
                 from ../stlport/stl/_alloc.h:42,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/using/cstring:1: `size_t' not declared
./stlport/using/cstring:17: `memmove' not declared
./stlport/using/cstring:18: `memcpy' not declared
./stlport/using/cstring:23: `memchr' not declared
./stlport/using/cstring:24: `strchr' not declared
./stlport/using/cstring:25: `strpbrk' not declared
./stlport/using/cstring:26: `strrchr' not declared
./stlport/using/cstring:27: `strstr' not declared
./stlport/using/cstring:30: `memcmp' not declared
./stlport/using/cstring:31: `memset' not declared
./stlport/using/cstring:33: `strcat' not declared
./stlport/using/cstring:36: `strcmp' not declared
./stlport/using/cstring:39: `strcoll' not declared
./stlport/using/cstring:41: `strcpy' not declared
./stlport/using/cstring:43: `strcspn' not declared
./stlport/using/cstring:44: `strerror' not declared
./stlport/using/cstring:45: `strlen' not declared
./stlport/using/cstring:46: `strncat' not declared
./stlport/using/cstring:47: `strncmp' not declared
./stlport/using/cstring:49: `strncpy' not declared
./stlport/using/cstring:50: `strspn' not declared
./stlport/using/cstring:52: `strtok' not declared
./stlport/using/cstring:53: `strxfrm' not declared
In file included from ../stlport/stl/_alloc.h:60,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/new:50:49: ../g++-v3/new: No such file or directory
In file included from ../stlport/stl/_alloc.h:60,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/new:59: `nothrow_t' not declared
./stlport/new:60: `nothrow' not declared
./stlport/new:66: `new_handler' not declared
./stlport/new:67: `set_new_handler' not declared
./stlport/new:112: `size_t' was not declared in this scope
./stlport/new:112: parse error before `)' token
./stlport/new: In function `void* _STL::__stl_new(...)':
./stlport/new:112: `__n' undeclared (first use this function)
./stlport/new:112: (Each undeclared identifier is reported only once for each
   function it appears in.)
In file included from ../stlport/stl/_alloc.h:64,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/stl/_threads.h: At global scope:
./stlport/stl/_threads.h:53: syntax error before `;' token
In file included from ../stlport/stl/_alloc.h:64,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/stl/_threads.h:207: parse error before `*' token
./stlport/stl/_threads.h: In member function `void
   _STL::_STLP_mutex_indirect::_M_initialize()':
./stlport/stl/_threads.h:340: `calloc' undeclared in namespace `std'
./stlport/stl/_threads.h: In member function `void
   _STL::_STLP_mutex_indirect::_M_destroy()':
./stlport/stl/_threads.h:345: `free' undeclared (first use this function)
./stlport/stl/_threads.h: At global scope:
./stlport/stl/_threads.h:409: ISO C++ forbids declaration of `__stl_atomic_t'
   with no type
./stlport/stl/_threads.h:409: parse error before `;' token
./stlport/stl/_threads.h:416: parse error before `__n'
./stlport/stl/_threads.h:416: missing ';' before right brace
./stlport/stl/_threads.h:423: semicolon missing after declaration of `
   _STL::_Refcount_Base'
./stlport/stl/_threads.h:423: ISO C++ forbids defining types within return
   type
./stlport/stl/_threads.h:423: two or more data types in declaration of `
   _M_incr'
./stlport/stl/_threads.h:423: semicolon missing after declaration of `struct
   _STL::_Refcount_Base'
./stlport/stl/_threads.h: In function `int _STL::_M_incr()':
./stlport/stl/_threads.h:424: `_M_mutex' undeclared (first use this function)
./stlport/stl/_threads.h:425: `_M_ref_count' undeclared (first use this
   function)
./stlport/stl/_threads.h: At global scope:
./stlport/stl/_threads.h:451: ISO C++ forbids declaration of `_STLP_mutex_base
   ' with no type
./stlport/stl/_threads.h:451: parse error before `;' token
./stlport/stl/_threads.h:458: syntax error before `(' token
./stlport/stl/_threads.h:460: parse error before `=' token
./stlport/stl/_threads.h:461: ISO C++ forbids declaration of `__p' with no
   type
./stlport/stl/_threads.h:461: `__q' was not declared in this scope
./stlport/stl/_threads.h:483: syntax error before `&' token
./stlport/stl/_threads.h:485: parse error before `&' token
./stlport/stl/_threads.h:487: ISO C++ forbids defining types within return
   type
./stlport/stl/_threads.h:487: destructor `_STLP_auto_lock' must match class
   name `_Swap_lock_struct'
./stlport/stl/_threads.h:487: return type specification for destructor invalid
./stlport/stl/_threads.h: In function `void _Swap_lock_struct()':
./stlport/stl/_threads.h:487: `void _Swap_lock_struct()' redeclared as
   different kind of symbol
./stlport/stl/_threads.h:450: previous declaration of `template<int __dummy>
   struct _Swap_lock_struct'
./stlport/stl/_threads.h:450: previous non-function declaration `template<int
   __dummy> struct _Swap_lock_struct'
./stlport/stl/_threads.h:487: conflicts with function declaration `void
   _Swap_lock_struct()'
./stlport/stl/_threads.h:487: `_M_lock' undeclared (first use this function)
./stlport/stl/_threads.h: At global scope:
./stlport/stl/_threads.h:489: parse error before `private'
./stlport/stl/_threads.h:491: parse error before `const'
In file included from ../stlport/stl/_threads.h:552,
                 from ../stlport/stl/_alloc.h:64,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/stl/_threads.c:36: `time_t' not declared
./stlport/stl/_threads.c:48: `_STL::_STLP_mutex_base
   _Swap_lock_struct<__dummy>::_S_swap_lock' is not a static member of `struct
   _Swap_lock_struct<__dummy>'
./stlport/stl/_threads.c:48: template definition of non-template `
   _STL::_STLP_mutex_base _Swap_lock_struct<__dummy>::_S_swap_lock'
./stlport/stl/_threads.c:98: parse error before `*' token
In file included from ../stlport/stl/_construct.h:43,
                 from ../stlport/stl/_alloc.h:68,
                 from ../stlport/memory:28,
                 from dll_main.cpp:38:
./stlport/stl/_iterator_base.h:50: parse error before `,' token
./stlport/stl/_iterator_base.h:54: template declaration of `typedef _Tp
   _STL::value_type'
./stlport/stl/_iterator_base.h:54: confused by earlier errors, bailing out
gmake: *** [../lib/obj/GCC-FREEBSD/ReleaseD/dll_main.o] Error 1
dmake:  Error code 2, while making './unxfbsd.pro/misc/build/so_built'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice/work/oo_1.0.1_src/stlport
dmake:  Error code 1, while making 'build_all'
---* TG_SLO.MK *---
*** Error code 255

Stop in /usr/ports/editors/openoffice.

Fix: 

Fix the port.
How-To-Repeat: CVS upgrade the ports collection
cd /usr/ports/editors/openoffice
make
Comment 1 Tetsurou Okazaki freebsd_committer 2002-09-04 10:26:01 UTC
Responsible Changed
From-To: freebsd-ports->openoffice

over to the maintainer(s)
Comment 2 Martin Blapp freebsd_committer 2002-09-04 10:37:11 UTC
State Changed
From-To: open->closed

This is not an openoffice problem, this is a problem 
of your installed gcc. 

Please reinstall your gcc31 port. Since the port 
system cannot depend on a specific version of gcc, 
I could not check for the newer version. 

You'll need gcc3.1.1 from lang/gcc31