Apache OpenOffice (AOO) Bugzilla – Issue 11307
Gcc 2.95 fails to compile new 644 tree in sal/osl
Last modified: 2003-06-16 16:51:26 UTC
Index: unx/file_stat.cxx =================================================================== RCS file: /cvs/oo/porting/sal/osl/unx/Attic/file_stat.cxx,v retrieving revision 1.1.4.1 diff -u -b -B -r1.1.4.1 file_stat.cxx --- unx/file_stat.cxx 22 Jan 2003 17:08:34 -0000 1.1.4.1 +++ unx/file_stat.cxx 8 Feb 2003 02:35:30 -0000 @@ -325,7 +325,7 @@ if (osl_File_E_None != osl_error) return osl_error; - struct stat file_stat; + struct ::stat file_stat; if (is_stat_call_necessary(uFieldMask) && (0 != osl::lstat(file_path, file_stat))) return oslTranslateFileError(
This patch works for gcc 2.95 but breaks gcc 3.2. Don't apply.
Ken, Martin: This patch is required for Mac OS X as we must still use gcc 2.95.3. Sal will not build unless this patch is applied. Can't we get namespace issues worked out here? Either that or do some #ifdef-ing. Dan
We will need this patch on IRIX too (although I haven't built 644 yet). I think #ifdef __GNUC__ #if __GNUC__ < 3 ... #endif #endif will do the trick.
Found duplicate for issue. *** This issue has been marked as a duplicate of 8181 ***
The patch that Nick Proposed is correct for 2.95. Will wait for further building to complete verification.
The link assumes taht the gcc2.95 compiler is gcc and no specific path. Here is a patch. Index: unxlngi3.mk =================================================================== RCS file: /cvs/tools/solenv/inc/unxlngi3.mk,v retrieving revision 1.18.6.1.22.1 diff -u -b -B -r1.18.6.1.22.1 unxlngi3.mk --- unxlngi3.mk 19 Mar 2003 11:04:54 -0000 1.18.6.1.22.1 +++ unxlngi3.mk 19 Mar 2003 20:41:45 -0000 @@ -133,7 +133,7 @@ DYNAMIC = -Wl,-Bdynamic # name of linker -LINK=gcc +LINK=*gcc # default linker flags LINKFLAGS=
I think Nicks suggestion is the only on that will work... We too are seeing this problem on Irix. Attached below is my patch proposal (from the 1.1 beta tree)
Created attachment 5453 [details] patch for sal/osl/unx/file_stat.cxx
Running a verification build on gcc 3.2.
This has been applied to the developers 644 tree. Verified for gcc 295 and gcc 32.
closed.