[OpenSIPS-Devel] [opensips] Compilation error on RH6 (#606)

arovetto notifications at github.com
Fri Aug 21 10:38:33 CEST 2015


I've seen that since version 2.1 of Opensips there is a blocking compilation error on RH6.
The error launching "make" is the following:

/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep db_mysql '
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep db_postgres '
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep db_oracle '
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep db_berkeley '
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep db_text '
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo modules/() modules/{ modules/eval modules/`/usr/bin/modulecmd modules/bash modules/`}| grep _radius '

I've investigated the isssue and I discovered that is caused by the command "module" that was introduced by RedHat since version 6.

The code causing the conflict is the follow in Makefile: 
    102 ifneq ($(module),)
    103         modules:=$(addprefix modules/, $(module))
    104 endif

On RH6, instead of expanding that variable, it executes the module command.

A simple workaround is to launch, instead of make, the following:
make module=

It will be appreciated if you would fix the issue

Thank you

Alessandro Rovetto

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/606
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150821/ef195e8c/attachment.htm>


More information about the Devel mailing list