Summary: | ASTERISK-14587: [patch] compilation fails in systems without index() | ||
Reporter: | Nikos Mavrogianopoulos (nmav) | Labels: | |
Date Opened: | 2009-08-03 08:52:57 | Date Closed: | 2009-08-03 11:16:56 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Functions/func_cut |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) asterisk-index.patch | |
Description: | I use asterisk in a uclibc system without the index() and rindex() functions and compilation fails. Those functions have been replaced by strchr and strrchr. | ||
Comments: | By: Nikos Mavrogianopoulos (nmav) 2009-08-03 08:54:19 The attached patch fixes the problem for me (is for an earlier asterisk but applies as well to 1.4.26). By: Digium Subversion (svnbot) 2009-08-03 10:39:57 Repository: asterisk Revision: 210064 U branches/1.4/configure U branches/1.4/configure.ac U branches/1.4/include/asterisk/autoconfig.h.in U branches/1.4/main/strcompat.c ------------------------------------------------------------------------ r210064 | tilghman | 2009-08-03 10:39:57 -0500 (Mon, 03 Aug 2009) | 4 lines Apparently, some platforms don't have the index() function. (closes issue ASTERISK-14587) Reported by: nmav ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=210064 By: Digium Subversion (svnbot) 2009-08-03 10:42:26 Repository: asterisk Revision: 210065 U branches/1.4/include/asterisk/compat.h U branches/1.4/main/asterisk.exports ------------------------------------------------------------------------ r210065 | tilghman | 2009-08-03 10:42:25 -0500 (Mon, 03 Aug 2009) | 3 lines Helps if we export the index() function. (Related to issue ASTERISK-14587) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=210065 By: Digium Subversion (svnbot) 2009-08-03 11:11:45 Repository: asterisk Revision: 210066 U branches/1.4/apps/app_playback.c U branches/1.4/channels/chan_oss.c U branches/1.4/configure U branches/1.4/configure.ac U branches/1.4/funcs/func_cut.c U branches/1.4/include/asterisk/autoconfig.h.in U branches/1.4/include/asterisk/compat.h U branches/1.4/main/asterisk.exports U branches/1.4/main/strcompat.c ------------------------------------------------------------------------ r210066 | tilghman | 2009-08-03 11:11:45 -0500 (Mon, 03 Aug 2009) | 3 lines Reverting index() fix, applying a different methodology, based upon developer discussions. (related to issue ASTERISK-14587) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=210066 By: Digium Subversion (svnbot) 2009-08-03 11:16:56 Repository: asterisk Revision: 210068 _U trunk/ ------------------------------------------------------------------------ r210068 | tilghman | 2009-08-03 11:16:55 -0500 (Mon, 03 Aug 2009) | 20 lines Blocked revisions 210064-210066 via svnmerge ........ r210064 | tilghman | 2009-08-03 10:39:41 -0500 (Mon, 03 Aug 2009) | 4 lines Apparently, some platforms don't have the index() function. (closes issue ASTERISK-14587) Reported by: nmav ........ r210065 | tilghman | 2009-08-03 10:42:10 -0500 (Mon, 03 Aug 2009) | 3 lines Helps if we export the index() function. (Related to issue ASTERISK-14587) ........ r210066 | tilghman | 2009-08-03 11:11:29 -0500 (Mon, 03 Aug 2009) | 3 lines Reverting index() fix, applying a different methodology, based upon developer discussions. (related to issue ASTERISK-14587) ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=210068 |