On Thu, Jul 27, 2000 at 01:54:40PM -0700, Kayvan Sylvan wrote:
> Hi folks,
>
> Here's what happens on my Solaris box from latest CVS.
>
> Using gcc-2.95.2:
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../.. -I../..
>-I/remote/tools/ksylvan/include -isystem /usr/openwin/include -O2 -isystem
>/usr/openwin/include -W -Wall -Wconversion -Winline -Wp,-MD,.deps/insetinclude.pp -c
>insetinclude.C -o insetinclude.o
> In file included from
>/remote/tools/ksylvan/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/map:31,
> from ../../src/language.h:19,
> from ../../src/lyxfont.h:22,
> from lyxinset.h:23,
> from insetbutton.h:19,
> from insetcommand.h:19,
> from insetinclude.h:18,
> from insetinclude.C:11:
>
>/remote/tools/ksylvan/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_tree.h:
> In function `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)':
>
>/remote/tools/ksylvan/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_tree.h:1258:
> warning: can't inline call to `int __black_count(_Rb_tree_node_base *,
>_Rb_tree_node_base *)'
>
>/remote/tools/ksylvan/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_tree.h:1266:
> warning: called from here
> /usr/ccs/bin/as: "/var/tmp/ccAtcvw5.s", line 14928: error: can't compute value of an
>expression involving an external symbol
> make[2]: *** [insetinclude.lo] Error 1
> make[2]: Leaving directory `/remote/tools/ksylvan/src/lyx/src/insets'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/remote/tools/ksylvan/src/lyx/src'
> make: *** [install-recursive] Error 1
What version of Solaris? I think the Solaris 2.5.1 and 2.6 as cannot
deal with long variable names so gas is required (I think this was an
issue with KDE). I think they recommended building with -fsquangle
(only side affect is that you need every library linked against a
program compiled with -fsquangle to also be compiled with -fsquangle):
`-fsquangle'
`-fno-squangle'
`-fsquangle' will enable a compressed form of name mangling for
identifiers. In particular, it helps to shorten very long names by
recognizing types and class names which occur more than once,
replacing them with special short ID codes. This option also
requires any C++ libraries being used to be compiled with this
option as well. The compiler has this disabled (the equivalent of
`-fno-squangle') by default.
We have not encountered a problem with long identifiers on Solaris
2.7.
--
albert chin ([EMAIL PROTECTED])