Skip to content
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

[Bug]: SIPP no longer compiles #47

Closed
1 task done
InterLinked1 opened this issue Apr 8, 2024 · 0 comments · Fixed by #48
Closed
1 task done

[Bug]: SIPP no longer compiles #47

InterLinked1 opened this issue Apr 8, 2024 · 0 comments · Fixed by #48
Assignees
Labels

Comments

@InterLinked1
Copy link
Contributor

Severity

Blocker

Versions

Git

Components/Modules

sipp 3.5.2

Operating Environment

Debian 12

Frequency of Occurrence

Constant

Issue Description

sipp, required by the test suite for many tests, no longer compiles. This is the same issue previously reported on JIRA, here: https://issues-archive.asterisk.org/ASTERISK-30395

According to @gtjoseph , we are using 3.6.1 for in house testing, and that does work, so this updates install_prereq to install a supported version of sipp that compiles properly.

Relevant log output

...
/usr/include/openssl/err.h:413:15: note: declared here
 413 | unsigned long ERR_get_error_line_data(const char **file, int *line,
     |               ^~~~~~~~~~~~~~~~~~~~~~~
mv -f src/.deps/sipp-sslinit.Tpo src/.deps/sipp-sslinit.Po
gcc -DHAVE_CONFIG_H -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP  -DHAVE_EPOLL -I. -I./include   -D__LINUX -I./include -Wall -pedantic  -g -O2 -std=gnu11 -D__LINUX -MT src/sipp-sslthreadsafe.o -MD -MP -MF src/.deps/sipp-sslthreadsafe.Tpo -c -o src/sipp-sslthreadsafe.o `test -f 'src/sslthreadsafe.c' || echo './'`src/sslthreadsafe.c
mv -f src/.deps/sipp-stat.Tpo src/.deps/sipp-stat.Po
gcc -DHAVE_CONFIG_H -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP  -DHAVE_EPOLL -I. -I./include   -D__LINUX -I./include -Wall -pedantic  -g -O2 -std=gnu11 -D__LINUX -MT src/sipp-prepare_pcap.o -MD -MP -MF src/.deps/sipp-prepare_pcap.Tpo -c -o src/sipp-prepare_pcap.o `test -f 'src/prepare_pcap.c' || echo './'`src/prepare_pcap.c
mv -f src/.deps/sipp-sslthreadsafe.Tpo src/.deps/sipp-sslthreadsafe.Po
gcc -DHAVE_CONFIG_H -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP  -DHAVE_EPOLL -I. -I./include   -D__LINUX -I./include -Wall -pedantic  -g -O2 -std=gnu11 -D__LINUX -MT src/sipp-send_packets.o -MD -MP -MF src/.deps/sipp-send_packets.Tpo -c -o src/sipp-send_packets.o `test -f 'src/send_packets.c' || echo './'`src/send_packets.c
mv -f src/.deps/sipp-prepare_pcap.Tpo src/.deps/sipp-prepare_pcap.Po
mv -f src/.deps/sipp-send_packets.Tpo src/.deps/sipp-send_packets.Po
g++ -DHAVE_CONFIG_H -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP  -DHAVE_EPOLL -I. -I./include   -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-rtpstream.o -MD -MP -MF src/.deps/sipp-rtpstream.Tpo -c -o src/sipp-rtpstream.o `test -f 'src/rtpstream.cpp' || echo './'`src/rtpstream.cpp
g++ -DHAVE_CONFIG_H -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP  -DHAVE_EPOLL -I. -I./include   -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-sipp.o -MD -MP -MF src/.deps/sipp-sipp.Tpo -c -o src/sipp-sipp.o `test -f 'src/sipp.cpp' || echo './'`src/sipp.cpp
mv -f src/.deps/sipp-variables.Tpo src/.deps/sipp-variables.Po
In file included from ./include/strings.hpp:24,
                from ./include/sipp.hpp:484,
                from src/sipp.cpp:41:
/usr/include/c++/11/cstddef:52:8: error: expected unqualified-id before string constant
  52 | extern "C++"
     |        ^~~~~
mv -f src/.deps/sipp-rtpstream.Tpo src/.deps/sipp-rtpstream.Po
gmake[1]: *** [Makefile:1852: src/sipp-sipp.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/tmp/sipp'
gmake: *** [Makefile:877: all] Error 2

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines
InterLinked1 added a commit to InterLinked1/testsuite that referenced this issue Apr 8, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: asterisk#47
InterLinked1 added a commit to InterLinked1/testsuite that referenced this issue Apr 8, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: asterisk#47
InterLinked1 added a commit to InterLinked1/testsuite that referenced this issue Apr 8, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly. This now requires cmake, so also
install cmake.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: asterisk#47
@jcolp jcolp added bug and removed triage labels Apr 8, 2024
asterisk-org-access-app bot pushed a commit that referenced this issue Apr 30, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly. This now requires cmake, so also
install cmake.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: #47
asterisk-org-access-app bot pushed a commit that referenced this issue Apr 30, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly. This now requires cmake, so also
install cmake.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: #47
asterisk-org-access-app bot pushed a commit that referenced this issue Apr 30, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly. This now requires cmake, so also
install cmake.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: #47
asterisk-org-access-app bot pushed a commit that referenced this issue Apr 30, 2024
Install SIPP 3.6.1 instead of 3.5.2, which no longer
compiles properly. This now requires cmake, so also
install cmake.

Also use python3 if possible instead of python to
avoid exiting non-zero if python3 exists but python
does not (which it no longer does on many systems
where only Python 3 is installed).

Resolves: #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants