Hi,

any hints how to solve the below compile problem? Or any hints how to compile OOo [3.0 m28] on OpenSolaris in general?

If one does not set CC=cc, OpenOffice seems to prefer GCC even if I set PATH like /opt/SunStudioExpress/bin:/usr/local/bin/:/usr/bin and cc (Sun Ceres C) is the first compiler in my path. The cc that comes with OpenSolaris snv_94's ss-dev package has version 5.10:

[EMAIL PROTECTED]:~/oo.org-m28/config_office$ cc -V
cc: Sun Ceres C 5.10 SunOS_i386 2008/04/04
usage: cc [ options] files.  Use 'cc -flags' for details

But OpenOffice wants an older version:

checking for cc... /opt/SunStudioExpress/bin//cc
checking the SunStudio C/C++ compiler version... configure: error: found version "5.10", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler

As cc did not work out for me, I tried the GCC that ships with OpenSolaris:

checking the GNU gcc compiler version... checked (gcc 3.4.3)
checking gcc linker... configure: error: failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris

That's because configure checks the ld used by running:

[EMAIL PROTECTED]:~/oo.org-m28/config_office$ gcc -Wl,--version 2>&1 |head -n 1
/usr/ccs/bin/ld: illegal option -- version

OpenSolaris does ship with a GNU ld which I could use (in theory) but configure will ignore it:

[EMAIL PROTECTED]:~/oo.org-m28/config_office$ /usr/gnu/bin/ld  -v
GNU ld version 2.15
[EMAIL PROTECTED]:~/oo.org-m28/config_office$ CC=gcc LD=/usr/gnu/bin/ld ./configure --disable-build-mozilla --disable-mediawiki --with-use-shell=bash
[...]
checking gcc linker... configure: error: failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris

For whatever reason, I was brave enough to ignore the equation "Solaris = Sun compiler" and I have build a new GCC 4.2.2:

[EMAIL PROTECTED]:~/oo.org-m28/config_office$ /export/home/nixnutz/gcc/bin/gcc -Wl,--version
GNU ld version 2.15

I continued trying to compile OOo and ended with:

./configure --disable-build-mozilla --disable-mediawiki --with-use-shell=bash
[...]
checking X11/Xaw/Label.h presence... no
checking for X11/Xaw/Label.h... no
configure: error: Xaw include headers not found
[EMAIL PROTECTED]:~/oo.org-m28/config_office$ pfexec pkg search -r Xaw
INDEX      ACTION    VALUE                     PACKAGE
basename dir usr/X11/include/X11/Xaw pkg:/[EMAIL PROTECTED] basename dir usr/X11/include/X11/Xaw pkg:/[EMAIL PROTECTED] basename dir usr/X11/share/X11/doc/hardcopy/Xaw pkg:/[EMAIL PROTECTED] basename dir usr/X11/share/X11/doc/hardcopy/Xaw pkg:/[EMAIL PROTECTED] basename dir usr/X11/share/X11/doc/hardcopy/Xaw pkg:/[EMAIL PROTECTED] [EMAIL PROTECTED]:~/oo.org-m28/config_office$ pfexec pkg install FSWxorg-headers
Nothing to install in this image (is this package already installed?)
[EMAIL PROTECTED]:~/oo.org-m28/config_office$ pfexec pkg info FSWxorg-headers
          Name: FSWxorg-headers
       Summary:
         State: Installed
     Authority: opensolaris.org (preferred)
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.94
Packaging Date: Mon Jul 21 19:04:46 2008
          Size: 0 B
          FMRI: pkg:/[EMAIL PROTECTED],5.11-0.94:20080721T190446Z


Looks like an OpenSolaris matter to me:

[EMAIL PROTECTED]:~/oo.org-m28/config_office$ ls /usr/X11/include/X11/Xaw
ls: cannot access /usr/X11/include/X11/Xaw: No such file or directory

Any hints are welcome! Thanks!

Ulf

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

Reply via email to