Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CentOS7 installation of rtpengine with the following error undefined reference to 'av_get_default_channel_layout'

Open
#1,746 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, centos
Domain
build-system

Research direction

The failing link is for daemon/fix_frame_channel_layout.h (generated by the make rule for lib/fix_frame_channel_layout-04.h); line 9 calls av_get_default_channel_layout, a symbol dropped from newer FFmpeg/libav, so check how the build picks the compatibility header variant. The link line also shows '-L$(exec_prefix)/lib64' and a shell error 'exec_prefix: command not found', so inspect the Makefile's libav/pkg-config detection and library paths. Done means the daemon links on this CentOS 7 setup, either with the FFmpeg version this rtpengine release expects or the matching fix_frame_channel_layout variant.

Written by the indexing model from the issue text.

Description

hi:
I have the following error when installing rtpengine in centos source code
My installed version:
rtpengine-mr10.3.1.7

cc -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -pthread -fno-strict-aliasing -std=c99 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/libxml2 -pthread -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DWITH_IPTABLES_OPTION -I. -I../kernel-module/ -I../lib/ -I../include/ -D_GNU_SOURCE -DWITH_TRANSCODING -I/usr/include/mysql -DRE_PLUGIN_DIR=""/usr/lib/rtpengine"" -DHAVE_BCG729 -I/usr/local/include/ -DHAVE_MQTT -DRTPENGINE_VERSION=""undefined"" -rdynamic fix_frame_channel_layout-test.c -lm -lglib-2.0 -pthread -lgthread-2.0 -lglib-2.0 -lz -lpcre -lcrypto -lssl -lcrypto -levent_pthreads -levent -lpcap -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lhiredis -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lwebsockets -lip4tc -lip6tc -L$(exec_prefix)/lib64 -lspandsp -ltiff -lm -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto -L/usr/local/lib64/ -lbcg729 -lmosquitto -o fix_frame_channel_layout-test
/bin/sh: exec_prefix: command not found
/tmp/ccWDDX8n.o: In function fix_frame_channel_layout': /root/rtpengine-mr10.3.1.7/daemon/fix_frame_channel_layout.h:9: undefined reference to av_get_default_channel_layout'
collect2: error: ld returned 1 exit status
make[3]: *** [fix_frame_channel_layout-test] Error 1
make[3]: Leaving directory /root/rtpengine-mr10.3.1.7/daemon' Failed build with ../lib/fix_frame_channel_layout-04.h make[2]: *** [fix_frame_channel_layout.h] Error 1 rm sdp.strhash.c control_ng.strhash.c call_interfaces.strhash.c janus.strhash.c make[2]: Leaving directory /root/rtpengine-mr10.3.1.7/daemon'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rtpengine-mr10.3.1.7/daemon'
make: *** [all] Error 2

How can I solve it?thank you

Dominant language
Perl
Stars
992
Forks
459
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sipwise/rtpengine

All issues in sipwise/rtpengine

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.