[asterisk-bugs] [JIRA] (ASTERISK-27723) [patch] BuildSystem: Enable OSS Audio Emulation Library in NetBSD.
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Tue Mar 6 13:00:13 CST 2018
Alexander Traud created ASTERISK-27723:
------------------------------------------
Summary: [patch] BuildSystem: Enable OSS Audio Emulation Library in NetBSD.
Key: ASTERISK-27723
URL: https://issues.asterisk.org/jira/browse/ASTERISK-27723
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_oss, Core/BuildSystem
Affects Versions: 15.2.2, 13.19.2
Environment: NetBSD 7.1.1
Reporter: Alexander Traud
Severity: Minor
The channel driver {{chan_oss}} uses the Open Sound System (OSS). In NetBSD, OSS is not really available but emulated. This emulation happens via the shared library [{{libossaudio.so}}|http://netbsd.gw.com/cgi-bin/man-cgi?ossaudio+3]. Therefore, to use that emulation, {{chan_oss}} has to declare a dependency on OSS. This is done in {{chan_oss}} already. The script {{./configure}} helps to detect its presence. However, in {{./configure}} only the presence of the header file is tested. Therefore, OSS_LIB stays empty, {{-lossaudio}} is not send to the linker when chan_oss is made, and therefore the final {{chan_oss}} library does not declare a dependency to {{-lossaudio}}. This can be double-checked via the tool {{ldd}}.
On the command-line interface (CLI) of Asterisk, a warning is shown that {{chan_oss}} could not be loaded: 'Undefined PLT symbol "_oss_ioctl" (symnum = 64)'.
The trick is to specify a symbol in {{./configure}}. Then, AST_EXT_LIB_CHECK checks also the library, and OSS_LIB=-lossaudio.
This issue was reported in April 2002, six years ago.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list