-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateway RTP/SRTP bit pattern testing support #417
Conversation
I'm a bit cautious about making rtpstream depend on OpenSSL - per #32, distributing SIPp with OpenSSL support is a bit dicey, and this would mean that distributions like https://packages.debian.org/sid/comm/sip-tester ("built...without openssl due licenses incompatibilities") could no longer support rtpstream. |
Thanks - get well soon! |
a4b63a0
to
5fd4e51
Compare
By @jeannotlanglois. Fixes by @orgads and @wdoekes. [Detailed feature documentation available upon request] NOTE: --with-rtpstream requires openssl here. NOTE: Docs need updates too.
ddf6dca
to
f8b1064
Compare
Rebased and squashed all commits that could not be merged to master directly. (Parts of the squashed commit may possibly be cherry-picked sooner though.) |
For instance:
|
Hi! Glad to hear that you're on your feet again. I believe the new sequence would be:
|
Hi Walter:
I've tried your steps and got a little further -- but the build is failing during the compile stage with "make -j12".
Could there be a minimum compiler version needed? I'm using gcc 4.4.7 on CentOS 6.9:
[langloij@tlsrnd sipp-git]$ cmake . -DUSE_SSL=1
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
[langloij@tlsrnd sipp-git]$ make -j12
Scanning dependencies of target sipp
[ 3%] [ 6%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
[ 9%] [ 12%] [ 16%] Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/actions.cpp:24:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
[ 19%] [ 22%] [ 25%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/message.cpp:39:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
[ 29%] In file included from /home/langloij/sipp-git/src/socket.cpp:47:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2:In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/rtpstream.cpp:23:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
[ 32%] In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/ratetask.cpp:33:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/include/logger.hpp:7,
from /home/langloij/sipp-git/src/logger.cpp:46:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/actions.cpp:24:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/listener.cpp:27:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/socket.cpp:48:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/message.cpp:39:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/rtpstream.cpp:23:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/stat.hpp:33,
from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/auth.cpp:34:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/stat.hpp:33,
from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/screen.cpp:22:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/listener.cpp:27:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/ratetask.cpp:33:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/sipp.hpp:24,
from /home/langloij/sipp-git/src/task.cpp:46:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/src/stat.cpp:30:
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:11:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:12:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:18:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:20:2: error: invalid preprocessing directive #cmakedefine
/home/langloij/sipp-git/include/config.h:21:2: error: invalid preprocessing directive #cmakedefine
In file included from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/auth.cpp:34:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/screen.cpp:22:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/include/logger.hpp:7,
from /home/langloij/sipp-git/src/logger.cpp:46:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/task.cpp:46:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/stat.cpp:31:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/actions.cpp:24:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/actions.cpp:24:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/message.cpp:39:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/socket.cpp:48:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/rtpstream.cpp:23:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/message.cpp:39:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/socket.cpp:48:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/auth.cpp:34:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ tokenIn file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/rtpstream.cpp:23:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/listener.cpp:27:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/ratetask.cpp:33:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/src/auth.cpp:34:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/ratetask.cpp:33:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/listener.cpp:27:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/include/logger.hpp:7,
from /home/langloij/sipp-git/src/logger.cpp:46:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/screen.hpp:35,
from /home/langloij/sipp-git/src/screen.cpp:22:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/include/logger.hpp:7,
from /home/langloij/sipp-git/src/logger.cpp:46:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/src/screen.cpp:22:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/stat.cpp:31:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/task.cpp:46:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/stat.cpp:31:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/task.cpp:46:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
make[2]: *** [CMakeFiles/sipp.dir/src/actions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/sipp.dir/src/rtpstream.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/ratetask.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/listener.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/message.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/logger.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/auth.cpp.o] Error 1
/home/langloij/sipp-git/src/screen.cpp: In member function ‘void ScreenPrinter::print_closing_stats()’:
/home/langloij/sipp-git/src/screen.cpp:86: error: expected initializer before ‘:’ token
/home/langloij/sipp-git/src/screen.cpp:90: error: expected primary-expression before ‘if’
/home/langloij/sipp-git/src/screen.cpp:90: error: expected ‘;’ before ‘if’
/home/langloij/sipp-git/src/screen.cpp:90: error: expected primary-expression before ‘if’
/home/langloij/sipp-git/src/screen.cpp:90: error: expected ‘)’ before ‘if’
/home/langloij/sipp-git/src/screen.cpp:93: error: expected initializer before ‘:’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected ‘;’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected ‘)’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:96: error: expected ‘;’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp: In member function ‘void ScreenPrinter::print_to_file(FILE*)’:
/home/langloij/sipp-git/src/screen.cpp:103: error: expected initializer before ‘:’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected ‘;’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected ‘)’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected primary-expression before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp:106: error: expected ‘;’ before ‘}’ token
/home/langloij/sipp-git/src/screen.cpp: In member function ‘void ScreenPrinter::redraw()’:
/home/langloij/sipp-git/src/screen.cpp:117: error: expected initializer before ‘:’ token
/home/langloij/sipp-git/src/screen.cpp:121: error: expected primary-expression before ‘if’
/home/langloij/sipp-git/src/screen.cpp:121: error: expected ‘;’ before ‘if’
/home/langloij/sipp-git/src/screen.cpp:121: error: expected primary-expression before ‘if’
/home/langloij/sipp-git/src/screen.cpp:121: error: expected ‘)’ before ‘if’
/home/langloij/sipp-git/src/screen.cpp: In member function ‘void ScreenPrinter::get_lines()’:
/home/langloij/sipp-git/src/screen.cpp:155: error: ‘to_string’ is not a member of ‘std’
/home/langloij/sipp-git/src/screen.cpp: In member function ‘void ScreenPrinter::draw_scenario_screen()’:
/home/langloij/sipp-git/src/screen.cpp:515: error: ‘to_string’ is not a member of ‘std’
/home/langloij/sipp-git/src/screen.cpp:523: error: ‘to_string’ is not a member of ‘std’
/home/langloij/sipp-git/src/screen.cpp:550: error: ‘to_string’ is not a member of ‘std’
/home/langloij/sipp-git/src/screen.cpp:608: error: ‘to_string’ is not a member of ‘std’
/home/langloij/sipp-git/src/screen.cpp:622: error: ‘to_string’ is not a member of ‘std’
make[2]: *** [CMakeFiles/sipp.dir/src/task.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/screen.cpp.o] Error 1
/home/langloij/sipp-git/src/stat.cpp:1578: error: expected constructor, destructor, or type conversion before ‘*’ token
make[2]: *** [CMakeFiles/sipp.dir/src/socket.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/stat.cpp.o] Error 1
make[2]: *** [CMakeFiles/sipp.dir/src/call.cpp.o] Error 1
make[1]: *** [CMakeFiles/sipp.dir/all] Error 2
make: *** [all] Error 2
[langloij@tlsrnd sipp-git]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[langloij@tlsrnd sipp-git]$ cat /etc/redhat-release
CentOS release 6.9 (Final)
[langloij@tlsrnd sipp-git]$
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Walter Doekes
Sent: Tuesday, January 28, 2020 6:40 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Hi! Glad to hear that you're on your feet again.
I believe the new sequence would be:
$ cmake . -DUSE_SSL=1
$ make -j12
$ ./sipp -v
SIPp v3.6.0-4-gcc24f9d-TLS-RTPSTREAM.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5ODY33ZXKVM6GXVSV3RAAKPRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKC7S7Q%23issuecomment-579205502&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cbcb7640f513946729a0008d7a3e6c0fc%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637158083792697696&sdata=wDN0xzuy0do8AEQmNQsD%2B1fL8XKL5Y150qsUzs%2BKniM%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5NWTCLTM2C6LGKQEYLRAAKPRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cbcb7640f513946729a0008d7a3e6c0fc%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637158083792697696&sdata=afA%2FTPQH1NBGBBsCQabB1UhmM0tMpeeeR8oOUEYQ4sA%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
You are using heavily outdated stuff, including a machine with python2.6. But the errors I see point to stray garbage in your directories instead.
Try a:
and then a:
(After asserting that it's not removing anything important.) That should get rid of that old config.h that's not supposed to be in
(Unless it's your cmake version that does something interesting with the paths..)
I think the new cmake stuff assumes gsl exists.. ( @rkday ). Try
|
Hi Walter:
I've tried your steps but still got stuck at make with a different error this time:
[langloij@tlsrnd sipp-git]$ git clean -nxd
Would remove .autoclean
Would remove .version
Would remove CMakeCache.txt
Would remove CMakeFiles/
Would remove Makefile
Would remove Makefile.in
Would remove aclocal.m4
Would remove autom4te.cache/
Would remove cmake_install.cmake
Would remove coco_jamboo_ulaw.wav
Would remove config.guess
Would remove config.h
Would remove config.log
Would remove config.status
Would remove config.sub
Would remove configure
Would remove configure.ac.rej
Would remove depcomp
Would remove include/config.h
Would remove include/config.h.in.rej
Would remove include/config.h.in~
Would remove include/stamp-h1
Would remove install-sh
Would remove logtcerr.log
Would remove logtcmsg.log
Would remove missing
Would remove mycert.pem
Would remove mykey.pem
Would remove pfcq4_lan_audioonly_rtp.xml
Would remove sipp
Would remove sipp_scenarios/
Would remove sipp_tls11method_hack.diff
Would remove src/.deps/
Would remove src/.dirstamp
Would remove src/sipp-actions.o
Would remove src/sipp-auth.o
Would remove src/sipp-call.o
Would remove src/sipp-call_generation_task.o
Would remove src/sipp-comp.o
Would remove src/sipp-deadcall.o
Would remove src/sipp-infile.o
Would remove src/sipp-listener.o
Would remove src/sipp-logger.o
Would remove src/sipp-md5.o
Would remove src/sipp-message.o
Would remove src/sipp-milenage.o
Would remove src/sipp-ratetask.o
Would remove src/sipp-reporttask.o
Would remove src/sipp-rijndael.o
Would remove src/sipp-rtpstream.o
Would remove src/sipp-scenario.o
Would remove src/sipp-screen.o
Would remove src/sipp-sip_parser.o
Would remove src/sipp-sipp.o
Would remove src/sipp-socket.o
Would remove src/sipp-socketowner.o
Would remove src/sipp-sslsocket.o
Would remove src/sipp-stat.o
Would remove src/sipp-strings.o
Would remove src/sipp-task.o
Would remove src/sipp-time.o
Would remove src/sipp-variables.o
Would remove src/sipp-watchdog.o
Would remove src/sipp-xp_parser.o
Would remove src/socket.cpp.orig
Would remove test-driver
[langloij@tlsrnd sipp-git]$ git clean -fxd
Removing .autoclean
Removing .version
Removing CMakeCache.txt
Removing CMakeFiles/
Removing Makefile
Removing Makefile.in
Removing aclocal.m4
Removing autom4te.cache/
Removing cmake_install.cmake
Removing coco_jamboo_ulaw.wav
Removing config.guess
Removing config.h
Removing config.log
Removing config.status
Removing config.sub
Removing configure
Removing configure.ac.rej
Removing depcomp
Removing include/config.h
Removing include/config.h.in.rej
Removing include/config.h.in~
Removing include/stamp-h1
Removing install-sh
Removing logtcerr.log
Removing logtcmsg.log
Removing missing
Removing mycert.pem
Removing mykey.pem
Removing pfcq4_lan_audioonly_rtp.xml
Removing sipp
Removing sipp_scenarios/
Removing sipp_tls11method_hack.diff
Removing src/.deps/
Removing src/.dirstamp
Removing src/sipp-actions.o
Removing src/sipp-auth.o
Removing src/sipp-call.o
Removing src/sipp-call_generation_task.o
Removing src/sipp-comp.o
Removing src/sipp-deadcall.o
Removing src/sipp-infile.o
Removing src/sipp-listener.o
Removing src/sipp-logger.o
Removing src/sipp-md5.o
Removing src/sipp-message.o
Removing src/sipp-milenage.o
Removing src/sipp-ratetask.o
Removing src/sipp-reporttask.o
Removing src/sipp-rijndael.o
Removing src/sipp-rtpstream.o
Removing src/sipp-scenario.o
Removing src/sipp-screen.o
Removing src/sipp-sip_parser.o
Removing src/sipp-sipp.o
Removing src/sipp-socket.o
Removing src/sipp-socketowner.o
Removing src/sipp-sslsocket.o
Removing src/sipp-stat.o
Removing src/sipp-strings.o
Removing src/sipp-task.o
Removing src/sipp-time.o
Removing src/sipp-variables.o
Removing src/sipp-watchdog.o
Removing src/sipp-xp_parser.o
Removing src/socket.cpp.orig
Removing test-driver
[langloij@tlsrnd sipp-git]$ cmake . -DUSE_SSL=1
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
[langloij@tlsrnd sipp-git]$ make
Scanning dependencies of target sipp
[ 3%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:45:29: error: gsl/gsl_randist.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:46:25: error: gsl/gsl_cdf.h: No such file or directory
In file included from /home/langloij/sipp-git/include/scenario.hpp:32,
from /home/langloij/sipp-git/include/sipp.hpp:69,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:650: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:675: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:675: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:689: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:689: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:703: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:703: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:717: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:717: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:732: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:732: error: expected ‘;’ before ‘*’ token
/home/langloij/sipp-git/include/stat.hpp:746: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
/home/langloij/sipp-git/include/stat.hpp:746: error: expected ‘;’ before ‘*’ token
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
make[2]: *** [CMakeFiles/sipp.dir/src/call.cpp.o] Error 1
make[1]: *** [CMakeFiles/sipp.dir/all] Error 2
make: *** [all] Error 2
[langloij@tlsrnd sipp-git]$
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Walter Doekes
Sent: Thursday, January 30, 2020 3:18 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Could there be a minimum compiler version needed? I'm using gcc 4.4.7 on CentOS 6.9:
You are using heavily outdated stuff, including a machine with python2.6.
But the errors are see point to stray garbage in your directories instead.
/home/langloij/sipp-git/include/config.h:10:2: error: invalid preprocessing directive #cmakedefine
Try a:
$ git clean -nxd
Would remove CMakeCache.txt
Would remove CMakeFiles/
...
and then a:
$ git clean -fxd
Removing CMakeCache.txt
Removing CMakeFiles/
...
(After asserting that it's not removing anything important.)
That should get rid of that old config.h that's not supposed to be in include/:
$ cmake . -DUSE_SSL=1
$ find . -name config.h
./config.h
(Unless it's your cmake version that does something interesting with the paths..)
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
/home/langloij/sipp-git/include/stat.hpp:650: error: ISO C++ forbids declaration of ‘gsl_rng’ with no type
I think the new cmake stuff assumes gsl exists.. ( @rkday<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frkday&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C687bf2307c714f26dec908d7a55ce218%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159690666307374&sdata=tVQl5NA2NRz9e%2FDLvHixtGGyVwLUEDY49nP1fROdODY%3D&reserved=0> ).
Try -DUSE_GSL=:
$ cmake . -DUSE_GSL= -DUSE_SSL=1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5L7O77WBXXZRYLGYXTRAKEKPA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKKCUBQ%23issuecomment-580135430&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C687bf2307c714f26dec908d7a55ce218%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159690666317370&sdata=L9w1uPYa1ibg5bBu6tnmQHc1t8MHqJvLUNclvI4wP%2F0%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5IK4OWFUQLPP34GIQDRAKEKPANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C687bf2307c714f26dec908d7a55ce218%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159690666327364&sdata=vT%2FInpnUaM%2F0ir0oGTrwPXjNHHJcHpj2rN1y1QbpfZY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Install libgsl-dev |
No luck even after installing gsl-devel:
[root@tlsrnd sipp-git]# yum install gsl-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: less.cogeco.net
* extras: less.cogeco.net
* updates: centos.mirror.colo-serv.net
Resolving Dependencies
--> Running transaction check
---> Package gsl-devel.x86_64 0:1.13-1.el6 will be installed
--> Processing Dependency: gsl = 1.13-1.el6 for package: gsl-devel-1.13-1.el6.x86_64
--> Processing Dependency: libgslcblas.so.0()(64bit) for package: gsl-devel-1.13-1.el6.x86_64
--> Processing Dependency: libgsl.so.0()(64bit) for package: gsl-devel-1.13-1.el6.x86_64
--> Running transaction check
---> Package gsl.x86_64 0:1.13-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
gsl-devel x86_64 1.13-1.el6 base 437 k
Installing for dependencies:
gsl x86_64 1.13-1.el6 base 787 k
Transaction Summary
===============================================================================================================================================================================================
Install 2 Package(s)
Total download size: 1.2 M
Installed size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): gsl-1.13-1.el6.x86_64.rpm | 787 kB 00:00
(2/2): gsl-devel-1.13-1.el6.x86_64.rpm | 437 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.0 MB/s | 1.2 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gsl-1.13-1.el6.x86_64 1/2
Installing : gsl-devel-1.13-1.el6.x86_64 2/2
Verifying : gsl-1.13-1.el6.x86_64 1/2
Verifying : gsl-devel-1.13-1.el6.x86_64 2/2
Installed:
gsl-devel.x86_64 0:1.13-1.el6
Dependency Installed:
gsl.x86_64 0:1.13-1.el6
Complete!
(...)
[langloij@tlsrnd sipp-git]$ git clean -nxd
Would remove CMakeCache.txt
Would remove CMakeFiles/
Would remove Makefile
Would remove cmake_install.cmake
Would remove config.h
[langloij@tlsrnd sipp-git]$ git clean -fxd
Removing CMakeCache.txt
Removing CMakeFiles/
Removing Makefile
Removing cmake_install.cmake
Removing config.h
[langloij@tlsrnd sipp-git]$ cmake . -DUSE_GSL= -DUSE_SSL=1
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
[langloij@tlsrnd sipp-git]$ make
Scanning dependencies of target sipp
[ 3%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
In file included from /home/langloij/sipp-git/include/sipp.hpp:70,
from /home/langloij/sipp-git/src/call.cpp:58:
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids initialization of member ‘M_last’
/home/langloij/sipp-git/include/screen.hpp:68: error: making ‘M_last’ static
/home/langloij/sipp-git/include/screen.hpp:68: error: ISO C++ forbids in-class initialization of non-const static member ‘M_last’
make[2]: *** [CMakeFiles/sipp.dir/src/call.cpp.o] Error 1
make[1]: *** [CMakeFiles/sipp.dir/all] Error 2
make: *** [all] Error 2
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Orgad Shaneh
Sent: Thursday, January 30, 2020 10:14 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Install libgsl-dev
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5KTRFPD3IV4TIEGRUTRALVDJA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLK4OY%23issuecomment-580300347&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C03395452b3e44fce4e2708d7a5970701%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159940407625053&sdata=pEtOvBcvG0Sq0oONlo4gv7fEoBpsev77SU3l2cEOesA%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5PZ3FMKES5XS72QOQLRALVDJANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C03395452b3e44fce4e2708d7a5970701%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159940407635046&sdata=SHbTgpFEsufUPXvYiXNWovwScdAroMWi8RViUj6GYBs%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
This looks like a real error in the code. Follow the compiler error... |
I see.
Looks like something related to ScreenPrinter is not building (at least on my system).
I see that ScreenPrinter has an inline constructor (in the header file) and the initialization of bool M_last is attempted when the member variable is declared and the compiler is unhappy.
If I fix that to have the M_last initialization done in the constructor I get further, and I stumble upon other ScreenPrinter errors.
Is the current latest sipp code building successfully? or is it broken? or is it just not building on my machine due to an older compiler not supporting certain things? (should I try to fix all these issues, or should I attempt upgrading to a newer gcc?)
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Orgad Shaneh
Sent: Thursday, January 30, 2020 10:31 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
This looks like a real error in the code. Follow the compiler error...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5OM4FKRRUJKRHGBQADRALXBPA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLMX4Q%23issuecomment-580307954&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C0eec04bc27374b5f917108d7a5995806%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159950334427280&sdata=mvr43H5e5cWn0Ud5V9T0%2F%2FAnaRfRnvKjBVIygoWpGkM%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5O3NEYVBN2EKNXKIODRALXBPANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C0eec04bc27374b5f917108d7a5995806%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159950334437230&sdata=CqWQ6tYQ%2FSjbRZDiS0YELa0ZufYMyFPq6l4DbEnBy5E%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
C++11 I suppose? What compiler do you use? |
gcc 4.4.7 on CentOS 6.9.
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Orgad Shaneh
Sent: Thursday, January 30, 2020 11:15 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
C++11 I suppose? What compiler do you use?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5LDYT5WJD6ROGFJJZTRAL4KBA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLSJGQ%23issuecomment-580330650&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cf927d0ef8f084c1c7d4b08d7a59f9f7c%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159977310923798&sdata=A9bc6swbIY7CFON9QyizV3WUEqz6HBpFdWQCw1KMrCM%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5IVIE5BT4ZMXGV26MTRAL4KBANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cf927d0ef8f084c1c7d4b08d7a59f9f7c%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159977310923798&sdata=6bOALfRsIzxJaLACXd1b1qxbKeqTH6%2BgcxamVqaRCAA%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Use devtoolset-7 |
I did mention passing
You can find succesful builds behind the green check mark at every commit: |
Use devtoolset-7
Ok. I've unfortunately been pulled again to work on time-sensitive stuff at work so will be delayed by a little while once again.
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Orgad Shaneh
Sent: Thursday, January 30, 2020 11:26 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Use devtoolset-7
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5JWQBI6GYDJLOKXXNDRAL5QZA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLTPCY%23issuecomment-580335499&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Ceea1eff407af4ec8044108d7a5a11186%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159983513047404&sdata=yKJAbshGmPNojwGERG%2F79bmxkAMGwPaxvazihMI9p7Q%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5LDKJ65VKUEDAB5EQ3RAL5QZANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Ceea1eff407af4ec8044108d7a5a11186%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637159983513047404&sdata=47B%2F%2F4cUCE%2B7DumUCR08fXmLKuIjDVNccb9ca0JAlGk%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Hello again -- managed to find some time :)
So I've setup my CentOS 6.9 box to use devtoolset-7 (gcc 7.3.1) -- I get further but still get stuck with a build failure.
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
[langloij@tlsrnd sipp-git]$ cmake . -DUSE_SSL=1
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
[langloij@tlsrnd sipp-git]$ make
Scanning dependencies of target sipp
[ 3%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
[ 6%] Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
[ 9%] Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
[ 12%] Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
[ 93%] Building C object CMakeFiles/sipp.dir/src/milenage.c.o
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
Linking CXX executable sipp
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make: *** [Makefile:117: all] Error 2
[langloij@tlsrnd sipp-git]$
…--
Jeannot Langlois
Software Developer
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“
You will never reach your destination if you stop and throw stones at every dog that barks.
“
-- Winston Churchill
From: Walter Doekes
Sent: Thursday, January 30, 2020 12:03 PM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
/home/langloij/sipp-git/include/stat.hpp:44:25: error: gsl/gsl_rng.h: No such file or directory
I did mention passing -DUSE_GSL= at the bottom of my reply. (@orgads<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Forgads&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851389606&sdata=Mh80idy7y2CkUuCGOOFWqm8kI9a6WlDcVBDlXJdhlxI%3D&reserved=0>: IMHO it should build fine if you don't have any gsl-devel and don't explicitly set USE_GSL=1.)
Is the current latest sipp code building successfully? or is it broken?
You can find succesful builds behind the green check mark at every commit:
https://github.com/SIPp/sipp/commits/master<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommits%2Fmaster&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851389606&sdata=SCaPB4nCfBa6X6lVQMzlVBoUvcKL%2Bv2PqNs%2FfG58VDo%3D&reserved=0> ->
https://github.com/SIPp/sipp/runs/412872308<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fruns%2F412872308&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851399597&sdata=tP62A%2FAFtBvydEzp7SKldWhzcN%2FYrMg3uVVrF6elpRA%3D&reserved=0> ->
https://pipelines.actions.githubusercontent.com/qUVaVycWWqC7WFXb2RA1bmJzlebfHWHDxF3fd4yxdHrVNCVpNa/_apis/pipelines/1/runs/147/signedlogcontent/6?urlExpires=2020-01-30T17%3A01%3A42.8372809Z&urlSigningMethod=HMACV1&urlSignature=vPYEV%2BSRSncRTKVQjy0PGhuEc1WgMWJFLoXKLxVuIuU%3D<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpipelines.actions.githubusercontent.com%2FqUVaVycWWqC7WFXb2RA1bmJzlebfHWHDxF3fd4yxdHrVNCVpNa%2F_apis%2Fpipelines%2F1%2Fruns%2F147%2Fsignedlogcontent%2F6%3FurlExpires%3D2020-01-30T17%253A01%253A42.8372809Z%26urlSigningMethod%3DHMACV1%26urlSignature%3DvPYEV%252BSRSncRTKVQjy0PGhuEc1WgMWJFLoXKLxVuIuU%253D&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851399597&sdata=08enBXtN6gZ1BbZ6Jhh9eaEe80ilwnxcaIWMebVO%2BAU%3D&reserved=0>
^-- 2020-01-28T13:02:51.7705208Z -- The CXX compiler identification is GNU 7.4.0 and a succesful build
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5LBW4HECNC2SKIY4UTRAMB4NA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLX3BA%23issuecomment-580353412&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851409591&sdata=LUcsrwdR7F6GV2Dz3PPhiVKXqHJvZy3P18yLl4wiAr8%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5PXMLALFCASWTIU26TRAMB4NANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C5c0a3ec8de4d4cd2e3b008d7a5a644ba%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637160005851409591&sdata=wa5BvMK1Dx4jxyNINETlnVx6Wuwpth4Z9JnU2FHicKQ%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so. See this: conda-forge/ncurses-feedstock#44 It looks like CMake isn't correctly using Try this: diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock) And: $ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4 This is a repeat of 90f38e4 / #271 but now for cmake. The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed... |
Hi Walter:
(After all these months I've finally got a little bit of time to return working on this for a day or two...)
I tried your latest suggestion from February 12th (I saved the diff file as ~/walter_cmakelist_suggestion.diff) -- however I'm still failing at the linking stage.
Here's a summary of what I've done to get to that point (using CentOS 6.9, but with devtoolset-7 added on top):
==================================================================
As root:
# yum install cmake
# yum install gsl-devel
# yum install devtoolset-7
As normal user:
$ scl enable devtoolset-7 bash
$ patch -p1 < ~/walter_cmakelist_suggestion.diff
$ rm -rf CMakeCache.txt
$ rm -rf CMakeFiles/
$ cmake . -DUSE_GSL= -DUSE_SSL=1
The output from that cmake command is:
…-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- checking for one of the modules 'ncursesw;cursesw;ncurses;curses'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
$ make VERBOSE=1 -j4
The output from that make command is:
/usr/bin/cmake -H/home/langloij/sipp-git -B/home/langloij/sipp-git --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/langloij/sipp-git/CMakeFiles /home/langloij/sipp-git/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/depend
make[2]: Entering directory '/home/langloij/sipp-git'
cd /home/langloij/sipp-git && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake --color=
Dependee "/home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Dependee "/home/langloij/sipp-git/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Scanning dependencies of target sipp
make[2]: Leaving directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/build
make[2]: Entering directory '/home/langloij/sipp-git'
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 8
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 9
[ 3%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 10
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 11
[ 6%] [ 9%] [ 12%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call.cpp.o -c /home/langloij/sipp-git/src/call.cpp
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/actions.cpp.o -c /home/langloij/sipp-git/src/actions.cpp
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socket.cpp.o -c /home/langloij/sipp-git/src/socket.cpp
Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rtpstream.cpp.o -c /home/langloij/sipp-git/src/rtpstream.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 12
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/message.cpp.o -c /home/langloij/sipp-git/src/message.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 13
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/ratetask.cpp.o -c /home/langloij/sipp-git/src/ratetask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 14
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/listener.cpp.o -c /home/langloij/sipp-git/src/listener.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 15
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/logger.cpp.o -c /home/langloij/sipp-git/src/logger.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 16
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/task.cpp.o -c /home/langloij/sipp-git/src/task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 17
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/auth.cpp.o -c /home/langloij/sipp-git/src/auth.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 18
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/screen.cpp.o -c /home/langloij/sipp-git/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 19
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/stat.cpp.o -c /home/langloij/sipp-git/src/stat.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 20
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sip_parser.cpp.o -c /home/langloij/sipp-git/src/sip_parser.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 21
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o -c /home/langloij/sipp-git/src/call_generation_task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 22
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/strings.cpp.o -c /home/langloij/sipp-git/src/strings.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 23
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/reporttask.cpp.o -c /home/langloij/sipp-git/src/reporttask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 24
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sslsocket.cpp.o -c /home/langloij/sipp-git/src/sslsocket.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 25
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/scenario.cpp.o -c /home/langloij/sipp-git/src/scenario.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 26
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/time.cpp.o -c /home/langloij/sipp-git/src/time.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 27
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/infile.cpp.o -c /home/langloij/sipp-git/src/infile.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 28
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/variables.cpp.o -c /home/langloij/sipp-git/src/variables.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 29
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o -c /home/langloij/sipp-git/src/xp_parser_ut.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 30
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/watchdog.cpp.o -c /home/langloij/sipp-git/src/watchdog.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 31
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socketowner.cpp.o -c /home/langloij/sipp-git/src/socketowner.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 32
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/deadcall.cpp.o -c /home/langloij/sipp-git/src/deadcall.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 33
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser.c.o -c /home/langloij/sipp-git/src/xp_parser.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 34
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rijndael.c.o -c /home/langloij/sipp-git/src/rijndael.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 35
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/comp.c.o -c /home/langloij/sipp-git/src/comp.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 36
[ 93%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 37
Building C object CMakeFiles/sipp.dir/src/milenage.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/milenage.c.o -c /home/langloij/sipp-git/src/milenage.c
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/md5.c.o -c /home/langloij/sipp-git/src/md5.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 38
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sipp.cpp.o -c /home/langloij/sipp-git/src/sipp.cpp
Linking CXX executable sipp
/usr/bin/cmake -E cmake_link_script CMakeFiles/sipp.dir/link.txt --verbose=1
/opt/rh/devtoolset-7/root/usr/bin/c++ CMakeFiles/sipp.dir/src/call.cpp.o CMakeFiles/sipp.dir/src/actions.cpp.o CMakeFiles/sipp.dir/src/socket.cpp.o CMakeFiles/sipp.dir/src/rtpstream.cpp.o CMakeFiles/sipp.dir/src/message.cpp.o CMakeFiles/sipp.dir/src/ratetask.cpp.o CMakeFiles/sipp.dir/src/listener.cpp.o CMakeFiles/sipp.dir/src/logger.cpp.o CMakeFiles/sipp.dir/src/task.cpp.o CMakeFiles/sipp.dir/src/auth.cpp.o CMakeFiles/sipp.dir/src/screen.cpp.o CMakeFiles/sipp.dir/src/stat.cpp.o CMakeFiles/sipp.dir/src/sip_parser.cpp.o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o CMakeFiles/sipp.dir/src/strings.cpp.o CMakeFiles/sipp.dir/src/reporttask.cpp.o CMakeFiles/sipp.dir/src/sslsocket.cpp.o CMakeFiles/sipp.dir/src/scenario.cpp.o CMakeFiles/sipp.dir/src/time.cpp.o CMakeFiles/sipp.dir/src/infile.cpp.o CMakeFiles/sipp.dir/src/variables.cpp.o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o CMakeFiles/sipp.dir/src/watchdog.cpp.o CMakeFiles/sipp.dir/src/socketowner.cpp.o CMakeFiles/sipp.dir/src/deadcall.cpp.o CMakeFiles/sipp.dir/src/xp_parser.c.o CMakeFiles/sipp.dir/src/rijndael.c.o CMakeFiles/sipp.dir/src/comp.c.o CMakeFiles/sipp.dir/src/milenage.c.o CMakeFiles/sipp.dir/src/md5.c.o CMakeFiles/sipp.dir/src/sipp.cpp.o -o sipp -L/usr/local/lib -rdynamic -ldl -lncursesw -lpthread -lrt -lgsl -lgslcblas -lcrypto -lssl -Wl,-rpath,/usr/local/lib:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[2]: Leaving directory '/home/langloij/sipp-git'
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make[1]: Leaving directory '/home/langloij/sipp-git'
make: *** [Makefile:117: all] Error 2
==================================================================
I wonder if this isn't some sort of incorrect syntax around the linker stage somewhere in the Makefile -- not quite sure how this can be fixed -- I don't know cmake either...
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Walter Doekes
Sent: Wednesday, February 12, 2020 3:45 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so.
See this:
conda-forge/ncurses-feedstock#44<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Fncurses-feedstock%2Fissues%2F44&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=6tQIQJCz9DfMIAlZXpWs%2F0mx4g9t89pXH7E5%2FlWsZok%3D&reserved=0>
It looks like CMake isn't correctly using pkg-config to determine that -ltinfo should be added next to -lncurses.
Try this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
And:
$ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4
This is a repeat of 90f38e4<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommit%2F90f38e465062b6a57326269085f4511b3dae2c3d&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=FOyifVbME4N0MusUzrtVB7%2FAj8RC%2BK51%2FzdgGDWPV48%3D&reserved=0> / #271<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fissues%2F271&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=CV0ABqE%2BAV%2BWTFnGmNkj10tSwUDxe%2F6JGcSGWXRWAtM%3D&reserved=0> but now for cmake.
The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5PU25HG77HDYSBAJL3RCOZJRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELP5Q7A%23issuecomment-585095292&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=Pv4vWtGxVTyGDbchGZoIwq%2FaBVchOcCzQUM%2BQqduTPk%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5KW3K5TU754XYRUO4LRCOZJRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144224467&sdata=2lJuZWx%2FfJx7M7MvtA5YK9utOz%2BrVxWB%2BOywtnqLwGY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Good news -- with some digging I've managed to identify + fix my build issue.
It turns out that when doing dynamic linking for sipp the "libtinfo" sublibrary provided with "libncurses" was not properly listed in the "-l" parameters at the link stage.
I googled a little to learn that part of CMake and modified the diff provided by Walter to also include checking for "libtinfo" at the CMake stage:
============================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..cf2826b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,13 +113,35 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
…-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+ pkg_search_module(TINFO_LIBRARY tinfo)
+ if(TINFO_LIBRARY_FOUND)
+ set(TINFO_LIBRARY ${TINFO_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
+if(NOT TINFO_LIBRARY)
+ find_library(TINFO_LIBRARY NAMES tinfo)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
else()
message(FATAL_ERROR "libcurses / libncurses was not found; please install devel package")
endif()
+if (TINFO_LIBRARY)
+ target_link_libraries(sipp dl ${TINFO_LIBRARY})
+ target_link_libraries(sipp_unittest dl ${TINFO_LIBRARY})
+else()
+ message(FATAL_ERROR "libtinfo was not found -- please install package")
+endif()
find_library(RT_LIBRARY NAMES rt)
if(RT_LIBRARY)
============================
This builds perfectly -- so I'll submit this build fix through GitHub before returning to my rebase+integration of my RTP/SRTP bit pattern testing support.
Pardon my rustyness with GitHub as I've only used it once. I'll try my best to submit this separate build fix the correct way.
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Thursday, August 06, 2020 8:41 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Hi Walter:
(After all these months I've finally got a little bit of time to return working on this for a day or two...)
I tried your latest suggestion from February 12th (I saved the diff file as ~/walter_cmakelist_suggestion.diff) -- however I'm still failing at the linking stage.
Here's a summary of what I've done to get to that point (using CentOS 6.9, but with devtoolset-7 added on top):
==================================================================
As root:
# yum install cmake
# yum install gsl-devel
# yum install devtoolset-7
As normal user:
$ scl enable devtoolset-7 bash
$ patch -p1 < ~/walter_cmakelist_suggestion.diff
$ rm -rf CMakeCache.txt
$ rm -rf CMakeFiles/
$ cmake . -DUSE_GSL= -DUSE_SSL=1
The output from that cmake command is:
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- checking for one of the modules 'ncursesw;cursesw;ncurses;curses'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
$ make VERBOSE=1 -j4
The output from that make command is:
/usr/bin/cmake -H/home/langloij/sipp-git -B/home/langloij/sipp-git --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/langloij/sipp-git/CMakeFiles /home/langloij/sipp-git/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/depend
make[2]: Entering directory '/home/langloij/sipp-git'
cd /home/langloij/sipp-git && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake --color=
Dependee "/home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Dependee "/home/langloij/sipp-git/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Scanning dependencies of target sipp
make[2]: Leaving directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/build
make[2]: Entering directory '/home/langloij/sipp-git'
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 8
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 9
[ 3%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 10
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 11
[ 6%] [ 9%] [ 12%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call.cpp.o -c /home/langloij/sipp-git/src/call.cpp
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/actions.cpp.o -c /home/langloij/sipp-git/src/actions.cpp
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socket.cpp.o -c /home/langloij/sipp-git/src/socket.cpp
Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rtpstream.cpp.o -c /home/langloij/sipp-git/src/rtpstream.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 12
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/message.cpp.o -c /home/langloij/sipp-git/src/message.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 13
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/ratetask.cpp.o -c /home/langloij/sipp-git/src/ratetask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 14
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/listener.cpp.o -c /home/langloij/sipp-git/src/listener.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 15
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/logger.cpp.o -c /home/langloij/sipp-git/src/logger.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 16
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/task.cpp.o -c /home/langloij/sipp-git/src/task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 17
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/auth.cpp.o -c /home/langloij/sipp-git/src/auth.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 18
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/screen.cpp.o -c /home/langloij/sipp-git/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 19
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/stat.cpp.o -c /home/langloij/sipp-git/src/stat.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 20
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sip_parser.cpp.o -c /home/langloij/sipp-git/src/sip_parser.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 21
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o -c /home/langloij/sipp-git/src/call_generation_task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 22
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/strings.cpp.o -c /home/langloij/sipp-git/src/strings.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 23
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/reporttask.cpp.o -c /home/langloij/sipp-git/src/reporttask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 24
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sslsocket.cpp.o -c /home/langloij/sipp-git/src/sslsocket.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 25
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/scenario.cpp.o -c /home/langloij/sipp-git/src/scenario.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 26
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/time.cpp.o -c /home/langloij/sipp-git/src/time.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 27
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/infile.cpp.o -c /home/langloij/sipp-git/src/infile.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 28
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/variables.cpp.o -c /home/langloij/sipp-git/src/variables.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 29
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o -c /home/langloij/sipp-git/src/xp_parser_ut.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 30
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/watchdog.cpp.o -c /home/langloij/sipp-git/src/watchdog.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 31
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socketowner.cpp.o -c /home/langloij/sipp-git/src/socketowner.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 32
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/deadcall.cpp.o -c /home/langloij/sipp-git/src/deadcall.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 33
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser.c.o -c /home/langloij/sipp-git/src/xp_parser.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 34
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rijndael.c.o -c /home/langloij/sipp-git/src/rijndael.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 35
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/comp.c.o -c /home/langloij/sipp-git/src/comp.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 36
[ 93%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 37
Building C object CMakeFiles/sipp.dir/src/milenage.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/milenage.c.o -c /home/langloij/sipp-git/src/milenage.c
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/md5.c.o -c /home/langloij/sipp-git/src/md5.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 38
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sipp.cpp.o -c /home/langloij/sipp-git/src/sipp.cpp
Linking CXX executable sipp
/usr/bin/cmake -E cmake_link_script CMakeFiles/sipp.dir/link.txt --verbose=1
/opt/rh/devtoolset-7/root/usr/bin/c++ CMakeFiles/sipp.dir/src/call.cpp.o CMakeFiles/sipp.dir/src/actions.cpp.o CMakeFiles/sipp.dir/src/socket.cpp.o CMakeFiles/sipp.dir/src/rtpstream.cpp.o CMakeFiles/sipp.dir/src/message.cpp.o CMakeFiles/sipp.dir/src/ratetask.cpp.o CMakeFiles/sipp.dir/src/listener.cpp.o CMakeFiles/sipp.dir/src/logger.cpp.o CMakeFiles/sipp.dir/src/task.cpp.o CMakeFiles/sipp.dir/src/auth.cpp.o CMakeFiles/sipp.dir/src/screen.cpp.o CMakeFiles/sipp.dir/src/stat.cpp.o CMakeFiles/sipp.dir/src/sip_parser.cpp.o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o CMakeFiles/sipp.dir/src/strings.cpp.o CMakeFiles/sipp.dir/src/reporttask.cpp.o CMakeFiles/sipp.dir/src/sslsocket.cpp.o CMakeFiles/sipp.dir/src/scenario.cpp.o CMakeFiles/sipp.dir/src/time.cpp.o CMakeFiles/sipp.dir/src/infile.cpp.o CMakeFiles/sipp.dir/src/variables.cpp.o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o CMakeFiles/sipp.dir/src/watchdog.cpp.o CMakeFiles/sipp.dir/src/socketowner.cpp.o CMakeFiles/sipp.dir/src/deadcall.cpp.o CMakeFiles/sipp.dir/src/xp_parser.c.o CMakeFiles/sipp.dir/src/rijndael.c.o CMakeFiles/sipp.dir/src/comp.c.o CMakeFiles/sipp.dir/src/milenage.c.o CMakeFiles/sipp.dir/src/md5.c.o CMakeFiles/sipp.dir/src/sipp.cpp.o -o sipp -L/usr/local/lib -rdynamic -ldl -lncursesw -lpthread -lrt -lgsl -lgslcblas -lcrypto -lssl -Wl,-rpath,/usr/local/lib:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[2]: Leaving directory '/home/langloij/sipp-git'
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make[1]: Leaving directory '/home/langloij/sipp-git'
make: *** [Makefile:117: all] Error 2
==================================================================
I wonder if this isn't some sort of incorrect syntax around the linker stage somewhere in the Makefile -- not quite sure how this can be fixed -- I don't know cmake either...
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Walter Doekes
Sent: Wednesday, February 12, 2020 3:45 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so.
See this:
conda-forge/ncurses-feedstock#44<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Fncurses-feedstock%2Fissues%2F44&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=6tQIQJCz9DfMIAlZXpWs%2F0mx4g9t89pXH7E5%2FlWsZok%3D&reserved=0>
It looks like CMake isn't correctly using pkg-config to determine that -ltinfo should be added next to -lncurses.
Try this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
And:
$ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4
This is a repeat of 90f38e4<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommit%2F90f38e465062b6a57326269085f4511b3dae2c3d&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=FOyifVbME4N0MusUzrtVB7%2FAj8RC%2BK51%2FzdgGDWPV48%3D&reserved=0> / #271<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fissues%2F271&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=CV0ABqE%2BAV%2BWTFnGmNkj10tSwUDxe%2F6JGcSGWXRWAtM%3D&reserved=0> but now for cmake.
The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5PU25HG77HDYSBAJL3RCOZJRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELP5Q7A%23issuecomment-585095292&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=Pv4vWtGxVTyGDbchGZoIwq%2FaBVchOcCzQUM%2BQqduTPk%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5KW3K5TU754XYRUO4LRCOZJRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144224467&sdata=2lJuZWx%2FfJx7M7MvtA5YK9utOz%2BrVxWB%2BOywtnqLwGY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Final version of the build fix submitted as #478 (passed all checks, Linux+Darwin, shared+static):
Please merge:
#478
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..d877f03 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,10 +113,36 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
…-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+ pkg_search_module(TINFO_LIBRARY tinfo)
+ if(TINFO_LIBRARY_FOUND)
+ set(TINFO_LIBRARY ${TINFO_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
+if(NOT TINFO_LIBRARY)
+ find_library(TINFO_LIBRARY NAMES tinfo)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ if(NOT BUILD_STATIC)
+ if(TINFO_LIBRARY)
+ target_link_libraries(sipp dl ${TINFO_LIBRARY})
+ target_link_libraries(sipp_unittest dl ${TINFO_LIBRARY})
+ else()
+ message(FATAL_ERROR "libtinfo was not found -- please install package")
+ endif(TINFO_LIBRARY)
+ endif(NOT BUILD_STATIC)
+ endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
else()
message(FATAL_ERROR "libcurses / libncurses was not found; please install devel package")
endif()
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Friday, August 07, 2020 11:10 AM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Good news -- with some digging I've managed to identify + fix my build issue.
It turns out that when doing dynamic linking for sipp the "libtinfo" sublibrary provided with "libncurses" was not properly listed in the "-l" parameters at the link stage.
I googled a little to learn that part of CMake and modified the diff provided by Walter to also include checking for "libtinfo" at the CMake stage:
============================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..cf2826b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,13 +113,35 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+ pkg_search_module(TINFO_LIBRARY tinfo)
+ if(TINFO_LIBRARY_FOUND)
+ set(TINFO_LIBRARY ${TINFO_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
+if(NOT TINFO_LIBRARY)
+ find_library(TINFO_LIBRARY NAMES tinfo)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
else()
message(FATAL_ERROR "libcurses / libncurses was not found; please install devel package")
endif()
+if (TINFO_LIBRARY)
+ target_link_libraries(sipp dl ${TINFO_LIBRARY})
+ target_link_libraries(sipp_unittest dl ${TINFO_LIBRARY})
+else()
+ message(FATAL_ERROR "libtinfo was not found -- please install package")
+endif()
find_library(RT_LIBRARY NAMES rt)
if(RT_LIBRARY)
============================
This builds perfectly -- so I'll submit this build fix through GitHub before returning to my rebase+integration of my RTP/SRTP bit pattern testing support.
Pardon my rustyness with GitHub as I've only used it once. I'll try my best to submit this separate build fix the correct way.
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Thursday, August 06, 2020 8:41 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Hi Walter:
(After all these months I've finally got a little bit of time to return working on this for a day or two...)
I tried your latest suggestion from February 12th (I saved the diff file as ~/walter_cmakelist_suggestion.diff) -- however I'm still failing at the linking stage.
Here's a summary of what I've done to get to that point (using CentOS 6.9, but with devtoolset-7 added on top):
==================================================================
As root:
# yum install cmake
# yum install gsl-devel
# yum install devtoolset-7
As normal user:
$ scl enable devtoolset-7 bash
$ patch -p1 < ~/walter_cmakelist_suggestion.diff
$ rm -rf CMakeCache.txt
$ rm -rf CMakeFiles/
$ cmake . -DUSE_GSL= -DUSE_SSL=1
The output from that cmake command is:
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- checking for one of the modules 'ncursesw;cursesw;ncurses;curses'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
$ make VERBOSE=1 -j4
The output from that make command is:
/usr/bin/cmake -H/home/langloij/sipp-git -B/home/langloij/sipp-git --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/langloij/sipp-git/CMakeFiles /home/langloij/sipp-git/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/depend
make[2]: Entering directory '/home/langloij/sipp-git'
cd /home/langloij/sipp-git && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake --color=
Dependee "/home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Dependee "/home/langloij/sipp-git/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Scanning dependencies of target sipp
make[2]: Leaving directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/build
make[2]: Entering directory '/home/langloij/sipp-git'
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 8
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 9
[ 3%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 10
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 11
[ 6%] [ 9%] [ 12%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call.cpp.o -c /home/langloij/sipp-git/src/call.cpp
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/actions.cpp.o -c /home/langloij/sipp-git/src/actions.cpp
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socket.cpp.o -c /home/langloij/sipp-git/src/socket.cpp
Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rtpstream.cpp.o -c /home/langloij/sipp-git/src/rtpstream.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 12
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/message.cpp.o -c /home/langloij/sipp-git/src/message.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 13
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/ratetask.cpp.o -c /home/langloij/sipp-git/src/ratetask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 14
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/listener.cpp.o -c /home/langloij/sipp-git/src/listener.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 15
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/logger.cpp.o -c /home/langloij/sipp-git/src/logger.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 16
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/task.cpp.o -c /home/langloij/sipp-git/src/task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 17
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/auth.cpp.o -c /home/langloij/sipp-git/src/auth.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 18
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/screen.cpp.o -c /home/langloij/sipp-git/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 19
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/stat.cpp.o -c /home/langloij/sipp-git/src/stat.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 20
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sip_parser.cpp.o -c /home/langloij/sipp-git/src/sip_parser.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 21
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o -c /home/langloij/sipp-git/src/call_generation_task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 22
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/strings.cpp.o -c /home/langloij/sipp-git/src/strings.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 23
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/reporttask.cpp.o -c /home/langloij/sipp-git/src/reporttask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 24
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sslsocket.cpp.o -c /home/langloij/sipp-git/src/sslsocket.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 25
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/scenario.cpp.o -c /home/langloij/sipp-git/src/scenario.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 26
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/time.cpp.o -c /home/langloij/sipp-git/src/time.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 27
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/infile.cpp.o -c /home/langloij/sipp-git/src/infile.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 28
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/variables.cpp.o -c /home/langloij/sipp-git/src/variables.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 29
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o -c /home/langloij/sipp-git/src/xp_parser_ut.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 30
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/watchdog.cpp.o -c /home/langloij/sipp-git/src/watchdog.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 31
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socketowner.cpp.o -c /home/langloij/sipp-git/src/socketowner.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 32
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/deadcall.cpp.o -c /home/langloij/sipp-git/src/deadcall.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 33
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser.c.o -c /home/langloij/sipp-git/src/xp_parser.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 34
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rijndael.c.o -c /home/langloij/sipp-git/src/rijndael.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 35
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/comp.c.o -c /home/langloij/sipp-git/src/comp.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 36
[ 93%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 37
Building C object CMakeFiles/sipp.dir/src/milenage.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/milenage.c.o -c /home/langloij/sipp-git/src/milenage.c
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/md5.c.o -c /home/langloij/sipp-git/src/md5.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 38
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sipp.cpp.o -c /home/langloij/sipp-git/src/sipp.cpp
Linking CXX executable sipp
/usr/bin/cmake -E cmake_link_script CMakeFiles/sipp.dir/link.txt --verbose=1
/opt/rh/devtoolset-7/root/usr/bin/c++ CMakeFiles/sipp.dir/src/call.cpp.o CMakeFiles/sipp.dir/src/actions.cpp.o CMakeFiles/sipp.dir/src/socket.cpp.o CMakeFiles/sipp.dir/src/rtpstream.cpp.o CMakeFiles/sipp.dir/src/message.cpp.o CMakeFiles/sipp.dir/src/ratetask.cpp.o CMakeFiles/sipp.dir/src/listener.cpp.o CMakeFiles/sipp.dir/src/logger.cpp.o CMakeFiles/sipp.dir/src/task.cpp.o CMakeFiles/sipp.dir/src/auth.cpp.o CMakeFiles/sipp.dir/src/screen.cpp.o CMakeFiles/sipp.dir/src/stat.cpp.o CMakeFiles/sipp.dir/src/sip_parser.cpp.o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o CMakeFiles/sipp.dir/src/strings.cpp.o CMakeFiles/sipp.dir/src/reporttask.cpp.o CMakeFiles/sipp.dir/src/sslsocket.cpp.o CMakeFiles/sipp.dir/src/scenario.cpp.o CMakeFiles/sipp.dir/src/time.cpp.o CMakeFiles/sipp.dir/src/infile.cpp.o CMakeFiles/sipp.dir/src/variables.cpp.o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o CMakeFiles/sipp.dir/src/watchdog.cpp.o CMakeFiles/sipp.dir/src/socketowner.cpp.o CMakeFiles/sipp.dir/src/deadcall.cpp.o CMakeFiles/sipp.dir/src/xp_parser.c.o CMakeFiles/sipp.dir/src/rijndael.c.o CMakeFiles/sipp.dir/src/comp.c.o CMakeFiles/sipp.dir/src/milenage.c.o CMakeFiles/sipp.dir/src/md5.c.o CMakeFiles/sipp.dir/src/sipp.cpp.o -o sipp -L/usr/local/lib -rdynamic -ldl -lncursesw -lpthread -lrt -lgsl -lgslcblas -lcrypto -lssl -Wl,-rpath,/usr/local/lib:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[2]: Leaving directory '/home/langloij/sipp-git'
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make[1]: Leaving directory '/home/langloij/sipp-git'
make: *** [Makefile:117: all] Error 2
==================================================================
I wonder if this isn't some sort of incorrect syntax around the linker stage somewhere in the Makefile -- not quite sure how this can be fixed -- I don't know cmake either...
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Walter Doekes
Sent: Wednesday, February 12, 2020 3:45 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so.
See this:
conda-forge/ncurses-feedstock#44<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Fncurses-feedstock%2Fissues%2F44&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=6tQIQJCz9DfMIAlZXpWs%2F0mx4g9t89pXH7E5%2FlWsZok%3D&reserved=0>
It looks like CMake isn't correctly using pkg-config to determine that -ltinfo should be added next to -lncurses.
Try this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
And:
$ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4
This is a repeat of 90f38e4<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommit%2F90f38e465062b6a57326269085f4511b3dae2c3d&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=FOyifVbME4N0MusUzrtVB7%2FAj8RC%2BK51%2FzdgGDWPV48%3D&reserved=0> / #271<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fissues%2F271&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=CV0ABqE%2BAV%2BWTFnGmNkj10tSwUDxe%2F6JGcSGWXRWAtM%3D&reserved=0> but now for cmake.
The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5PU25HG77HDYSBAJL3RCOZJRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELP5Q7A%23issuecomment-585095292&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=Pv4vWtGxVTyGDbchGZoIwq%2FaBVchOcCzQUM%2BQqduTPk%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5KW3K5TU754XYRUO4LRCOZJRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144224467&sdata=2lJuZWx%2FfJx7M7MvtA5YK9utOz%2BrVxWB%2BOywtnqLwGY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Ok - so now that I have a proper GitHub build environment reliably working I'm able to resume my work on integration my feature with the 3.6-dev SIPP branch. On Friday I took an entire day to rebase my feature branch to the latest master branch of SIPP.
Good thing that there is CI in place: it picked up on a number of small things that could be quickly fixed.
However as I progress in fixing things, one downside on the short term is that I was using older OpenSSL APIs when I implemented the functionality back in 2016 (OpenSSL 1.0.1e-fips) and now more recent version of OpenSSL have dropped them in favor of new ones.
So I'll have to take some time on the side to fully modify/validate my "JLSRTP" implementation to use those new APIs. That'll delay things some more. At least back in 2016 I had implemented a unittests so I'll be able to compare behaviors of the old vs new APIs. Got to be cautious with encryption.
…--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Thursday, August 06, 2020 8:41 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Hi Walter:
(After all these months I've finally got a little bit of time to return working on this for a day or two...)
I tried your latest suggestion from February 12th (I saved the diff file as ~/walter_cmakelist_suggestion.diff) -- however I'm still failing at the linking stage.
Here's a summary of what I've done to get to that point (using CentOS 6.9, but with devtoolset-7 added on top):
==================================================================
As root:
# yum install cmake
# yum install gsl-devel
# yum install devtoolset-7
As normal user:
$ scl enable devtoolset-7 bash
$ patch -p1 < ~/walter_cmakelist_suggestion.diff
$ rm -rf CMakeCache.txt
$ rm -rf CMakeFiles/
$ cmake . -DUSE_GSL= -DUSE_SSL=1
The output from that cmake command is:
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- checking for one of the modules 'ncursesw;cursesw;ncurses;curses'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
$ make VERBOSE=1 -j4
The output from that make command is:
/usr/bin/cmake -H/home/langloij/sipp-git -B/home/langloij/sipp-git --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/langloij/sipp-git/CMakeFiles /home/langloij/sipp-git/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/depend
make[2]: Entering directory '/home/langloij/sipp-git'
cd /home/langloij/sipp-git && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake --color=
Dependee "/home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Dependee "/home/langloij/sipp-git/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Scanning dependencies of target sipp
make[2]: Leaving directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/build
make[2]: Entering directory '/home/langloij/sipp-git'
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 8
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 9
[ 3%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 10
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 11
[ 6%] [ 9%] [ 12%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call.cpp.o -c /home/langloij/sipp-git/src/call.cpp
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/actions.cpp.o -c /home/langloij/sipp-git/src/actions.cpp
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socket.cpp.o -c /home/langloij/sipp-git/src/socket.cpp
Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rtpstream.cpp.o -c /home/langloij/sipp-git/src/rtpstream.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 12
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/message.cpp.o -c /home/langloij/sipp-git/src/message.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 13
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/ratetask.cpp.o -c /home/langloij/sipp-git/src/ratetask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 14
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/listener.cpp.o -c /home/langloij/sipp-git/src/listener.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 15
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/logger.cpp.o -c /home/langloij/sipp-git/src/logger.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 16
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/task.cpp.o -c /home/langloij/sipp-git/src/task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 17
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/auth.cpp.o -c /home/langloij/sipp-git/src/auth.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 18
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/screen.cpp.o -c /home/langloij/sipp-git/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 19
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/stat.cpp.o -c /home/langloij/sipp-git/src/stat.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 20
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sip_parser.cpp.o -c /home/langloij/sipp-git/src/sip_parser.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 21
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o -c /home/langloij/sipp-git/src/call_generation_task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 22
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/strings.cpp.o -c /home/langloij/sipp-git/src/strings.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 23
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/reporttask.cpp.o -c /home/langloij/sipp-git/src/reporttask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 24
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sslsocket.cpp.o -c /home/langloij/sipp-git/src/sslsocket.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 25
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/scenario.cpp.o -c /home/langloij/sipp-git/src/scenario.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 26
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/time.cpp.o -c /home/langloij/sipp-git/src/time.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 27
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/infile.cpp.o -c /home/langloij/sipp-git/src/infile.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 28
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/variables.cpp.o -c /home/langloij/sipp-git/src/variables.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 29
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o -c /home/langloij/sipp-git/src/xp_parser_ut.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 30
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/watchdog.cpp.o -c /home/langloij/sipp-git/src/watchdog.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 31
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socketowner.cpp.o -c /home/langloij/sipp-git/src/socketowner.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 32
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/deadcall.cpp.o -c /home/langloij/sipp-git/src/deadcall.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 33
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser.c.o -c /home/langloij/sipp-git/src/xp_parser.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 34
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rijndael.c.o -c /home/langloij/sipp-git/src/rijndael.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 35
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/comp.c.o -c /home/langloij/sipp-git/src/comp.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 36
[ 93%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 37
Building C object CMakeFiles/sipp.dir/src/milenage.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/milenage.c.o -c /home/langloij/sipp-git/src/milenage.c
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/md5.c.o -c /home/langloij/sipp-git/src/md5.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 38
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sipp.cpp.o -c /home/langloij/sipp-git/src/sipp.cpp
Linking CXX executable sipp
/usr/bin/cmake -E cmake_link_script CMakeFiles/sipp.dir/link.txt --verbose=1
/opt/rh/devtoolset-7/root/usr/bin/c++ CMakeFiles/sipp.dir/src/call.cpp.o CMakeFiles/sipp.dir/src/actions.cpp.o CMakeFiles/sipp.dir/src/socket.cpp.o CMakeFiles/sipp.dir/src/rtpstream.cpp.o CMakeFiles/sipp.dir/src/message.cpp.o CMakeFiles/sipp.dir/src/ratetask.cpp.o CMakeFiles/sipp.dir/src/listener.cpp.o CMakeFiles/sipp.dir/src/logger.cpp.o CMakeFiles/sipp.dir/src/task.cpp.o CMakeFiles/sipp.dir/src/auth.cpp.o CMakeFiles/sipp.dir/src/screen.cpp.o CMakeFiles/sipp.dir/src/stat.cpp.o CMakeFiles/sipp.dir/src/sip_parser.cpp.o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o CMakeFiles/sipp.dir/src/strings.cpp.o CMakeFiles/sipp.dir/src/reporttask.cpp.o CMakeFiles/sipp.dir/src/sslsocket.cpp.o CMakeFiles/sipp.dir/src/scenario.cpp.o CMakeFiles/sipp.dir/src/time.cpp.o CMakeFiles/sipp.dir/src/infile.cpp.o CMakeFiles/sipp.dir/src/variables.cpp.o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o CMakeFiles/sipp.dir/src/watchdog.cpp.o CMakeFiles/sipp.dir/src/socketowner.cpp.o CMakeFiles/sipp.dir/src/deadcall.cpp.o CMakeFiles/sipp.dir/src/xp_parser.c.o CMakeFiles/sipp.dir/src/rijndael.c.o CMakeFiles/sipp.dir/src/comp.c.o CMakeFiles/sipp.dir/src/milenage.c.o CMakeFiles/sipp.dir/src/md5.c.o CMakeFiles/sipp.dir/src/sipp.cpp.o -o sipp -L/usr/local/lib -rdynamic -ldl -lncursesw -lpthread -lrt -lgsl -lgslcblas -lcrypto -lssl -Wl,-rpath,/usr/local/lib:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[2]: Leaving directory '/home/langloij/sipp-git'
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make[1]: Leaving directory '/home/langloij/sipp-git'
make: *** [Makefile:117: all] Error 2
==================================================================
I wonder if this isn't some sort of incorrect syntax around the linker stage somewhere in the Makefile -- not quite sure how this can be fixed -- I don't know cmake either...
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Walter Doekes
Sent: Wednesday, February 12, 2020 3:45 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so.
See this:
conda-forge/ncurses-feedstock#44<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Fncurses-feedstock%2Fissues%2F44&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=6tQIQJCz9DfMIAlZXpWs%2F0mx4g9t89pXH7E5%2FlWsZok%3D&reserved=0>
It looks like CMake isn't correctly using pkg-config to determine that -ltinfo should be added next to -lncurses.
Try this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
And:
$ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4
This is a repeat of 90f38e4<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommit%2F90f38e465062b6a57326269085f4511b3dae2c3d&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=FOyifVbME4N0MusUzrtVB7%2FAj8RC%2BK51%2FzdgGDWPV48%3D&reserved=0> / #271<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fissues%2F271&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=CV0ABqE%2BAV%2BWTFnGmNkj10tSwUDxe%2F6JGcSGWXRWAtM%3D&reserved=0> but now for cmake.
The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5PU25HG77HDYSBAJL3RCOZJRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELP5Q7A%23issuecomment-585095292&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=Pv4vWtGxVTyGDbchGZoIwq%2FaBVchOcCzQUM%2BQqduTPk%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5KW3K5TU754XYRUO4LRCOZJRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144224467&sdata=2lJuZWx%2FfJx7M7MvtA5YK9utOz%2BrVxWB%2BOywtnqLwGY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Alright - I have figured out the essential changes I need to do in my JLSRTP library to remove the deprecated OpenSSL API AES_ctr128_encrypt() in favor of the newer EVP_EncryptUpdate() ones (amongst others).
I see that OpenSSL >= 1.1.0 discarded the old API in favor of the new API.
What is SIPP's official position on the different OpenSSL versions? Should only the newer ones be supported or should there be backwards-compatibility for older ones as well?
If backward-compatibility is needed, can you give me a few hints on which #ifdef...#endif constructs are typically used within SIPP?
Thanks!
…--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Monday, August 10, 2020 2:41 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Ok - so now that I have a proper GitHub build environment reliably working I'm able to resume my work on integration my feature with the 3.6-dev SIPP branch. On Friday I took an entire day to rebase my feature branch to the latest master branch of SIPP.
Good thing that there is CI in place: it picked up on a number of small things that could be quickly fixed.
However as I progress in fixing things, one downside on the short term is that I was using older OpenSSL APIs when I implemented the functionality back in 2016 (OpenSSL 1.0.1e-fips) and now more recent version of OpenSSL have dropped them in favor of new ones.
So I'll have to take some time on the side to fully modify/validate my "JLSRTP" implementation to use those new APIs. That'll delay things some more. At least back in 2016 I had implemented a unittests so I'll be able to compare behaviors of the old vs new APIs. Got to be cautious with encryption.
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Jeannot Langlois
Sent: Thursday, August 06, 2020 8:41 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Hi Walter:
(After all these months I've finally got a little bit of time to return working on this for a day or two...)
I tried your latest suggestion from February 12th (I saved the diff file as ~/walter_cmakelist_suggestion.diff) -- however I'm still failing at the linking stage.
Here's a summary of what I've done to get to that point (using CentOS 6.9, but with devtoolset-7 added on top):
==================================================================
As root:
# yum install cmake
# yum install gsl-devel
# yum install devtoolset-7
As normal user:
$ scl enable devtoolset-7 bash
$ patch -p1 < ~/walter_cmakelist_suggestion.diff
$ rm -rf CMakeCache.txt
$ rm -rf CMakeFiles/
$ cmake . -DUSE_GSL= -DUSE_SSL=1
The output from that cmake command is:
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Performing Test HAVE_UDP_UH_PREFIX
-- Performing Test HAVE_UDP_UH_PREFIX - Failed
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le16toh
-- Looking for le16toh - not found
-- checking for one of the modules 'ncursesw;cursesw;ncurses;curses'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/langloij/sipp-git
$ make VERBOSE=1 -j4
The output from that make command is:
/usr/bin/cmake -H/home/langloij/sipp-git -B/home/langloij/sipp-git --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/langloij/sipp-git/CMakeFiles /home/langloij/sipp-git/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/depend
make[2]: Entering directory '/home/langloij/sipp-git'
cd /home/langloij/sipp-git && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git /home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake --color=
Dependee "/home/langloij/sipp-git/CMakeFiles/sipp.dir/DependInfo.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Dependee "/home/langloij/sipp-git/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/langloij/sipp-git/CMakeFiles/sipp.dir/depend.internal".
Scanning dependencies of target sipp
make[2]: Leaving directory '/home/langloij/sipp-git'
make -f CMakeFiles/sipp.dir/build.make CMakeFiles/sipp.dir/build
make[2]: Entering directory '/home/langloij/sipp-git'
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 8
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 9
[ 3%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 10
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 11
[ 6%] [ 9%] [ 12%] Building CXX object CMakeFiles/sipp.dir/src/call.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call.cpp.o -c /home/langloij/sipp-git/src/call.cpp
Building CXX object CMakeFiles/sipp.dir/src/actions.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/actions.cpp.o -c /home/langloij/sipp-git/src/actions.cpp
Building CXX object CMakeFiles/sipp.dir/src/socket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socket.cpp.o -c /home/langloij/sipp-git/src/socket.cpp
Building CXX object CMakeFiles/sipp.dir/src/rtpstream.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rtpstream.cpp.o -c /home/langloij/sipp-git/src/rtpstream.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 12
[ 16%] Building CXX object CMakeFiles/sipp.dir/src/message.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/message.cpp.o -c /home/langloij/sipp-git/src/message.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 13
[ 19%] Building CXX object CMakeFiles/sipp.dir/src/ratetask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/ratetask.cpp.o -c /home/langloij/sipp-git/src/ratetask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 14
[ 22%] Building CXX object CMakeFiles/sipp.dir/src/listener.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/listener.cpp.o -c /home/langloij/sipp-git/src/listener.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 15
[ 25%] Building CXX object CMakeFiles/sipp.dir/src/logger.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/logger.cpp.o -c /home/langloij/sipp-git/src/logger.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 16
[ 29%] Building CXX object CMakeFiles/sipp.dir/src/task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/task.cpp.o -c /home/langloij/sipp-git/src/task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 17
[ 32%] Building CXX object CMakeFiles/sipp.dir/src/auth.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/auth.cpp.o -c /home/langloij/sipp-git/src/auth.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 18
[ 35%] Building CXX object CMakeFiles/sipp.dir/src/screen.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/screen.cpp.o -c /home/langloij/sipp-git/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 19
[ 38%] Building CXX object CMakeFiles/sipp.dir/src/stat.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/stat.cpp.o -c /home/langloij/sipp-git/src/stat.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 20
[ 41%] Building CXX object CMakeFiles/sipp.dir/src/sip_parser.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sip_parser.cpp.o -c /home/langloij/sipp-git/src/sip_parser.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 21
[ 45%] Building CXX object CMakeFiles/sipp.dir/src/call_generation_task.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o -c /home/langloij/sipp-git/src/call_generation_task.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 22
[ 48%] Building CXX object CMakeFiles/sipp.dir/src/strings.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/strings.cpp.o -c /home/langloij/sipp-git/src/strings.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 23
[ 51%] Building CXX object CMakeFiles/sipp.dir/src/reporttask.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/reporttask.cpp.o -c /home/langloij/sipp-git/src/reporttask.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 24
[ 54%] Building CXX object CMakeFiles/sipp.dir/src/sslsocket.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sslsocket.cpp.o -c /home/langloij/sipp-git/src/sslsocket.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 25
[ 58%] Building CXX object CMakeFiles/sipp.dir/src/scenario.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/scenario.cpp.o -c /home/langloij/sipp-git/src/scenario.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 26
[ 61%] Building CXX object CMakeFiles/sipp.dir/src/time.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/time.cpp.o -c /home/langloij/sipp-git/src/time.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 27
[ 64%] Building CXX object CMakeFiles/sipp.dir/src/infile.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/infile.cpp.o -c /home/langloij/sipp-git/src/infile.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 28
[ 67%] Building CXX object CMakeFiles/sipp.dir/src/variables.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/variables.cpp.o -c /home/langloij/sipp-git/src/variables.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 29
[ 70%] Building CXX object CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o -c /home/langloij/sipp-git/src/xp_parser_ut.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 30
[ 74%] Building CXX object CMakeFiles/sipp.dir/src/watchdog.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/watchdog.cpp.o -c /home/langloij/sipp-git/src/watchdog.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 31
[ 77%] Building CXX object CMakeFiles/sipp.dir/src/socketowner.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/socketowner.cpp.o -c /home/langloij/sipp-git/src/socketowner.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 32
[ 80%] Building CXX object CMakeFiles/sipp.dir/src/deadcall.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/deadcall.cpp.o -c /home/langloij/sipp-git/src/deadcall.cpp
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 33
[ 83%] Building C object CMakeFiles/sipp.dir/src/xp_parser.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/xp_parser.c.o -c /home/langloij/sipp-git/src/xp_parser.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 34
[ 87%] Building C object CMakeFiles/sipp.dir/src/rijndael.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/rijndael.c.o -c /home/langloij/sipp-git/src/rijndael.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 35
[ 90%] Building C object CMakeFiles/sipp.dir/src/comp.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/comp.c.o -c /home/langloij/sipp-git/src/comp.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 36
[ 93%] /usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 37
Building C object CMakeFiles/sipp.dir/src/milenage.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/milenage.c.o -c /home/langloij/sipp-git/src/milenage.c
[ 96%] Building C object CMakeFiles/sipp.dir/src/md5.c.o
/opt/rh/devtoolset-7/root/usr/bin/cc -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/md5.c.o -c /home/langloij/sipp-git/src/md5.c
/usr/bin/cmake -E cmake_progress_report /home/langloij/sipp-git/CMakeFiles 38
[100%] Building CXX object CMakeFiles/sipp.dir/src/sipp.cpp.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -DHAVE_GSL -DRTP_STREAM -I/home/langloij/sipp-git/include -I/home/langloij/sipp-git/gtest/include -I/home/langloij/sipp-git/gmock/include -I/home/langloij/sipp-git -I/usr/local/include -DUSE_TLS -DUSE_OPENSSL -o CMakeFiles/sipp.dir/src/sipp.cpp.o -c /home/langloij/sipp-git/src/sipp.cpp
Linking CXX executable sipp
/usr/bin/cmake -E cmake_link_script CMakeFiles/sipp.dir/link.txt --verbose=1
/opt/rh/devtoolset-7/root/usr/bin/c++ CMakeFiles/sipp.dir/src/call.cpp.o CMakeFiles/sipp.dir/src/actions.cpp.o CMakeFiles/sipp.dir/src/socket.cpp.o CMakeFiles/sipp.dir/src/rtpstream.cpp.o CMakeFiles/sipp.dir/src/message.cpp.o CMakeFiles/sipp.dir/src/ratetask.cpp.o CMakeFiles/sipp.dir/src/listener.cpp.o CMakeFiles/sipp.dir/src/logger.cpp.o CMakeFiles/sipp.dir/src/task.cpp.o CMakeFiles/sipp.dir/src/auth.cpp.o CMakeFiles/sipp.dir/src/screen.cpp.o CMakeFiles/sipp.dir/src/stat.cpp.o CMakeFiles/sipp.dir/src/sip_parser.cpp.o CMakeFiles/sipp.dir/src/call_generation_task.cpp.o CMakeFiles/sipp.dir/src/strings.cpp.o CMakeFiles/sipp.dir/src/reporttask.cpp.o CMakeFiles/sipp.dir/src/sslsocket.cpp.o CMakeFiles/sipp.dir/src/scenario.cpp.o CMakeFiles/sipp.dir/src/time.cpp.o CMakeFiles/sipp.dir/src/infile.cpp.o CMakeFiles/sipp.dir/src/variables.cpp.o CMakeFiles/sipp.dir/src/xp_parser_ut.cpp.o CMakeFiles/sipp.dir/src/watchdog.cpp.o CMakeFiles/sipp.dir/src/socketowner.cpp.o CMakeFiles/sipp.dir/src/deadcall.cpp.o CMakeFiles/sipp.dir/src/xp_parser.c.o CMakeFiles/sipp.dir/src/rijndael.c.o CMakeFiles/sipp.dir/src/comp.c.o CMakeFiles/sipp.dir/src/milenage.c.o CMakeFiles/sipp.dir/src/md5.c.o CMakeFiles/sipp.dir/src/sipp.cpp.o -o sipp -L/usr/local/lib -rdynamic -ldl -lncursesw -lpthread -lrt -lgsl -lgslcblas -lcrypto -lssl -Wl,-rpath,/usr/local/lib:
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/sipp.dir/src/screen.cpp.o: undefined reference to symbol 'cbreak'
//lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sipp.dir/build.make:841: sipp] Error 1
make[2]: Leaving directory '/home/langloij/sipp-git'
make[1]: *** [CMakeFiles/Makefile2:64: CMakeFiles/sipp.dir/all] Error 2
make[1]: Leaving directory '/home/langloij/sipp-git'
make: *** [Makefile:117: all] Error 2
==================================================================
I wonder if this isn't some sort of incorrect syntax around the linker stage somewhere in the Makefile -- not quite sure how this can be fixed -- I don't know cmake either...
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
From: Walter Doekes
Sent: Wednesday, February 12, 2020 3:45 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
There is a undefined reference to a "cbreak()" function which I can't see anywhere in SIPP source code:
Yes, screen.cpp uses it. It's declared somewhere in the libncurses-dev include files. And it's defined either in libncurses.so or libtinfo.so.
See this:
conda-forge/ncurses-feedstock#44<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Fncurses-feedstock%2Fissues%2F44&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=6tQIQJCz9DfMIAlZXpWs%2F0mx4g9t89pXH7E5%2FlWsZok%3D&reserved=0>
It looks like CMake isn't correctly using pkg-config to determine that -ltinfo should be added next to -lncurses.
Try this:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50dfde9..1636c8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,7 +113,16 @@ if(BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(BUILD_STATIC)
-find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+find_package(PkgConfig QUIET) # import pkg_check_modules() and friends
+if(PKG_CONFIG_FOUND)
+ pkg_search_module(CURSES_LIBRARY ncursesw cursesw ncurses curses)
+ if(CURSES_LIBRARY_FOUND)
+ set(CURSES_LIBRARY ${CURSES_LIBRARY_LIBRARIES})
+ endif()
+endif()
+if(NOT CURSES_LIBRARY)
+ find_library(CURSES_LIBRARY NAMES ncursesw cursesw ncurses curses)
+endif()
if(CURSES_LIBRARY)
target_link_libraries(sipp dl ${CURSES_LIBRARY} pthread)
target_link_libraries(sipp_unittest dl ${CURSES_LIBRARY} pthread gtest gmock)
And:
$ rm -rf CMakeCache.txt CMakeFiles/ && cmake . -DUSE_SSL=1 && make VERBOSE=1 -j4
This is a repeat of 90f38e4<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fcommit%2F90f38e465062b6a57326269085f4511b3dae2c3d&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144204474&sdata=FOyifVbME4N0MusUzrtVB7%2FAj8RC%2BK51%2FzdgGDWPV48%3D&reserved=0> / #271<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fissues%2F271&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=CV0ABqE%2BAV%2BWTFnGmNkj10tSwUDxe%2F6JGcSGWXRWAtM%3D&reserved=0> but now for cmake.
The pkg-config stuff should probably be improved some, but my CMake foo is not up to speed...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%3Femail_source%3Dnotifications%26email_token%3DAJK3K5PU25HG77HDYSBAJL3RCOZJRA5CNFSM4IXD7VAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELP5Q7A%23issuecomment-585095292&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144214472&sdata=Pv4vWtGxVTyGDbchGZoIwq%2FaBVchOcCzQUM%2BQqduTPk%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5KW3K5TU754XYRUO4LRCOZJRANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7C3c81d0953cbb426ff4f808d7af97e009%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637170939144224467&sdata=2lJuZWx%2FfJx7M7MvtA5YK9utOz%2BrVxWB%2BOywtnqLwGY%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Well. If it's not too much trouble, then an ifdef would be nice. Currently we're using:
to check for < 1.1. All of this is tucked away in sslsocket.cpp. Feel free to add more of those in newly added source files, but refrain from adding openssl-checks into existing files (other than sslsocket.cpp). We don't want openssl-implementation stuff leaking back into the rest of SIPp. If it is too much trouble to add support for both openssl 1.1+ and 1.0, then I'd rather see the whole JLSRTP bit depend on openssl 1.1, so existing users are not affected by a dependency on newer openssl:
|
After checking things in details this weekend I've realized that the OpenSSL EVP_xxx() APIs have been around for a long time (e.g. even in 0.9.8) -- so simply switching to the new EVP_xxx() APIs would not require any conditional checking -- so decided to go for that.
I'm doing integration testing right now with my customized SIPP and things are looking good, meaning that I'll be able to move on to the next things on the list with the failing checks.
But after working on this for one full week I'll likely be pulled back to my "regular" job so might cause some delays again. But I did some good progress.
…--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Walter Doekes
Sent: Monday, August 17, 2020 4:17 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
What is SIPP's official position on the different OpenSSL versions? Should only the newer ones be supported or should there be backwards-compatibility for older ones as well?
Well. If it's not too much trouble, then an ifdef would be nice. Currently we're using:
#if OPENSSL_VERSION_NUMBER < 0x10100000 /* MNNFFPPS: major minor fix patch status */
to check for < 1.1.
All of this is tucked away in sslsocket.cpp. Feel free to add more of those in newly added source files, but refrain from adding openssl-checks into existing files (other than sslsocket.cpp). We don't want openssl-implementation stuff leaking back into the rest of SIPp.
If it is too much trouble to add support for both openssl 1.1+ and 1.0, then I'd rather see the whole JLSRTP bit depend on openssl 1.1, so existing users are not affected by a dependency on newer openssl:
#if defined(USE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10100000
# define USE_JLSRTP
#endif
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%23issuecomment-674734328&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449202457&sdata=aG8nXKJR%2F%2BcGw6HsP1RhZQVu18DXYejtgqtz%2BX6h44A%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5K4Q57ROGI4MERZJA3SBDRRDANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449207435&sdata=JfURccIXSCseGgsMn7MznpxaL8HAact8GDGq7dmeGvA%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Yay:
This week I've managed to fix almost all integration issues in my branch -- I'm finally catching up to the latest v3.6 :)
One last obstacle remains however -- I see three failing "github-regress" testcases in the CI tests: 0192, 0196, 0259.
Pardon my github-newbiness -- but where are those TCs located? How to debug them so I can understand/fix them (or my code)?
I did a quick grep for these numbers in my git sipp work directory but could not find any references to them.
Pointers appreciated... thanks!
…------------
TEST_SKIP_VALGRIND=1 ./regress/runtests
shell: /bin/bash -e {0}
== RUNNING TESTS ==
Testing github-#18: .
Testing github-#34: .
Testing github-#83-1: .
Testing github-#83-2: .
Testing github-#85: .
Testing github-#98: .
Testing github-#103: .
Testing github-#130: .
Testing github-#150: .
Testing github-#152: .
Testing github-#155: .
Testing github-#156: Testing github-#192: failed (SIPp UAC job failed)
Testing github-#196: failed (SIPp UAC job failed)
Testing github-#207: .
Testing github-#234: .
Testing github-#238: .
Testing github-#259: failed (SIPp UAC job failed)
Testing github-#262: .
Testing github-#276: .
Testing github-#337: .
Testing github-#364: .
Testing github-#458: .
==
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Jeannot Langlois
Sent: Monday, August 17, 2020 9:52 AM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
After checking things in details this weekend I've realized that the OpenSSL EVP_xxx() APIs have been around for a long time (e.g. even in 0.9.8) -- so simply switching to the new EVP_xxx() APIs would not require any conditional checking -- so decided to go for that.
I'm doing integration testing right now with my customized SIPP and things are looking good, meaning that I'll be able to move on to the next things on the list with the failing checks.
But after working on this for one full week I'll likely be pulled back to my "regular" job so might cause some delays again. But I did some good progress.
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Walter Doekes
Sent: Monday, August 17, 2020 4:17 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
What is SIPP's official position on the different OpenSSL versions? Should only the newer ones be supported or should there be backwards-compatibility for older ones as well?
Well. If it's not too much trouble, then an ifdef would be nice. Currently we're using:
#if OPENSSL_VERSION_NUMBER < 0x10100000 /* MNNFFPPS: major minor fix patch status */
to check for < 1.1.
All of this is tucked away in sslsocket.cpp. Feel free to add more of those in newly added source files, but refrain from adding openssl-checks into existing files (other than sslsocket.cpp). We don't want openssl-implementation stuff leaking back into the rest of SIPp.
If it is too much trouble to add support for both openssl 1.1+ and 1.0, then I'd rather see the whole JLSRTP bit depend on openssl 1.1, so existing users are not affected by a dependency on newer openssl:
#if defined(USE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10100000
# define USE_JLSRTP
#endif
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%23issuecomment-674734328&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449202457&sdata=aG8nXKJR%2F%2BcGw6HsP1RhZQVu18DXYejtgqtz%2BX6h44A%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5K4Q57ROGI4MERZJA3SBDRRDANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449207435&sdata=JfURccIXSCseGgsMn7MznpxaL8HAact8GDGq7dmeGvA%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
Nevermind -- I've found the "regress" directory which I will look at next to attempt reproducing the testcase failures locally.
…--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Jeannot Langlois
Sent: Thursday, August 20, 2020 6:45 PM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
Yay:
This week I've managed to fix almost all integration issues in my branch -- I'm finally catching up to the latest v3.6 :)
One last obstacle remains however -- I see three failing "github-regress" testcases in the CI tests: 0192, 0196, 0259.
Pardon my github-newbiness -- but where are those TCs located? How to debug them so I can understand/fix them (or my code)?
I did a quick grep for these numbers in my git sipp work directory but could not find any references to them.
Pointers appreciated... thanks!
------------
TEST_SKIP_VALGRIND=1 ./regress/runtests
shell: /bin/bash -e {0}
== RUNNING TESTS ==
Testing github-#18: .
Testing github-#34: .
Testing github-#83-1: .
Testing github-#83-2: .
Testing github-#85: .
Testing github-#98: .
Testing github-#103: .
Testing github-#130: .
Testing github-#150: .
Testing github-#152: .
Testing github-#155: .
Testing github-#156: Testing github-#192: failed (SIPp UAC job failed)
Testing github-#196: failed (SIPp UAC job failed)
Testing github-#207: .
Testing github-#234: .
Testing github-#238: .
Testing github-#259: failed (SIPp UAC job failed)
Testing github-#262: .
Testing github-#276: .
Testing github-#337: .
Testing github-#364: .
Testing github-#458: .
==
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Jeannot Langlois
Sent: Monday, August 17, 2020 9:52 AM
To: SIPp/sipp <[email protected]>; SIPp/sipp <[email protected]>
Cc: Mention <[email protected]>
Subject: RE: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
After checking things in details this weekend I've realized that the OpenSSL EVP_xxx() APIs have been around for a long time (e.g. even in 0.9.8) -- so simply switching to the new EVP_xxx() APIs would not require any conditional checking -- so decided to go for that.
I'm doing integration testing right now with my customized SIPP and things are looking good, meaning that I'll be able to move on to the next things on the list with the failing checks.
But after working on this for one full week I'll likely be pulled back to my "regular" job so might cause some delays again. But I did some good progress.
--
Jeannot Langlois
Software Developer
SIP Inspector
RFC Lawyer
Refactoring Expert
MiVoice Border Gateway Development
Mitel Networks
4000 Innovation Drive
Kanata (Ontario)
K2K 3K1
http://www.mitel.com<http://www.mitel.com/>
[email protected]<mailto:[email protected]>
x444364
(613) 691-3385 [Direct Dial]
“It's going to be hard, but hard is not impossible.”
-- Chuck Palahniuk
VACATION NOTICE: Out of office August 22nd - August 30th
From: Walter Doekes
Sent: Monday, August 17, 2020 4:17 AM
To: SIPp/sipp <[email protected]>
Cc: Jeannot Langlois <[email protected]>; Mention <[email protected]>
Subject: Re: [SIPp/sipp] Gateway RTP/SRTP bit pattern testing support (#417)
What is SIPP's official position on the different OpenSSL versions? Should only the newer ones be supported or should there be backwards-compatibility for older ones as well?
Well. If it's not too much trouble, then an ifdef would be nice. Currently we're using:
#if OPENSSL_VERSION_NUMBER < 0x10100000 /* MNNFFPPS: major minor fix patch status */
to check for < 1.1.
All of this is tucked away in sslsocket.cpp. Feel free to add more of those in newly added source files, but refrain from adding openssl-checks into existing files (other than sslsocket.cpp). We don't want openssl-implementation stuff leaking back into the rest of SIPp.
If it is too much trouble to add support for both openssl 1.1+ and 1.0, then I'd rather see the whole JLSRTP bit depend on openssl 1.1, so existing users are not affected by a dependency on newer openssl:
#if defined(USE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10100000
# define USE_JLSRTP
#endif
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSIPp%2Fsipp%2Fpull%2F417%23issuecomment-674734328&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449202457&sdata=aG8nXKJR%2F%2BcGw6HsP1RhZQVu18DXYejtgqtz%2BX6h44A%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJK3K5K4Q57ROGI4MERZJA3SBDRRDANCNFSM4IXD7VAA&data=02%7C01%7Cjeannot.langlois%40mitel.com%7Cc07821951e194ab0036608d84285f7d5%7C4bff5a2bb30d493981ff8f76138347df%7C1%7C0%7C637332490449207435&sdata=JfURccIXSCseGgsMn7MznpxaL8HAact8GDGq7dmeGvA%3D&reserved=0>.
________________________________
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
|
(By @jeannotlanglois and rebased by @orgads, as found in #381.)
I fixed some code/tests so Travis and the baseline tests are happy again.
I'm not sure the documentation is complete:
Also, a bit of code linting would be nice. (Yay for spaces around operators..)
Also, check if the new cmdline arguments all have proper defaults / have a sane name.
(And splitting off 3.6 and creating 3.7 before merging this, is a good idea.)