sfl version 1.3 problem with sm_error.[h,cpp]

"Dale Moberg" <[email protected]>
Newsgroups gmane.ietf.sfl
Message-ID <[email protected]>
Hi

(warning:  long, lowlevel and pedestrian!)

I had a problem compiling sfl 1.3 under Solaris 2.6,
BSafe4.0, gcc 2.95.

For some reason we did not see the problem under the NT
compile. Maybe we mixed up the source somehow
but looking over the sources we could not find
any version of sm_error.h and sm_error.cpp that
solves the following problem during our solaris
compile.

The problem seems to be a versioning
issue for code for the  CSM_Exception class.
Basically the sm_error.h file seems to need an update
as well as the sm_error.cpp file.

The SME_APPEND macro (code given below)
from one version of sm_error.h (macro is used in  libsrc/lolevel/sm_attr.cpp)
 uses member function FillException. No implementation was
found  in sm_error.cpp. I used the constructor implementation
to guess at  an implementation for FillException
to get a compile of sm_attr.cpp

The SME_APPEND macro is not found in sm_error.h version
/* @(#) sm_error.h 1.15 05/18/99 17:54:55 */ under the
snacc c++-lib source tree but  is present
 in the sm_error.h file in under the
include/snacc directory for smimer1.3.
( which interestingly has the same version identifier--
 /* @(#) sm_error.h 1.15 05/18/99 17:54:55 */...  )

Next there is an issue concerning a member variable
from sm_error.h,  char m_szStackString[1024];
A declaration is found in sm_error.h under the
snacc c++-lib source tree but is not present in the
sm_error.h file under the include/snacc directory
for smimer1.3. Used in sm_error.cpp implementation
in both versions found under the snacc-1.3vda
directory and under smimer1.3 directory.

So to get a compile, I added a merge of the
SME_APPEND macro and the member variable declaration for
char m_szStackString[1024] to make a working
sm_error.h. To allow the sm_attr.cpp build,
a faked up implementation of FillException was added.

Is there an 'official' release 1.3 sm_error.h and
sm_error.cpp available that has the merged
member variable declaration, SME_APPEND macro,
and a FillException implementation?

If so can someone email the files to me?

Apologies for the length but I hope
it helps you track down the
discrepancy.  Btw, we did
get sfl 1.3 to work with bsafe4 under
gcc 2.95 compile and many interop
tests have worked so far.

#define SME_APPEND(errorNumber, pszError, pStrDat) {bSMELocal = true;\
   if (pMultException)\
 pMultException->FillException(errorNumber,__LINE__,SME_FN\
        __FILE__,pszError,pStrDat);\
else\
    pMultException = new CSM_Exception(errorNumber,__LINE__,SME_FN,\
       __FILE__,pszError,pStrDat); }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.