Summary: | ASTERISK-30296: Undefined symbol on naive RockyLinux 8 system | ||
Reporter: | Tilghman Lesher (tilghman) | Labels: | |
Date Opened: | 2022-11-10 10:52:53.000-0600 | Date Closed: | 2022-11-11 13:30:24.000-0600 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_pjsip |
Versions: | 20.0.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Optimizations remove the symbol pjsip_tls_transport_restart with a naive install of Asterisk 20.0.0 on RockyLinux 8. Turning on DONT_OPTIMIZE resolves the problem.
ERROR[166734]: loader.c:2513 load_modules: Error loading module 'res_pjsip.so': /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: pjsip_tls_transport_restart # strings main/libasteriskpj.so.2 |grep transport_restart pjsip_tcp_transport_restart pjsip_udp_transport_restart2 pjsip_udp_transport_restart pjsip_tcp_transport_restart pjsip_udp_transport_restart2 pjsip_udp_transport_restart transport_restarted pjsip_udp_transport_restart2 pjsip_udp_transport_restart pjsip_tcp_transport_restart After turning on DONT_OPTIMIZE: # strings main/libasteriskpj.so.2 |grep transport_restart pjsip_udp_transport_restart2 pjsip_tls_transport_restart pjsip_tcp_transport_restart pjsip_udp_transport_restart pjsip_udp_transport_restart pjsip_udp_transport_restart2 pjsip_tcp_transport_restart pjsip_tls_transport_restart transport_restarted pjsip_tls_transport_restart pjsip_udp_transport_restart2 pjsip_udp_transport_restart pjsip_tcp_transport_restart | ||
Comments: | By: Asterisk Team (asteriskteam) 2022-11-10 10:52:57.173-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur. Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/]. By: George Joseph (gjoseph) 2022-11-10 11:06:18.898-0600 Are you using the bundled pjproject or external? If using external, can you try bundled as a test? Can you provide... * gcc and binutils versions * Exact ./configure command line. * The resulting compile and link commands for res_pjsip.so (make NOISY_BUILD=yes) By: Tilghman Lesher (tilghman) 2022-11-10 13:14:01.959-0600 I am using the bundled pjproject. {code} # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.rockylinux.org/ --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC) # rpm -qa |grep binutils binutils-2.30-113.el8.x86_64 binutils-devel-2.30-113.el8.x86_64 ./configure --libdir=/usr/lib64 --with-jansson-bundled=yes gcc -o res_pjsip.o -c res_pjsip.c -MD -MT res_pjsip.o -MF .res_pjsip.o.d -MP -pthread -I/root/asterisk-20.0.0/include -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -march=native -fPIC -DAST_MODULE=\"res_pjsip\" -DAST_MODULE_SELF_SYM=__internal_res_pjsip_self -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -I/root/asterisk-20.0.0/third-party/pjproject/source/pjlib/include -I/root/asterisk-20.0.0/third-party/pjproject/source/pjlib-util/include -I/root/asterisk-20.0.0/third-party/pjproject/source/pjnath/include -I/root/asterisk-20.0.0/third-party/pjproject/source/pjmedia/include -I/root/asterisk-20.0.0/third-party/pjproject/source/pjsip/include /root/asterisk-20.0.0/build_tools/make_linker_version_script res_pjsip "" "/root/asterisk-20.0.0" gcc -o res_pjsip.so -pthread -shared -Wl,--version-script,res_pjsip.exports,--warn-common res_pjsip.o res_pjsip/security_events.o res_pjsip/pjsip_options.o res_pjsip/config_global.o res_pjsip/pjsip_transport_events.o res_pjsip/pjsip_message_filter.o res_pjsip/pjsip_resolver.o res_pjsip/config_system.o res_pjsip/config_domain_aliases.o res_pjsip/config_transport.o res_pjsip/pjsip_distributor.o res_pjsip/pjsip_configuration.o res_pjsip/presence_xml.o res_pjsip/pjsip_session.o res_pjsip/location.o res_pjsip/pjsip_global_headers.o res_pjsip/pjsip_transport_management.o res_pjsip/pjsip_cli.o res_pjsip/config_auth.o res_pjsip/pjsip_scheduler.o {code} By: George Joseph (gjoseph) 2022-11-11 06:13:17.691-0600 I tried this yesterday in a Rocky 8 docker container using the same versions and it worked fine. If you're still around today, can you reproduce and attach a zip file with the following files... * config.log * config.status * makeopts * menuselect.makeopts * menuselect.makedeps * menuselect-tree * include/asterisk/autoconfig.h Also try after running ./bootstrap.sh to re-create ./configure. Oh, anything non-standard about the environment? For instance, are you using compat-openssl10-1.0.2o instead of openssl-1.1.1.k? By: Tilghman Lesher (tilghman) 2022-11-11 13:29:53.537-0600 Well, for whatever reason, whatever got dislodged by setting DONT_OPTIMIZE is not repeatable. Weirdly, before I set that flag, I did do a 'make distclean', and the problem remained. I don't have any idea for what could explain this. |