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

SourceForge.net noreply at sourceforge.net
Wed Sep 24 14:51:08 CEST 2008


Bugs item #2096538, was opened at 2008-09-06 07:39
Message generated for change (Settings changed) made by henningw
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: Henning Westerholt (henningw)
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 )


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

>Comment By: Henning Westerholt (henningw)
Date: 2008-09-24 12:51

Message:
Hi Muhammad,

thanks for the report. I've commited a change to the trunk and 1.3, 1.4
branches. I checked the man page for solaris grep, this has the necessary
'-w' switch. The problem was, that the config wrongly suggested 'egrep'
when the 'grep' should be used.

Would be great if you could test with GREP="grep" in openserctlrc.

Henning

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

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