To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=42285
                  Issue #:|42285
                  Summary:|Notes on compiling for Solaris 10 with Studio 10
                Component:|porting
                  Version:|680m74
                 Platform:|Sun
                      URL:|
               OS/Version:|Solaris
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|prazak





------- Additional comments from [EMAIL PROTECTED] Tue Feb  8 16:15:22 -0800 
2005 -------
Given the number of issues to report, I decided to list them all here under
"porting".  This is my first attempt to work with OO.org, so I'd be happy to
help clarify anything below ([EMAIL PROTECTED]).  These notes are for only
a _partial_build_ of OO.org, as the last issue below was a show-stopper for me.

PLATFORM:
SunOS whizzer 5.10 s10_72 sun4u sparc SUNW,Ultra-30 Solaris
cc: Sun C 5.7 2005/01/07

NOTE ONE:  I quickly learned that the required Perl modules from CPAN will not
compile easily with GCC on Solaris (just too many assumptions about cc), and I
switched to using the evaluation version of Sun Studio 10, which worked fine.

NOTE TWO:  I installed several utilities from www.sunfreeware.com.  These were
patch-2.5.4-sol8-sparc-local, coreutils-4.5.4-sol9-sparc-local,
diffutils-2.8.1-sol10-sparc-local, fileutils-4.1-sol9-sparc-local,
make-3.80-sol10-sparc-local, expat-1.95.5-sol10-sparc-local, and bison-1.35-pkg.
 I also compiled and installed fltk-1.1.6 and epm-3.7 and put the gpc231 files
in the external/gpc/ directory.

NOTE THREE:  My environment is
"PATH=/opt/SUNWspro/bin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/sfw/bin:/opt/sfw/bin",
"LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/local/lib:/usr/ccs/lib:/lib:/usr/lib:/usr/openwin/lib:/usr/sfw/lib:/opt/sfw/lib",
"CC=/opt/SUNWspro/bin/cc", "CXX=/opt/SUNWspro/bin/CC".

NOTE FOUR:  I eventually settled on the following command line for configure,
"./configure --with-jdk-home=/usr/j2se --prefix=/opt/OpenOffice/base
--enable-debug --with-gnu-patch=/usr/local/bin/patch
--with-gnu-cp=/usr/local/bin/cp".

NOTE FIVE:  I had to modify the configure script to pass the version test for
SunOS 5.10 and to accept that ant.jar resides in /usr/sfw/lib/ant/.  These
checks would need to be rolled into the autoconf files (I'm really not familiar
with autoconf).

NOTE SIX:  Once configure was working, one remaining problem was that I had to
edit SolarisSparcEnv.Set to put /usr/ccs/bin after /usr/local/bin in the path,
to make sure the GNU utilities were preferred.

NOTE SEVEN: I had first tried Bison 1.875d, but the build ended in shift/reduce
errors at "bison -d -v -o ../unxsols4.pro/misc/parser.cxx
../unxsols4.pro/misc/stripped_parser.y".  Bison 1.35 worked fine.

NOTE EIGHT:  Compilation failed at "/opt/SUNWspro/bin/cc ...  -o
../../../../..//unxsols4.pro/obj/cabd.o cabd.c" because the symbol
"__FUNCTION__" was not defined.  This problem results from having debugging
enabled, and, apparently, Sun Studio 10 does not define this symbol
automatically.  I just edited the header file
"./msfontextract/unxsols4.pro/misc/build/libmspack/mspack/system.h" as a quick
work-around to this (deleted the reference to __FUNCTION__).

NOTE NINE:  A core dump occurred in genrb during the build.  I suspect this is
due to a bug in Sun Studio 10.  The work-around is to modify
icu/unxsols4.pro/misc/build/icu/source/i18n/ucol_bld.cpp, in the function
ucol_doCE(), by re-writing the while loop to be:

while( 1 ) {
    if( !(2*CEi<noOfBytes[0] || CEi<noOfBytes[1] || CEi<noOfBytes[2]) )
      break;

    ...
}

NOTE TEN:  This is the show stopper.  My C++ is really rusty, so I'm hesitent to
try to fix this as a class interface is affected.

------------------------------
Making: ../unxsols4.pro/slo/newppdlg.obj
/opt/SUNWspro/bin/CC  ...  -o ../unxsols4.pro/slo/newppdlg.o
/mnt/disk0/export/dev/OO.org-SRC680_m74/padmin/source/newppdlg.cxx
CC: Warning: "-g" overrides "-g0", debugging information will be produced and
inlining will be disabled.
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/bitmap.hxx",
line 234: Warning: Types cannot be declared in anonymous union.
CC: Warning: "-g" overrides "-g0", debugging information will be produced and
inlining will be disabled.
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/bitmap.hxx",
line 234: Warning: Types cannot be declared in anonymous union.
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/edit.hxx",
line 280: Warning: Edit::dragEnter hides the virtual function
vcl::unohelper::DragAndDropClient::dragEnter(const
com::sun::star::datatransfer::dnd::DragSourceDragEvent&).
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/edit.hxx",
line 280: Warning: Edit::dragExit hides the virtual function
vcl::unohelper::DragAndDropClient::dragExit(const
com::sun::star::datatransfer::dnd::DragSourceEvent&).
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/edit.hxx",
line 280: Warning: Edit::dragOver hides the virtual function
vcl::unohelper::DragAndDropClient::dragOver(const
com::sun::star::datatransfer::dnd::DragSourceDragEvent&).
"/mnt/disk0/export/dev/OO.org-SRC680_m74/solver/680/unxsols4.pro/inc/vcl/edit.hxx",
line 280: Warning: Edit::GetSelection hides the virtual function
Window::GetSelection().
"/mnt/disk0/export/dev/OO.org-SRC680_m74/padmin/source/newppdlg.cxx", line 205:
Error: Overloading ambiguity between "ByteString::ByteString(const unsigned
short*, unsigned short, unsigned long)" and "ByteString::ByteString(const
String&, unsigned short, unsigned long)".
"/mnt/disk0/export/dev/OO.org-SRC680_m74/padmin/source/newppdlg.cxx", line 205:
Error: Overloading ambiguity between "ByteString::ByteString(const unsigned
short*, unsigned short, unsigned long)" and "ByteString::ByteString(const
String&, unsigned short, unsigned long)".
2 Error(s) and 5 Warning(s) detected.
dmake:  Error code 2, while making '../unxsols4.pro/slo/newppdlg.obj'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/mnt/disk0/export/dev/OO.org-SRC680_m74/padmin/source
dmake:  Error code 1, while making 'build_all'
'---* tg_merge.mk *---'

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