[Home]

Summary:ASTERISK-03351: Problem in $CVSROOT/asterisk/include/asterisk/util.h
Reporter:constfilin (constfilin)Labels:
Date Opened:2005-01-25 19:05:54.000-0600Date Closed:2008-01-15 15:23:22.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 3426-stable.patch.txt
Description:At the very end of $CVSROOT/asterisk/include/asterisk/util.h
there is this line

extern char *ast_strcasestr(const char *, const char *);

When this header is compiled with C++, this line generated the following error:

================
/usr/include/string.h:208: error: declaration of `char* strcasestr(const char*,
  const char*) throw ()' throws different exceptions
/usr/src/asterisk/include/asterisk/utils.h:171: error: than previous
  declaration `char* strcasestr(const char*, const char*)'
make: *** [obj/app_apqueue.o] Error 1
================

Can this be fixed? For example, can it be moved under some
sort of #ifdef ?

Thanks

-c
Comments:By: Mark Spencer (markster) 2005-01-25 20:37:16.000-0600

Fixed in CVS head

By: rwjblue (rwjblue) 2005-01-26 11:02:21.000-0600

added patch for STABLE

By: Russell Bryant (russell) 2005-01-27 19:12:38.000-0600

fixed in 1.0

thanks rwjblue!

By: Digium Subversion (svnbot) 2008-01-15 15:23:22.000-0600

Repository: asterisk
Revision: 4903

U   branches/v1-0/include/asterisk/utils.h

------------------------------------------------------------------------
r4903 | russell | 2008-01-15 15:23:21 -0600 (Tue, 15 Jan 2008) | 2 lines

fix c++ compatibility issue (bug ASTERISK-3351)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4903