<div dir="ltr"><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font color="#003300" style="color:rgb(0,51,0)">Ahhh... looks like it was the '</font><font color="#003300" style="color:rgb(0,51,0)">LIBS</font><font color="#ff0000" style="font-weight:bold">+=</font><font color="#ff0000" style="font-weight:bold;color:rgb(0,51,0)">' </font><font color="#000000">in the internal LIB Makefile</font></div><div class="gmail_default"><font color="#000000">Thanks for the help!</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Pat</font></div><div class="gmail_default" style="color:rgb(0,51,0)"><br></div><div class="gmail_default" style="color:rgb(0,51,0)"><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">include ../../Makefile.defs</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">CC=/opt/rh/devtoolset-4/root/<wbr>usr/bin/g++</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">CXX=/opt/rh/devtoolset-4/root/<wbr>usr/bin/g++</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">LD=/opt/rh/devtoolset-4/root/<wbr>usr/bin/g++</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">auto_gen=</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">NAME:=rtctrace</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">MAJOR_VER=1</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">MINOR_VER=0</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">BUGFIX_VER=0</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">BOOST_DIR = ${COL_LOCAL_BUILDS_ROOT}/<wbr>ExternalLibs/boost/V1.60.0_22</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">RTC_COMMON_DIR = ${COL_LOCAL_BUILDS_ROOT}/RTC/<wbr>Common/2.0.0_247/</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">C_INCLUDES+=-I${RTC_COMMON_<wbr>DIR}/Applications_rhel6_x64_<wbr>dts4_pic/include </font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">DEFS+=-std=c++0x -I${RTC_COMMON_DIR}/<wbr>Applications_rhel6_x64_dts4_<wbr>pic/include</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">LIBS</font><b><font color="#ff0000">+=</font></b><font color="#003300">-L${RTC_COMMON_DIR}/<wbr>Applications_rhel6_x64_dts4_<wbr>pic/lib -lrtccommon -L${BOOST_DIR}/Server_Linux26_<wbr>x64_dts4_pic/lib -lboost_system -lboost_thread -lpthread</font><br></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#003300">include ../../Makefile.libs</font></div><div class="gmail-yj6qo gmail-ajU" style="color:rgb(34,34,34);font-size:12.8px"></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 12, 2017 at 5:56 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Oh, incomplete typing: it was supposed to be: (to add your
      module)</p>
    Can you paste here the content of the Makefile in your internal
    library?<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div class="m_8564045716502700525moz-cite-prefix">On 12/01/2017 11:52, Patrick wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small;color:rgb(0,51,0)">I use a slightly
          modified version of ....pkg/kamailio/rpm/kamailio.<wbr>spec</div>
        <div class="gmail_default" style="font-size:small;color:rgb(0,51,0)"><br>
        </div>
        <div class="gmail_default" style="font-size:small;color:rgb(0,51,0)">By "mode" if you
          mean in the compile flag <span style="font-size:x-small">-DRTC_COMMON_TRACE</span>,
          I update DEFS in each module that uses it the internal library</div>
        <div class="gmail_default"><font color="#003300">DEFS+=-DKAMAILIO_MOD_INTERFACE
            <b>-DRTC_COMMON_TRACE</b></font><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_default" style="font-size:small;color:rgb(0,51,0)">​If you were
            instead asking about including the module,m then yes - I
            added that to the rpm spec:</div>
          <div class="gmail_default" style="font-size:small;color:rgb(0,51,0)">%{_libdir}/kamailio/modules/<wbr>db_arl.so​</div>
          <br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Jan 12, 2017 at 5:32 AM,
            Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF">
                <p>Hello,</p>
                <p>do you have your own rpm specs, or do you use an
                  updated version (to add your mode) of some spec in
                  kamailio repository?</p>
                <p>Cheers,<br>
                  Daniel<br>
                </p>
                <div>
                  <div class="m_8564045716502700525gmail-h5"> <br>
                    <div class="m_8564045716502700525gmail-m_-7680184171369019885moz-cite-prefix">On
                      11/01/2017 16:24, Patrick wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div style="font-size:small;color:rgb(0,51,0)">Hi
                          Daniel, Thanks for the help</div>
                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                        </div>
                        <div style="font-size:small;color:rgb(0,51,0)">Sort
                          of. </div>
                        <div style="font-size:small;color:rgb(0,51,0)">The
                          internal library seems to be compiled and
                          linked each my module is compiled - this
                          happens 2x, for %build and for %install of the
                          RPM</div>
                        <div style="font-size:small;color:rgb(0,51,0)">This
                          doesn't seem to be a problem when the %build
                          stage is executed:</div>
                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                        </div>
                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                        </div>
                        <div>
                          <div style="color:rgb(0,51,0)"><font size="1">Executing(%build):
                              /bin/sh -e /var/tmp/rpm-tmp.EOkbPI</font></div>
                          <div style="color:rgb(0,51,0)"><font size="1">...</font></div>
                          <div>
                            <div style="color:rgb(0,51,0)"><font size="1">+ make all quiet=verbose
                                'skip_modules=mysql jabber cpl-c
                                avp_radius auth_radius group_radius
                                uri_radius pa postgres osp tlsops
                                unixodbc dbtext'
                                cfg-target=//etc/kamailio/ </font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">...</font></div>
                            <div>
                              <div><font color="#003300" size="1">gcc
                                  -fPIC -DPIC -g -funroll-loops
                                  -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall  
                                   -DNAME='"kamailio"'
                                  -DVERSION='"4.2.4"' -DARCH='"x86_64"'
                                  -DOS='linux_' -DOS_QUOTED='"linux"'
                                  -DCOMPILER='"gcc 4.4.7"'
                                  -D__CPU_x86_64 -D__OS_linux
                                  -DSER_VER=4002004
                                  -DCFG_DIR='"/usr/local/etc/kam<wbr>ailio/"'
                                  -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
                                  -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP
                                  -DDISABLE_NAGLE -DHAVE_RESOLV_RES
                                  -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
                                  -DUSE_DST_BLACKLIST -DUSE_NAPTR
                                  -DWITH_XAVP -DF_MALLOC -DDBG_F_MALLOC
                                  -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS
                                  -DUSE_CORE_STATS -DSTATISTICS
                                  -DMALLOC_STATS -DWITH_AS_SUPPORT
                                  -DFAST_LOCK -DADAPTIVE_WAIT
                                  -DADAPTIVE_WAIT_LOOPS=1024
                                  -DCC_GCC_LIKE_ASM
                                  -DHAVE_GETHOSTBYNAME2
                                  -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
                                  -DHAVE_MSG_NOSIGNAL
                                  -DHAVE_MSGHDR_MSG_CONTROL
                                  -DHAVE_ALLOCA_H -DHAVE_TIMEGM
                                  -DHAVE_SCHED_SETSCHEDULER
                                  -DUSE_RAW_SOCKS -DHAVE_EPOLL
                                  -DHAVE_SIGIO_RT
                                  -DSIGINFO64_WORKARROUND -DUSE_FUTEX
                                  -DHAVE_SELECT
                                   -DKAMAILIO_MOD_INTERFACE
                                  -DRTC_COMMON_TRACE
                                  -DMOD_NAME='"db_arl"' -c db_arl_mod.c
                                  -o db_arl_mod.o -MMD -MP</font></div>
                              <div><font color="#003300" size="1">Makefile.defs
                                  defs skipped</font></div>
                              <div><font style="background-color:rgb(255,255,255)" color="#003300" size="1">make[2]:
                                  `libsrdb2.so.1.0' is up to date.</font></div>
                              <div><font style="background-color:rgb(255,255,255)" color="#003300" size="1">Makefile.defs
                                  defs skipped</font></div>
                              <div><font style="background-color:rgb(255,255,255)" color="#003300" size="1">make[2]:
                                  `libsrdb1.so.1.0' is up to date.</font></div>
                              <div><font style="background-color:rgb(255,255,255)" color="#003300" size="1">Makefile.defs
                                  defs skipped</font></div>
                              <div><font style="background-color:rgb(255,255,0)" color="#003300" size="1">make[2]:
                                  `librtctrace.so.1.0' is up to date.</font></div>
                              <div><font color="#003300" size="1">COL_LOCAL_BUILDS_ROOT=/home/ps<wbr>hea/_localbuilds/</font></div>
                              <div><font color="#003300" size="1">Compiling
                                  db_arl_base.cpp</font></div>
                              <div><font color="#003300" size="1">g++
                                  -fPIC -DPIC -g -funroll-loops
                                  -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall
                                  -Wno-write-strings -Wno-deprecated
                                  -Wno-unused-function -Wno-sign-compare
                                  -Wno-strict-aliasing  -I
                                  /home/pshea/_localbuilds//Exte<wbr>rnalLibs/boost/V1.60.0_27/
                                  -I ./jsoncpp-dist/ -fPIC -DPIC -g
                                  -funroll-loops -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall
                                   -DNAME='"kamailio"'
                                  -DVERSION='"4.2.4"' -DARCH='"x86_64"'
                                  -DOS='linux_' -DOS_QUOTED='"linux"'
                                  -DCOMPILER='"gcc 4.4.7"'
                                  -D__CPU_x86_64 -D__OS_linux
                                  -DSER_VER=4002004
                                  -DCFG_DIR='"/usr/local/etc/kam<wbr>ailio/"'
                                  -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
                                  -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP
                                  -DDISABLE_NAGLE -DHAVE_RESOLV_RES
                                  -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
                                  -DUSE_DST_BLACKLIST -DUSE_NAPTR
                                  -DWITH_XAVP -DF_MALLOC -DDBG_F_MALLOC
                                  -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS
                                  -DUSE_CORE_STATS -DSTATISTICS
                                  -DMALLOC_STATS -DWITH_AS_SUPPORT
                                  -DFAST_LOCK -DADAPTIVE_WAIT
                                  -DADAPTIVE_WAIT_LOOPS=1024
                                  -DCC_GCC_LIKE_ASM
                                  -DHAVE_GETHOSTBYNAME2
                                  -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
                                  -DHAVE_MSG_NOSIGNAL
                                  -DHAVE_MSGHDR_MSG_CONTROL
                                  -DHAVE_ALLOCA_H -DHAVE_TIMEGM
                                  -DHAVE_SCHED_SETSCHEDULER
                                  -DUSE_RAW_SOCKS -DHAVE_EPOLL
                                  -DHAVE_SIGIO_RT
                                  -DSIGINFO64_WORKARROUND -DUSE_FUTEX
                                  -DHAVE_SELECT
                                   -DKAMAILIO_MOD_INTERFACE
                                  -DRTC_COMMON_TRACE
                                  -DMOD_NAME='"db_arl"' -c
                                  db_arl_base.cpp -o db_arl_base.o</font></div>
                              <div><font color="#003300" size="1">db_arl_base.cpp:
                                  In function 'std::string
                                  convert_value(int, const db_val_t*)':</font></div>
                              <div><font color="#003300" size="1">db_arl_base.cpp:789:
                                  warning: enumeration value
                                  'DB1_UNKNOWN' not handled in switch</font></div>
                              <div><font color="#003300" size="1">COL_LOCAL_BUILDS_ROOT=/home/ps<wbr>hea/_localbuilds/</font></div>
                              <div><font color="#003300" size="1">Compiling
                                  jsoncpp-dist/jsoncpp.cpp</font></div>
                              <div><font color="#003300" size="1">g++
                                  -fPIC -DPIC -g -funroll-loops
                                  -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall
                                  -Wno-write-strings -Wno-deprecated
                                  -Wno-unused-function -Wno-sign-compare
                                  -Wno-strict-aliasing  -I
                                  /home/pshea/_localbuilds//Exte<wbr>rnalLibs/boost/V1.60.0_27/
                                  -I ./jsoncpp-dist/ -fPIC -DPIC -g
                                  -funroll-loops -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall
                                   -DNAME='"kamailio"'
                                  -DVERSION='"4.2.4"' -DARCH='"x86_64"'
                                  -DOS='linux_' -DOS_QUOTED='"linux"'
                                  -DCOMPILER='"gcc 4.4.7"'
                                  -D__CPU_x86_64 -D__OS_linux
                                  -DSER_VER=4002004
                                  -DCFG_DIR='"/usr/local/etc/kam<wbr>ailio/"'
                                  -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
                                  -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP
                                  -DDISABLE_NAGLE -DHAVE_RESOLV_RES
                                  -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
                                  -DUSE_DST_BLACKLIST -DUSE_NAPTR
                                  -DWITH_XAVP -DF_MALLOC -DDBG_F_MALLOC
                                  -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS
                                  -DUSE_CORE_STATS -DSTATISTICS
                                  -DMALLOC_STATS -DWITH_AS_SUPPORT
                                  -DFAST_LOCK -DADAPTIVE_WAIT
                                  -DADAPTIVE_WAIT_LOOPS=1024
                                  -DCC_GCC_LIKE_ASM
                                  -DHAVE_GETHOSTBYNAME2
                                  -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
                                  -DHAVE_MSG_NOSIGNAL
                                  -DHAVE_MSGHDR_MSG_CONTROL
                                  -DHAVE_ALLOCA_H -DHAVE_TIMEGM
                                  -DHAVE_SCHED_SETSCHEDULER
                                  -DUSE_RAW_SOCKS -DHAVE_EPOLL
                                  -DHAVE_SIGIO_RT
                                  -DSIGINFO64_WORKARROUND -DUSE_FUTEX
                                  -DHAVE_SELECT
                                   -DKAMAILIO_MOD_INTERFACE
                                  -DRTC_COMMON_TRACE
                                  -DMOD_NAME='"db_arl"' -c
                                  jsoncpp-dist/jsoncpp.cpp -o jsoncpp.o</font></div>
                              <div><font color="#003300" size="1">g++
                                  -shared  -m64 -Wl,-O2 -Wl,-E  
                                   db_arl_mod.o  db_arl_base.o jsoncpp.o
                                  -lcurl -pthread  -L../../lib/srdb2/
                                  -lsrdb2  -L../../lib/srdb1/ -lsrdb1 <b style="background-color:rgb(255,255,0)"> -L../../lib/rtctrace/
                                    -lrtctrace</b>
                                  -Wl,-rpath,/tmp/kamailio/BUILD<wbr>/kamailio-4.2.4/lib/srdb2
                                  -Wl,-rpath,/tmp/kamailio/BUILD<wbr>/kamailio-4.2.4/lib/srdb1
                                  -Wl,-rpath,/tmp/kamailio/BUILD<wbr>/kamailio-4.2.4/lib/rtctrace
                                  -o db_arl.so</font></div>
                            </div>
                            <div style="color:rgb(0,51,0);font-size:small"><br>
                            </div>
                          </div>
                          <div style="color:rgb(0,51,0);font-size:small"><br>
                          </div>
                          <div style="color:rgb(0,51,0);font-size:small"><br>
                          </div>
                          <div style="color:rgb(0,51,0);font-size:small"><br>
                          </div>
                          <div style="color:rgb(0,51,0);font-size:small">However,
                            during the %install stage - this does seem
                            to cause a problem. </div>
                          <div style="color:rgb(0,51,0);font-size:small">There
                            are different options passed to make, in
                            this case, and I am trying to figure out how
                            this causes a problem.</div>
                          <div style="font-size:small"><font color="#003300">In this case, you'll see
                              that the internal library is NOT "up to
                              date" so make attempts to </font><b><font color="#0000ff">rebuild</font></b><font color="#003300"> it. In the link line,
                              you'll see the <span style="background-color:rgb(255,255,0)">objects
                                from the LIBS in my custom module</span>.</font></div>
                          <div style="color:rgb(0,51,0);font-size:small"><br>
                          </div>
                          <div style="color:rgb(0,51,0)">
                            <div><font size="1"><br>
                              </font></div>
                            <div><font size="1">Executing(%install):
                                /bin/sh -e /var/tmp/rpm-tmp.AkEuuP</font></div>
                            <div><font size="1">...</font></div>
                          </div>
                          <div><font size="1"><font color="#003300">+
                                make install quiet=verbose
                                'skip_modules=mysql jabber cpl-c
                                avp_radius auth_radius group_radius
                                uri_radius pa postgres osp tlsops
                                unixodbc dbtext' </font><b><font color="#ff0000">basedir=/tmp/kamailio/BUILDROO<wbr>T/kamailio-4.2.4-0.x86_64
                                  prefix=/usr cfg-prefix=/tmp/kamailio/BUILD<wbr>ROOT/kamailio-4.2.4-0.x86_64</font></b><font color="#003300">
                                cfg-target=//etc/kamailio/</font><br>
                            </font></div>
                          <div style="color:rgb(0,51,0)"><font size="1">...</font></div>
                          <div>
                            <div style="color:rgb(0,51,0)"><font size="1">Makefile.defs defs skipped</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">make[2]: `libsrdb2.so.1.0' is
                                up to date.</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">Makefile.defs defs skipped</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">make[2]: `libsrdb1.so.1.0' is
                                up to date.</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">Makefile.defs defs skipped</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">Makefile.defs defs skipped</font></div>
                            <div><b><font color="#0000ff" size="1">/opt/rh/devtoolset-4/root/usr/<wbr>bin/g++
                                  -fPIC -DPIC -g -funroll-loops
                                  -Wcast-align -m64
                                  -minline-all-stringops -falign-loops
                                  -ftree-vectorize -fno-strict-overflow
                                  -mtune=opteron -Wall  
                                  -I/home/pshea/_localbuilds//RT<wbr>C/Common/2.0.0_247//Applicatio<wbr>ns_rhel6_x64_dts4_pic/include
                                    -DNAME='"kamailio"'
                                  -DVERSION='"4.2.4"' -DARCH='"x86_64"'
                                  -DOS='linux_' -DOS_QUOTED='"linux"'
                                  -DCOMPILER='"gcc 4.4.7"'
                                  -D__CPU_x86_64 -D__OS_linux
                                  -DSER_VER=4002004
                                  -DCFG_DIR='"/usr/local/etc/kam<wbr>ailio/"'
                                  -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
                                  -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP
                                  -DDISABLE_NAGLE -DHAVE_RESOLV_RES
                                  -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
                                  -DUSE_DST_BLACKLIST -DUSE_NAPTR
                                  -DWITH_XAVP -DF_MALLOC -DDBG_F_MALLOC
                                  -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS
                                  -DUSE_CORE_STATS -DSTATISTICS
                                  -DMALLOC_STATS -DWITH_AS_SUPPORT
                                  -DFAST_LOCK -DADAPTIVE_WAIT
                                  -DADAPTIVE_WAIT_LOOPS=1024
                                  -DCC_GCC_LIKE_ASM
                                  -DHAVE_GETHOSTBYNAME2
                                  -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
                                  -DHAVE_MSG_NOSIGNAL
                                  -DHAVE_MSGHDR_MSG_CONTROL
                                  -DHAVE_ALLOCA_H -DHAVE_TIMEGM
                                  -DHAVE_SCHED_SETSCHEDULER
                                  -DUSE_RAW_SOCKS -DHAVE_EPOLL
                                  -DHAVE_SIGIO_RT
                                  -DSIGINFO64_WORKARROUND -DUSE_FUTEX
                                  -DHAVE_SELECT  -std=c++0x
                                  -I/home/pshea/_localbuilds//RT<wbr>C/Common/2.0.0_247//Applicatio<wbr>ns_rhel6_x64_dts4_pic/include
                                  -c rtctrace.c -o rtctrace.o -MMD -MP</font></b></div>
                            <div><b><font color="#0000ff" size="1"><br>
                                </font></b></div>
                            <div><b><font color="#0000ff" size="1">/opt/rh/devtoolset-4/root/usr/<wbr>bin/g++
                                  -shared  -m64 -Wl,-O2 -Wl,-E  
                                   -Wl,-soname,librtctrace.so.1
                                  rtctrace.o  <span style="background-color:rgb(255,255,0)">db_arl_base.o
                                    jsoncpp.o</span> -lcurl -pthread
                                  -L/home/pshea/_localbuilds//RT<wbr>C/Common/2.0.0_247//Applicatio<wbr>ns_rhel6_x64_dts4_pic/lib
                                  -lrtccommon
                                  -L/home/pshea/_localbuilds//Ex<wbr>ternalLibs/boost/V1.60.0_22/Se<wbr>rver_Linux26_x64_dts4_pic/lib
                                  -lboost_system -lboost_thread
                                  -lpthread   -o librtctrace.so.1.0</font></b></div>
                            <div><b><font color="#cc0000" size="1">g++:
                                  error: db_arl_base.o: No such file or
                                  directory</font></b></div>
                            <div><b><font color="#cc0000" size="1">g++:
                                  error: jsoncpp.o: No such file or
                                  directory</font></b></div>
                            <div style="color:rgb(0,51,0)"><font size="1">make[2]: ***
                                [librtctrace.so.1.0] Error 1</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">make[1]: ***
                                [../../lib/rtctrace/librtctrac<wbr>e.so]
                                Error 2</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">make: *** [install-modules]
                                Error 1</font></div>
                            <div style="color:rgb(0,51,0)"><font size="1">error: Bad exit status from
                                /var/tmp/rpm-tmp.AkEuuP (%install)</font></div>
                            <div style="color:rgb(0,51,0)"><br>
                            </div>
                          </div>
                        </div>
                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Wed, Jan 11, 2017
                            at 8:36 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                              <div bgcolor="#FFFFFF">
                                <p>Hello,</p>
                                <p>to be sure I understand properly the
                                  issue: you say that the value of the
                                  LIBS from Makefile of the module is
                                  inherited when compiling the internal
                                  library?</p>
                                <p>Cheers,<br>
                                  Daniel<br>
                                </p>
                                <div>
                                  <div class="m_8564045716502700525gmail-m_-7680184171369019885gmail-h5">
                                    <br>
                                    <div class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-cite-prefix">On
                                      11/01/2017 04:21, Patrick wrote:<br>
                                    </div>
                                  </div>
                                </div>
                                <blockquote type="cite">
                                  <div>
                                    <div class="m_8564045716502700525gmail-m_-7680184171369019885gmail-h5">
                                      <div dir="ltr">
                                        <div style="font-size:small;color:rgb(0,51,0)">I
                                          added a C++ module to kamalio
                                          at some point, and now I am
                                          trying to integrate that
                                          module with another C++
                                          internal library, but I'm
                                          getting all sorts of headaches
                                          when trying to compile. </div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)">The
                                          latest problem is during the
                                          "make install" part of the
                                          build - it seems like the
                                          objects from the module are
                                          "infecting" the link line of
                                          the internal library it's
                                          dependent on.</div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)">Here
                                          is the Makefile for the
                                          module. At the time, the only
                                          way I figured to link in the
                                          C++ object was adding them to
                                          the LIBS. Now, i think this
                                          interferes with the 'make
                                          install' dependencies.</div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)">Any
                                          thoughs on how to do this
                                          properly would be great!</div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)">Thanks</div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><br>
                                        </div>
                                        <div style="font-size:small;color:rgb(0,51,0)"><b><u>Module
                                              Makefile</u></b></div>
                                        <div style="color:rgb(0,51,0)"><font size="1"><br>
                                          </font></div>
                                        <div>
                                          <div><font color="#003300" size="1">#</font></div>
                                          <div><font color="#003300" size="1"># db_cassandra
                                              module makefile</font></div>
                                          <div><font color="#003300" size="1">#</font></div>
                                          <div><font color="#003300" size="1">#</font></div>
                                          <div><font color="#003300" size="1"># WARNING: do not
                                              run this directly, it
                                              should be run by the
                                              master Makefile</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">include
                                              ../../Makefile.defs</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">CXX=g++</font></div>
                                          <div><font color="#003300" size="1">LD=g++</font></div>
                                          <div><span style="color:rgb(0,51,0);font-size:x-small">auto_gen=</span><br>
                                          </div>
                                          <div><font color="#003300" size="1">NAME=db_arl.so</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">ifeq
                                              ($(CROSS_COMPILE),)</font></div>
                                          <div><font color="#003300" size="1">CURL_BUILDER=$(shell
                                              \</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>if
                                              pkg-config --exists
                                              libcurl; then \</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">           </span>echo
                                              'pkg-config libcurl'; \</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>else
                                              \</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">           </span>which
                                              curl-config; \</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>fi)</font></div>
                                          <div><font color="#003300" size="1">endif</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><span style="color:rgb(0,51,0);font-size:x-small">DEFS+=-DKAMAILIO_MOD_INTERFACE
                                              -DRTC_COMMON_TRACE</span><br>
                                          </div>
                                          <div><font size="1"><b><font color="#003300">LIBS
                                                  += </font><font color="#ff0000">db_arl_base.o
                                                  jsoncpp.o</font></b><font color="#003300"> -lcurl
                                                -pthread</font></font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">CXXFLAGS=$(CFLAGS:-Wno-depreca<wbr>ted
                                              option=)</font></div>
                                          <div><font color="#003300" size="1">CXXFLAGS+=
                                              -Wno-write-strings
                                              -Wno-deprecated
                                              -Wno-unused-function
                                              -Wno-sign-compare
                                              -Wno-strict-aliasing </font></div>
                                          <div><span style="color:rgb(0,51,0);font-size:x-small">CXXFLAGS+=
                                              -I
                                              ${COL_LOCAL_BUILDS_ROOT}/Exter<wbr>nalLibs/boost/V1.60.0_27/</span><br>
                                          </div>
                                          <div><font color="#003300" size="1">CXXFLAGS+= -I
                                              ./jsoncpp-dist/</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">SERLIBPATH=../../lib</font></div>
                                          <div><font color="#003300" size="1">SER_LIBS+=$(SERLIBPATH)/srdb2/<wbr>srdb2</font></div>
                                          <div><font color="#003300" size="1">SER_LIBS+=$(SERLIBPATH)/srdb1/<wbr>srdb1</font></div>
                                          <div><font color="#0000ff" size="1"><b>SER_LIBS+=$(SERLIBPATH)/rtctra<wbr>ce/rtctrace</b></font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">include
                                              ../../Makefile.modules</font></div>
                                          <div><br>
                                          </div>
                                          <div><font color="#003300" size="1">jsoncpp.o:
                                              jsoncpp-dist/jsoncpp.cpp</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>@echo
COL_LOCAL_BUILDS_ROOT=${COL_LO<wbr>CAL_BUILDS_ROOT}</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>@echo
                                              "Compiling $<"</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>$(CXX)
                                              $(CXXFLAGS) $(CFLAGS)
                                              $(C_DEFS) $(DEFS) -c $<
                                              -o $@</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">db_arl_base.o:
                                              db_arl_base.cpp
                                              db_arl_base.h</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>@echo
COL_LOCAL_BUILDS_ROOT=${COL_LO<wbr>CAL_BUILDS_ROOT}</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>@echo
                                              "Compiling $<"</font></div>
                                          <div><font color="#003300" size="1"><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>$(CXX)
                                              $(CXXFLAGS) $(CFLAGS)
                                              $(C_DEFS) $(DEFS) -c $<
                                              -o $@</font></div>
                                          <div><font color="#003300" size="1"><br>
                                            </font></div>
                                          <div><font color="#003300" size="1">db_arl.so:
                                              db_arl_base.o jsoncpp.o</font></div>
                                          <div style="text-decoration:underline;font-weight:bold;color:rgb(0,51,0);font-size:small"><br>
                                          </div>
                                          <div style="text-decoration:underline;font-weight:bold;color:rgb(0,51,0);font-size:small"><br>
                                          </div>
                                          <div style="font-size:small"><span style="color:rgb(0,51,0);font-weight:bold;text-decoration:underline">During
                                              'make install'</span><font color="#003300"> the
                                              objects in </font><b><font color="#ff0000">red</font></b><font color="#003300"> have no
                                              business in the link line
                                              for the internal library</font></div>
                                          <div>
                                            <div style="color:rgb(0,51,0)"><font size="1">/opt/rh/devtoolset-4/root/usr/<wbr>bin/g++
                                                -fPIC -DPIC -g
                                                -funroll-loops
                                                -Wcast-align -m64
                                                -minline-all-stringops
                                                -falign-loops
                                                -ftree-vectorize
                                                -fno-strict-overflow
                                                -mtune=opteron -Wall  
                                                -I/home/pshea/_localbuilds/RTC<wbr>/Common/2.0.0_247//Application<wbr>s_rhel6_x64_dts4_pic/include
                                                  -DNAME='"kamailio"'
                                                -DVERSION='"4.2.4"'
                                                -DARCH='"x86_64"'
                                                -DOS='linux_'
                                                -DOS_QUOTED='"linux"'
                                                -DCOMPILER='"gcc 4.4.7"'
                                                -D__CPU_x86_64
                                                -D__OS_linux
                                                -DSER_VER=4002004
                                                -DCFG_DIR='"/usr/local/etc/kam<wbr>ailio/"'
                                                -DPKG_MALLOC -DSHM_MEM
                                                -DSHM_MMAP -DDNS_IP_HACK
                                                -DUSE_MCAST -DUSE_TCP
                                                -DDISABLE_NAGLE
                                                -DHAVE_RESOLV_RES
                                                -DUSE_DNS_CACHE
                                                -DUSE_DNS_FAILOVER
                                                -DUSE_DST_BLACKLIST
                                                -DUSE_NAPTR -DWITH_XAVP
                                                -DF_MALLOC
                                                -DDBG_F_MALLOC
                                                -DMEM_JOIN_FREE
                                                -DUSE_TLS -DTLS_HOOKS
                                                -DUSE_CORE_STATS
                                                -DSTATISTICS
                                                -DMALLOC_STATS
                                                -DWITH_AS_SUPPORT
                                                -DFAST_LOCK
                                                -DADAPTIVE_WAIT
                                                -DADAPTIVE_WAIT_LOOPS=1024
                                                -DCC_GCC_LIKE_ASM
                                                -DHAVE_GETHOSTBYNAME2
                                                -DHAVE_UNION_SEMUN
                                                -DHAVE_SCHED_YIELD
                                                -DHAVE_MSG_NOSIGNAL
                                                -DHAVE_MSGHDR_MSG_CONTROL
                                                -DHAVE_ALLOCA_H
                                                -DHAVE_TIMEGM
                                                -DHAVE_SCHED_SETSCHEDULER
                                                -DUSE_RAW_SOCKS
                                                -DHAVE_EPOLL
                                                -DHAVE_SIGIO_RT
                                                -DSIGINFO64_WORKARROUND
                                                -DUSE_FUTEX
                                                -DHAVE_SELECT
                                                 -std=c++0x
                                                -I/home/pshea/_localbuilds/RTC<wbr>/Common/2.0.0_247//Application<wbr>s_rhel6_x64_dts4_pic/include
                                                -c rtctrace.c -o
                                                rtctrace.o -MMD -MP</font></div>
                                            <div><font size="1"><font color="#003300">/opt/rh/devtoolset-4/root/usr/<wbr>bin/g++
                                                  -shared  -m64 -Wl,-O2
                                                  -Wl,-E  
                                                   -Wl,-soname,librtctrace.so.1
                                                  rtctrace.o </font><b><font color="#ff0000"> db_arl_base.o
                                                    jsoncpp.o</font></b><font color="#003300">
                                                  -lcurl -pthread
                                                  -L/home/pshea/_localbuilds/RTC<wbr>/Common/2.0.0_247//Application<wbr>s_rhel6_x64_dts4_pic/lib
                                                  -lrtccommon
                                                  -L/home/pshea/_localbuilds/Ext<wbr>ernalLibs/boost/V1.60.0_22/Ser<wbr>ver_Linux26_x64_dts4_pic/lib
                                                  -lboost_system
                                                  -lboost_thread
                                                  -lpthread   -o
                                                  librtctrace.so.1.0</font></font></div>
                                            <div><font color="#ff0000" size="1"><b>g++: error:
                                                  db_arl_base.o: No such
                                                  file or directory</b></font></div>
                                            <div><font color="#ff0000" size="1"><b>g++: error:
                                                  jsoncpp.o: No such
                                                  file or directory</b></font></div>
                                            <div style="color:rgb(0,51,0);font-size:small;text-decoration:underline"><br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                      <br>
                                      <fieldset class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034mimeAttachmentHeader"></fieldset>
                                      <br>
                                    </div>
                                  </div>
                                  <pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-HOEnZb"><font color="#888888">
</font></span></pre><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="m_8564045716502700525gmail-m_-7680184171369019885gmail-HOEnZb"><font color="#888888">
    

    <pre class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_8564045716502700525gmail-m_-7680184171369019885gmail-m_-7183675550661382034moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>


______________________________<wbr>_________________

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>

<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a>


</blockquote></div>
</div></div>



</blockquote>
<pre class="m_8564045716502700525gmail-m_-7680184171369019885moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_8564045716502700525gmail-m_-7680184171369019885moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_8564045716502700525gmail-m_-7680184171369019885moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_8564045716502700525gmail-m_-7680184171369019885moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div>
</div></div>



</blockquote>
<pre class="m_8564045716502700525moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_8564045716502700525moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_8564045716502700525moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_8564045716502700525moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div><br></div>