To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=98363
                 Issue #|98363
                 Summary|set_soenv.in errors
               Component|tools
                 Version|OOO300m9
                Platform|Sun
                     URL|
              OS/Version|Solaris
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|solenv
             Assigned to|mh
             Reported by|zingelman





------- Additional comments from [email protected] Thu Jan 22 14:30:40 
+0000 2009 -------
Building on solaris 10 sparc with gcc, results in these messages:

*   Setting up the build environment variables.                    *
*                                                                  *
********************************************************************
checking solver path... default
configure: creating ./config.status
config.status: creating set_soenv
Setting up the environment for building OpenOffice.org 
Setting platform independent values... Setting Solaris specific values... done
Argument "M-^XM-^\M-^\" isn't numeric in numeric ne (!=) at ./set_soenv line 
1472.
Argument "gcc" isn't numeric in numeric ne (!=) at ./set_soenv line 1472.
Use of uninitialized value $temp in substitution (s///) at ./set_soenv line 
1479.
Use of uninitialized value $temp in concatenation (.) or string at ./set_soenv
line 1480.
Setting the environment variables... done
Setting the aliases... done

this is due to two errors in set_soenv.in, and results in an error in the value
of the variable SOLARINC.  In the case of a build using gcc, without the patch
the build output contains:

The variable SOLARINC          is set to:  -I. -I$SOLARVER/$INPATH/inc/stl
-I$SOLARVER/$INPATH/inc/external -I$SOLARVER/$INPATH/inc
-I$SOLARENV/$OUTPATH/inc -I$SOLARENV/inc -I$SRC_ROOT/res
-I/usr/pkg/pkgsrc/misc/openoffice3/work/OOO300_m9/solver/300/unxsogs.pro/inc/stl
-I/include -I$SOLARENV/inc/Xp31 -I$JAVA_HOME/include
-I$JAVA_HOME/include/solaris -I$JAVA_HOME/include/native_threads/include

and with the patch the build output contains:

The variable SOLARINC          is set to:  -I. -I$SOLARVER/$INPATH/inc/stl
-I$SOLARVER/$INPATH/inc/external -I$SOLARVER/$INPATH/inc
-I$SOLARENV/$OUTPATH/inc -I$SOLARENV/inc -I$SRC_ROOT/res
-I/usr/pkg/pkgsrc/misc/openoffice3/work/OOO300_m9/solver/300/unxsogs.pro/inc/stl
-I/usr/pkg/pkgsrc/misc/openoffice3/work/.wrapper/include -I$SOLARENV/inc/Xp31
-I$JAVA_HOME/include -I$JAVA_HOME/include/solaris
-I$JAVA_HOME/include/native_threads/include

The patch to fix this is:

--- set_soenv.in.orig   Thu Jan 22 08:24:00 2009
+++ set_soenv.in        Thu Jan 22 08:25:04 2009
@@ -1451,14 +1451,14 @@
 # This simply adds an include path, so even cases that break the FHS work
 $SOLARINC            .= $STLPORT_inc_stlport;
 }
-if ($platform =~ m/solaris/ && $CC !=~ "gcc")
+if ($platform =~ m/solaris/ && ! $CC =~ "gcc")
 {
 $SOLARINC            .= '/SC5 ';
 }
 # Platform dependent include path at the top of this list of include paths
 if ($platform =~ m/solaris/)
-{   my $temp;
-    $temp =~ s:$COMPATH:/bin\$:;
+{   my $temp = $COMPATH;
+    $temp =~ s:/bin$::;
     $SOLARINC         .= $I.$temp.$ds."include";
 }
 if ($platform =~ m/linux/)

---------------------------------------------------------------------
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