To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67354
                 Issue #|67354
                 Summary|Solaris/SPARC: more compile issues with warning=errors
               Component|tools
                 Version|680m176
                Platform|Sun
                     URL|
              OS/Version|Solaris
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|sb
             Reported by|pjanik





------- Additional comments from [EMAIL PROTECTED] Thu Jul 13 12:56:23 -0700 
2006 -------
Hi,

I'll file more pieces I found in one issue to save administrative overhead.

1. unotools module:

/home/pjanik/BuildDir/ooo_SRC680_m176_src/unotools/source/i18n/textsearch.cxx",
line 237: Warning: Unrecognized #pragma optimize ( "", off )  

/home/pjanik/BuildDir/ooo_SRC680_m176_src/unotools/source/i18n/textsearch.cxx",
line 302: Warning: Unrecognized #pragma optimize ( "", on )

Hmm, but it works:

bash-2.05$ echo '#pragma optimize ( "", on )' >foo.cxx  
bash-2.05$ CC -c foo.cxx                              
bash-2.05$ 

I simply removed them to get further.

2. transex3:

"cfglex.l", line 34: warning: no explicit type given
"cfglex.l", line 35: warning: no explicit type given
"cfglex.l", line 36: warning: no explicit type given
"cfglex.l", line 37: warning: no explicit type given
"cfglex.l", line 38: warning: no explicit type given
cc: acomp failed for cfg_yy_wrapper.c
dmake:  Error code 2, while making '../unxsols4.pro/obj/cfg_yy_wrapper.obj'
'---* tg_merge.mk *---'

s/extern /extern int / on these lines in transex3/source/cfglex.l helped.

"xrmlex.l", line 34: warning: no explicit type given
"xrmlex.l", line 35: warning: no explicit type given
"xrmlex.l", line 36: warning: no explicit type given
"xrmlex.l", line 37: warning: no explicit type given
"xrmlex.l", line 38: warning: no explicit type given
"xrmlex.l", line 39: warning: no explicit type given

The same in the other file.

3. the same error as before with gcc:

Making: ../../unxsols4.pro/obj/rscyacc.obj
CC  -c -temp=/tmp -xarch=v8plus -xO3 -xspace -xprefetch=yes   -I. 
-I../../unxsols4.pro/inc/rscpar -I../inc -I../../inc -I../../unx/inc
-I../../unxsols4.pro/inc -I.
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solver/680/unxsols4.pro/inc/stl
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solver/680/unxsols4.pro/inc/external
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solver/680/unxsols4.pro/inc
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solenv/unxsols4/inc
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solenv/inc
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/res
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solver/680/unxsols4.pro/inc/stl
-I/include -I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solenv/inc/Xp31
-I/usr/java/include -I/usr/java/include/solaris
-I/usr/java/include/native_threads/include    
-I/home/pjanik/BuildDir/ooo_SRC680_m176_src/solver/680/unxsols4.pro/inc/offuh
-I. -I../../res -I. -features=no%altspell -library=no%Cstd  -g0 -xs  +w2
-erroff=doubunder,inllargeuse,inllargeint,notemsource,reftotemp -xwe   -KPIC -mt
-DSOLARIS -DUNX -DVCL -DC52 -DC52 -DSPARC -DCVER=C52 -D_PTHREADS -DSYSV -DSUN
-DSUN4 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTLPORT_VERSION=400 -D__DMAKE
-DUNIX -DCPPU_ENV=sunpro5 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL
-DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA
-DSRC680=SRC680   -DMULTITHREAD   -o ../../unxsols4.pro/obj/rscyacc.o
/home/pjanik/BuildDir/ooo_SRC680_m176_src/rsc/source/parser/rscyacc.cxx
"../../unxsols4.pro/inc/yyrscyacc.cxx", line 2478: Warning: Label yyerrorlab is
not used.
1 Warning(s) detected.

../../unxsols4.pro/inc/yyrscyacc.cxx contains: 

/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

#ifdef __GNUC__
  /* Pacify GCC when the user code never invokes YYERROR and the label
     yyerrorlab therefore never appears in user code.  */
  if (0)
     goto yyerrorlab;
#endif

I had to manually remove #ifdef __GNUC__ and #endif to make it compile. How do
fix this properly?

4. psprint:

"/home/pjanik/BuildDir/ooo_SRC680_m176_src/psprint/source/printer/cupsmgr.cxx",
line 704: Warning: rData is defined but not used.

Everything is between:

#ifdef ENABLE_CUPS
#endif

But I build without cups on Solaris/SPARC. You build with cups on Solaris/SPARC?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to