[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.2 with latest patches and SunPRO CC

From: Thomas E. Dickey
Subject: Re: 5.2 with latest patches and SunPRO CC
Date: Wed, 15 Aug 2001 13:30:33 -0400 (EDT)

On Wed, 15 Aug 2001 address@hidden wrote:

I did get it to build (but not run the demo on Solaris) using -compat=4
-features=bool as you had suggested.  The same combination on IRIX built
and ran (and since it was getting late, I put off debugging the Solaris
demo for another time).  Actually first I tried w/o using the -compat,
etc., and it did not build since genericerror is not in the newer
interface (and I spent some time finding that the hard way - wasn't
sure if I needed some extra environment variable to make the linker work
for me, but finally decided it's a version-specific issue).

There's only a few references to genericerror; I spent some time also
looking to see what might be a replacement for that, but didn't finish -
it's probably simple if I know what to do.

There are a number of things to fix to make it compile with -compat=5
(the default), which might be simply adding casts - though that doesn't
seem right (it's certainly not a Good Solution).  Unfortunately gcc
seems stuck in a quasi-prestandard syndrome - doesn't lend itself to
developing portable/standard code.

> in c++/etip.h:
> inline void THROW(const NCursesException *e) {
> #if defined(__GNUG__)
> #  if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
>       (*lib_error_handler)(e?e->classname():"",e?e->message:"");
> #else
>       throw *e;
> #endif
> #elif defined(__SUNPRO_CC)
>   genericerror(1, ((e != 0) ? (char *)(e->message) : ""));
> #else
>   if (e)
>     cerr << e->message << endl;
>   exit(0);
> #endif
> }
> As far as I can tell, Forte C++ (SunPRO 6.1 or CC v5.2) does not have
> genericerror. However, the v4 SunPRO compiler does seem to have
> genericerror:
>   $ cd /opt/SUNWspro
>   $ nm lib/CC4/libC.so
>   [1432]  |     76164|      60|FUNC |GLOB |0    |10 |__0FMgenericerroriPc
>   [63]    |         0|       0|FILE |LOCL |0    |ABS    |genericerror.cc
> Actually, I just tried building with "-compat=4 --features=bool"
> (without rerunning configure with the new CXXFLAGS) and got some other
> errors while trying to link demo. Anyway, can the C++ library be built
> without genericerror for Forte C++?

T.E.Dickey <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]