[OpenSIPS-Users] Fwd: Opensips 3.0.2 - Cannot install with db_mysql module enabled

Gordon Yeong anexiole at gmail.com
Thu Mar 19 01:18:48 EST 2020


hi, guys,

I am trying to test out the blacklist functionality on my sandboxes (Centos
7).


Replication steps:
===============

 I have the sources for opensips 3.0.2 and in "make menuconfig", I have:
1) enabled "db_mysql" by selecting it


2) specified my install path as /opt/bin (don't ask why).


I then hit the "Save Changes". I get the message 'You have enabled the
'db_mysql' module, so please install ' development libraries of
mysql-client , typically libmysqlclient-dev'*'.*



  On my Centos 7 machine, I have already isntalled the mysql client dev
modules.

 ⚡ root at localhost  ~/opensips-3.0.2  yum install mysql-client
> Loaded plugins: fastestmirror, langpacks
> Loading mirror speeds from cached hostfile
>  * base: centos.melbourneitmirror.net
>  * epel: fedora.melbourneitmirror.net
>  * extras: centos.melbourneitmirror.net
>  * updates: centos.melbourneitmirror.net
> Package MariaDB-client-10.4.12-1.el7.centos.x86_64 already installed and
> latest version
> Nothing to do




ISSUE:
========

 The mysql client dev modules have already been installed and yet when I
hit 'Compile and Install Opensips", there's so many issues primarily around
around shm.



I have attached a text version of the output
(failed_compilation_install_log.txt) when I tried to compile and install in
this thread.

Can anyone please shed some light on this?
I have also tried to run the following as a measure to try and not use
"make menuconfig" to no avail.

" make prefix=/opt/opensips all &&  make prefix=/opt/opensips/ install".
The compilation output remains the same as what I have encountered by using
"make menuconfig".


Please assist.

 Thank you


Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200319/5ada4a51/attachment-0001.html>
-------------- next part --------------
mem/shm_mem.c:239:3: error: invalid preprocessing directive #warn
  #warn "Cannot have persistent storage using SysV"
   ^
make[1]: Leaving directory `/root/opensips-3.0.2'
make[1]: Entering directory `/root/opensips-3.0.2'
mem/shm_mem.c:239:3: error: invalid preprocessing directive #warn
  #warn "Cannot have persistent storage using SysV"
   ^
sed -e "s#/usr/.*lib/opensips/modules/#/opt/opensips//lib64/opensips/modules/#g" \
		< etc/opensips.cfg > /opt/opensips//etc/opensips/opensips.cfg.sample0
umask 0077; sed -e "s#/usr/.*etc/opensips/tls/#/opt/opensips//etc/opensips/tls/#g" \
		< /opt/opensips//etc/opensips/opensips.cfg.sample0 \
		> /opt/opensips//etc/opensips/opensips.cfg.sample
rm -fr /opt/opensips//etc/opensips/opensips.cfg.sample0
if [ -z "" -a \
			! -f /opt/opensips//etc/opensips/opensips.cfg ]; then \
		mv -f /opt/opensips//etc/opensips/opensips.cfg.sample \
			/opt/opensips//etc/opensips/opensips.cfg; \
	fi
Compiling daemonize.c
In file included from daemonize.c:57:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from daemonize.c:57:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling time_rec.c
In file included from time_rec.c:6:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from time_rec.c:6:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling mod_fix.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from mod_fix.c:27:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from mod_fix.c:27:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling flags.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from flags.c:37:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from flags.c:37:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling serialize.c
Compiling reactor.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor.c:29:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor.c:29:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling blacklists.c
In file included from blacklists.c:35:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from blacklists.c:35:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling pt_load.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from pt_load.c:28:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from pt_load.c:28:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
pt_load.c: In function ���register_processes_load_stats���:
pt_load.c:384:3: warning: implicit declaration of function ���build_stat_name��� [-Wimplicit-function-declaration]
   if ( (stat_name = build_stat_name( &stat_prefix, pno_s)) == 0 ||
   ^
pt_load.c:384:19: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ( (stat_name = build_stat_name( &stat_prefix, pno_s)) == 0 ||
                   ^
pt_load.c:385:3: warning: implicit declaration of function ���register_stat2��� [-Wimplicit-function-declaration]
   register_stat2( "load", stat_name, (stat_var**)pt_get_rt_proc_load,
   ^
pt_load.c:397:19: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ( (stat_name = build_stat_name( &stat_prefix, pno_s)) == 0 ||
                   ^
pt_load.c:410:19: warning: assignment makes pointer from integer without a cast [enabled by default]
   if ( (stat_name = build_stat_name( &stat_prefix, pno_s)) == 0 ||
                   ^
pt_load.c:373:6: warning: variable ���name��� set but not used [-Wunused-but-set-variable]
  str name;
      ^
Compiling trace_api.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from trace_api.h:28,
                 from trace_api.c:25:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from trace_api.h:28,
                 from trace_api.c:25:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling ipc.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from ipc.h:107,
                 from ipc.c:27:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from ipc.h:107,
                 from ipc.c:27:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling sr_module_deps.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from sr_module_deps.c:36:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from sr_module_deps.c:36:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling context.c
Compiling route_struct.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from route_struct.c:48:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from route_struct.c:48:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling md5.c
Compiling route.c
In file included from resolve.h:45:0,
                 from proxy.h:75,
                 from forward.h:43,
                 from route.c:61:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from resolve.h:45,
                 from proxy.h:75,
                 from forward.h:43,
                 from route.c:61:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling bin_interface.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from bin_interface.c:28:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from bin_interface.c:28:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling script_cb.c
Compiling data_lump_rpl.c
Compiling error.c
Compiling xlog.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from trace_api.h:28,
                 from xlog.c:38:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from trace_api.h:28,
                 from xlog.c:38:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling msg_callbacks.c
Compiling msg_translator.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from msg_translator.h:55,
                 from msg_translator.c:114:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from msg_translator.h:55,
                 from msg_translator.c:114:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling transformations.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from transformations.c:35:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from transformations.c:35:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling pt_scaling.c
In file included from pt_scaling.c:24:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from pt_scaling.c:24:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling ut.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from ut.c:31:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from ut.c:31:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling qvalue.c
Compiling map.c
In file included from map.c:34:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from map.c:34:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling prime_hash.c
In file included from parser/../net/../lock_alloc.h:55:0,
                 from parser/../net/../locking.h:66,
                 from parser/../net/tcp_conn_defs.h:39,
                 from parser/../net/api_proto_net.h:29,
                 from parser/../net/trans.h:31,
                 from parser/parse_uri.h:32,
                 from prime_hash.c:29:
parser/../net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from parser/../net/../mem/shm_mem.h:40,
                 from parser/../net/../lock_alloc.h:55,
                 from parser/../net/../locking.h:66,
                 from parser/../net/tcp_conn_defs.h:39,
                 from parser/../net/api_proto_net.h:29,
                 from parser/../net/trans.h:31,
                 from parser/parse_uri.h:32,
                 from prime_hash.c:29:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling timer.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor_defs.h:40,
                 from reactor.h:38,
                 from timer.c:38:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor_defs.h:40,
                 from reactor.h:38,
                 from timer.c:38:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling resolve.c
In file included from resolve.c:44:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from resolve.c:44:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
resolve.c: In function ���resolv_init���:
resolve.c:686:2: warning: #warning "no resolv timeout support" [-Wcpp]
 #warning "no resolv timeout support"
  ^
Compiling crc.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from crc.c:31:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from crc.c:31:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling regexp.c
Compiling ip_addr.c
Compiling dprint.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from dprint.c:31:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from dprint.c:31:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling statistics.c
In file included from statistics.c:40:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from statistics.c:40:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling io_wait.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from io_wait.c:45:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from io_wait.c:45:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling usr_avp.c
In file included from evi/../lock_alloc.h:55:0,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from usr_avp.c:37:
evi/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from evi/../mem/shm_mem.h:40,
                 from evi/../lock_alloc.h:55,
                 from evi/../locking.h:66,
                 from evi/event_interface.h:31,
                 from evi/evi_modules.h:30,
                 from ut.h:40,
                 from usr_avp.c:37:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling tsend.c
Compiling errinfo.c
Compiling main.c
In file included from net/../lock_alloc.h:55:0,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor_defs.h:40,
                 from main.c:70:
net/../mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from net/../mem/shm_mem.h:40,
                 from net/../lock_alloc.h:55,
                 from net/../locking.h:66,
                 from net/tcp_conn_defs.h:39,
                 from net/api_proto_net.h:29,
                 from net/trans.h:31,
                 from socket_info.h:37,
                 from pt_scaling.h:31,
                 from pt.h:38,
                 from io_wait.h:91,
                 from reactor_defs.h:40,
                 from main.c:70:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
Compiling pt.c
In file included from pt.c:25:0:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from pt.c:25:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
pt.c: In function ���init_multi_proc_support���:
pt.c:117:2: warning: implicit declaration of function ���register_stat2��� [-Wimplicit-function-declaration]
  if ( register_stat2( "load", "load", (stat_var**)pt_get_rt_load,
  ^
Compiling receive.c
In file included from resolve.h:45:0,
                 from proxy.h:75,
                 from forward.h:43,
                 from receive.c:53:
mem/shm_mem.h:158:0: warning: "SHM_INFO" redefined [enabled by default]
 #define SHM_INFO               qm_info
 ^
In file included from /usr/include/sys/shm.h:30:0,
                 from mem/shm_mem.h:40,
                 from resolve.h:45,
                 from proxy.h:75,
                 from forward.h:43,
                 from receive.c:53:
/usr/include/bits/shm.h:76:0: note: this is the location of the previous definition
 # define SHM_INFO  14
 ^
In file included from socket_info.h:38:0,
                 from forward.h:48,
                 from receive.c:53:
receive.c: In function ���receive_msg���:
receive.c:279:26: error: ���slow_msgs��� undeclared (first use in this function)
   msg->buf, msg->len, 0, slow_msgs);
                          ^
ut.h:1067:8: note: in definition of macro ���__stop_expire_timer���
    if (_slow_stat) \
        ^
receive.c:279:26: note: each undeclared identifier is reported only once for each function it appears in
   msg->buf, msg->len, 0, slow_msgs);
                          ^
ut.h:1067:8: note: in definition of macro ���__stop_expire_timer���
    if (_slow_stat) \
        ^
make[1]: *** [receive.o] Error 1
make[1]: Leaving directory `/root/opensips-3.0.2'


More information about the Users mailing list