[Kamailio-Devel] [ openser-Bugs-2096538 ] egrep incompatibilty issue on Solaris 10

SourceForge.net noreply at sourceforge.net
Sat Sep 6 09:39:29 CEST 2008


Bugs item #2096538, was opened at 2008-09-06 09:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2096538&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Muhammad Akl (m-akl)
Assigned to: Nobody/Anonymous (nobody)
Summary: egrep incompatibilty issue on Solaris 10

Initial Comment:
bug is found in version 1.2.2 , 1.3.3 OS : Solaris 10

for 1.2.2 it's found in openser_mysql.sh file 

for 1.3.3 it's found in openserdbctl.mysql

problem :

After executing openserdbctl or openser_mysql.sh scripts you may encounter this message :

egrep: illegal operation help

usage: egrep [-c | -l | -q] [-bhinsvx]pattern_list [file....]
       egrep: [-c | -l | -q] [-bhinsvx]    [ -e pattern_list ]  ....  [-f pattern_file] ..... [file....] 


Solution: 

This message will appear due to incompatibility issues for some commands (e.g egrep) and to solve this problem just edit the /sbin/openser_mysql.sh or /lib/openser/openserctl/openserdbcl.mysql files and search for the line :

While [ `echo ALLCHARSETS | $GREP -icw $CURRCHARSET` = 0

Just remove the letter w to be like this :

While [ `echo ALLCHARSETS | $GREP -ic $CURRCHARSET` = 0

as -w option is not supported either by Solaris egrep or gnu egrep (i have tested the both )


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2096538&group_id=139143



More information about the Devel mailing list