Hello,
We resumed your
procedure such as it is described on your site, and
we compiled with the debug mode, we reproduced the
same error, below the executed commands and their
results :
# make -d install
...
...
...
Trying pattern rule with stem `install-share'.
Rejecting impossible implicit prerequisite
`install-share.mod'.
Trying pattern rule with stem `install-share'.
Trying implicit prerequisite `install-share.sh'.
Looking for a rule with intermediate file
`install-share.sh'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `install-share.sh'.
Trying implicit prerequisite `install-share.sh,v'.
Trying pattern rule with stem `install-share.sh'.
Trying implicit prerequisite
`RCS/install-share.sh,v'.
Trying pattern rule with stem `install-share.sh'.
Trying implicit prerequisite `RCS/install-share.sh'.
Trying pattern rule with stem `install-share.sh'.
Trying implicit prerequisite `s.install-share.sh'.
Trying pattern rule with stem `install-share.sh'.
Trying implicit prerequisite
`SCCS/s.install-share.sh'.
No implicit rule found for `install-share'.
Finished prerequisites of target file
`install-share'.
Must remake target `install-share'.
Successfully remade target file `install-share'.
Finished prerequisites of target file `install'.
Must remake target `install'.
touch
/usr/local/lib64/kamailio/modules/xprint.so
Putting child 0x00674f50 (install) PID 16567 on the
chain.
Live child 0x00674f50 (install) PID 16567
Reaping winning child 0x00674f50 PID 16567
install -m 755 xprint.so
/usr/local/lib64/kamailio/modules
Live child 0x00674f50 (install) PID 16568
Reaping winning child 0x00674f50 PID 16568
Removing child 0x00674f50 PID 16568 from chain.
Successfully remade target file `install'.
Reaping winning child 0x007954f0 PID 14626
Removing child 0x007954f0 PID 14626 from chain.
Successfully remade target file `install-modules'.
Finished prerequisites of target file
`install-every-module'.
Must remake target `install-every-module'.
Successfully remade target file
`install-every-module'.
Considering target file `install-cfg'.
File `install-cfg' does not exist.
Considering target file `
/usr/local/etc/kamailio/'.
Finished prerequisites of target file `
/usr/local/etc/kamailio/'.
No need to remake target `
/usr/local/etc/kamailio/'.
Finished prerequisites of target file `install-cfg'.
Must remake target `install-cfg'.
Putting child 0x00794240 (install-cfg) PID 16569 on the
chain.
Live child 0x00794240 (install-cfg) PID 16569
Reaping winning child 0x00794240 PID 16569
Live child 0x00794240 (install-cfg) PID 16572
Reaping winning child 0x00794240 PID 16572
Live child 0x00794240 (install-cfg) PID 16573
Reaping winning child 0x00794240 PID 16573
Live child 0x00794240 (install-cfg) PID 16576
Reaping winning child 0x00794240 PID 16576
Live child 0x00794240 (install-cfg) PID 16577
/bin/sh: -c: line 18: syntax error near unexpected token
`fi'
/bin/sh: -c: line 18: ` fi ; \'
Reaping losing child 0x00794240 PID 16577
make: *** [install-cfg] Error 2
Removing child 0x00794240 PID 16577 from chain.
[root@gtk:/usr/local/src][Tue 05/08/2014 15:34:58]
# pwd
/usr/local/src
# mkdir kamailio-4.0
[root@gtk:/usr/local/src][Tue 05/08/2014 15:35:10]
# cd kamailio-4.0/
[
root@gtk:/usr/local/src/kamailio-4.0][Tue
05/08/2014 15:35:30]
# git clone --depth 1 --no-single-branch
git://git.sip-router.org/sip-router
kamailio
Cloning into 'kamailio'...
remote: Counting objects: 35659, done.
remote: Compressing objects: 100% (17387/17387), done.
remote: Total 35659 (delta 27031), reused 24700 (delta
17867)
Receiving objects: 100% (35659/35659), 20.78 MiB | 3.33
MiB/s, done.
Resolving deltas: 100% (27031/27031), done.
[
root@gtk:/usr/local/src/kamailio-4.0][Tue
05/08/2014 15:35:58]
# cd kamailio/
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:36:03]
# git checkout -b 4.0 origin/4.0
Branch 4.0 set up to track remote branch 4.0 from
origin.
Switched to a new branch '4.0'
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:36:08]
# CPU=core2
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:38:04]
# make cfg
target architecture <x86_64>, host architecture
<x86_64>
making config...
rm -f modules.lst
make --no-print-directory modules.lst
saving modules list...
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:38:32]
# vi modules.lst
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:39:15]
# cat modules.lst | grep include_modules
include_modules= db_mysql
modules= $(filter-out $(modules_noinc), $(addprefix
modules/, $(include_modules) )) $(modules_noinc)
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:40:15]
# make all
generating autover.h ...
CC (gcc) [kamailio] action.o
CC (gcc) [kamailio] atomic_ops.o
CC (gcc) [kamailio] basex.o
CC (gcc) [kamailio] bit_count.o
CC (gcc) [kamailio] bit_scan.o
CC (gcc) [kamailio] cfg_core.o
CC (gcc) [kamailio] cfg_parser.o
CC (gcc) [kamailio] core_cmd.o
CC (gcc) [kamailio] counters.o
CC (gcc) [kamailio] crc.o
CC (gcc) [kamailio] daemonize.o
CC (gcc) [kamailio] data_lump.o
CC (gcc) [kamailio] data_lump_rpl.o
CC (gcc) [kamailio] dns_cache.o
CC (gcc) [kamailio] dprint.o
...
...
...
...
CC (gcc) [M xhttp.so] xhttp_mod.o
LD (gcc) [M xhttp.so] xhttp.so
CC (gcc) [M xhttp_rpc.so] xhttp_rpc.o
CC (gcc) [M xhttp_rpc.so] xhttp_rpc_fnc.o
LD (gcc) [M xhttp_rpc.so] xhttp_rpc.so
CC (gcc) [M xlog.so] xl_lib.o
CC (gcc) [M xlog.so] xlog.o
LD (gcc) [M xlog.so] xlog.so
CC (gcc) [M xprint.so] xp_lib.o
CC (gcc) [M xprint.so] xprint.o
LD (gcc) [M xprint.so] xprint.so
[
root@gtk:/usr/local/src/kamailio-4.0/kamailio][Tue
05/08/2014 15:42:23]
# make install
touch /usr/local/sbin//kamailio
install -m 755 kamailio
/usr/local/sbin/
make[2]: `libsrdb2.so.1.0' is up to date.
make[2]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_mysql.so] db_mysql.so
touch
/usr/local/lib64/kamailio//libsrdb2.so.1.0
install -m 755 libsrdb2.so.1.0
/usr/local/lib64/kamailio/
rm -f /usr/local/lib64/kamailio//libsrdb2.so.1 \
/usr/local/lib64/kamailio//libsrdb2.so
cd
/usr/local/lib64/kamailio/ ; ln -s
libsrdb2.so.1.0 libsrdb2.so.1
cd
/usr/local/lib64/kamailio/ ; ln -s
libsrdb2.so.1.0 libsrdb2.so
touch
/usr/local/lib64/kamailio//libsrdb1.so.1.0
install -m 755 libsrdb1.so.1.0
/usr/local/lib64/kamailio/
rm -f /usr/local/lib64/kamailio//libsrdb1.so.1 \
/usr/local/lib64/kamailio//libsrdb1.so
cd
/usr/local/lib64/kamailio/ ; ln -s
libsrdb1.so.1.0 libsrdb1.so.1
...
...
...
...
make[2]: `libsrdb1.so.1.0' is up to date.
make[2]: `libkcore.so.1.0' is up to date.
make[2]: `libsrutils.so.1.0' is up to date.
LD (gcc) [M usrloc.so] usrloc.so
make[2]: Nothing to be done for `install-if-newer'.
make[2]: Nothing to be done for `install-if-newer'.
make[2]: Nothing to be done for `install-if-newer'.
make[2]: Nothing to be done for `install-if-newer'.
touch
/usr/local/lib64/kamailio/modules/usrloc.so
install -m 755 usrloc.so
/usr/local/lib64/kamailio/modules
touch
/usr/local/lib64/kamailio/modules/xhttp.so
install -m 755 xhttp.so
/usr/local/lib64/kamailio/modules
touch /usr/local/lib64/kamailio/modules/xhttp_rpc.so
install -m 755 xhttp_rpc.so
/usr/local/lib64/kamailio/modules
touch
/usr/local/lib64/kamailio/modules/xlog.so
install -m 755 xlog.so
/usr/local/lib64/kamailio/modules
touch
/usr/local/lib64/kamailio/modules/xprint.so
install -m 755 xprint.so
/usr/local/lib64/kamailio/modules
/bin/sh: -c: line 18: syntax error near unexpected token
`fi'
/bin/sh: -c: line 18: ` fi ; \'
make: *** [install-cfg] Error 2
Thank you for your help,
Best Regards,
Djamel BAHAMID.
Le 05/08/2014 14:54, Daniel-Constantin Mierla a écrit :