Repository navigation
Open
Description
I'm trying to build unicon with lots of its features enabled (on macOS with dependencies provided by MacPorts) so I'm using:
./configure \
--prefix=/opt/local \
--enable-verbosebuild \
--enable-audio \
--enable-concurrency \
--enable-graphics \
--enable-graphics3d \
--enable-iconc \
--enable-iconcurrency \
--enable-multiprograms \
--enable-pattern \
--enable-plugins \
--enable-progs \
--enable-ssl \
--disable-database \
--disable-voip \
--with-freetype=/opt/local \
--with-ftgl=/opt/local \
--with-jpeg=/opt/local \
--with-ogg=/opt/local \
--with-openal=/opt/local \
--with-opengl=/opt/local \
--with-png=/opt/local \
--with-ssl=/opt/local/libexec/openssl3 \
--with-Xft=/opt/local \
--with-xlib=/opt/local \
--with-zlib=/opt/local \
--without-SDL \
--without-smpeg
It fails with:
[TP] tp.c
gcc -std=c11 -m64 -O2 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-parentheses-equality -I../../rt/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local -I/opt/local/libexec/openssl3/include -c tp.c
In file included from tp.c:9:
In file included from ./util.h:9:
./../h/sys.h:179:13: fatal error: 'linux/soundcard.h' file not found
#include <linux/soundcard.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
If I remove that #include, it fails later:
[ICONX RTT] raudio.r
../../bin/urtt -x raudio.r
gcc -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local -I/opt/local/libexec/openssl3/include -std=c11 -m64 -O2 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-parentheses-equality -I../../rt/include -c xraudio.c
raudio.r:890:36: error: use of undeclared identifier 'SOUND_DEVICE_NAMES'
const char *sound_device_names[] = SOUND_DEVICE_NAMES;
^
raudio.r:916:24: error: use of undeclared identifier 'SOUND_MIXER_READ_DEVMASK'
if (ioctl(mixer_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
^
raudio.r:919:24: error: use of undeclared identifier 'SOUND_MIXER_READ_STEREODEVS'
if (ioctl(mixer_fd, SOUND_MIXER_READ_STEREODEVS, &stereodevs) == -1)
^
raudio.r:923:24: error: use of undeclared identifier 'SOUND_MIXER_READ_RECSRC'
if (ioctl(mixer_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
^
raudio.r:926:24: error: use of undeclared identifier 'SOUND_MIXER_READ_RECMASK'
if (ioctl(mixer_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
^
raudio.r:929:24: error: use of undeclared identifier 'SOUND_MIXER_READ_CAPS'
if (ioctl(mixer_fd, SOUND_MIXER_READ_CAPS, &caps) == -1)
^
raudio.r:948:20: error: use of undeclared identifier 'SOUND_MIXER_NRDEVICES'
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
^
raudio.r:951:13: error: use of undeclared identifier 'SOUND_MIXER_NRDEVICES'
if (i == SOUND_MIXER_NRDEVICES) {
^
raudio.r:970:24: error: implicit declaration of function 'MIXER_WRITE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (ioctl(mixer_fd, MIXER_WRITE(device), &level) == -1) {
^
raudio.r:989:20: error: use of undeclared identifier 'SOUND_MIXER_NRDEVICES'
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
^
raudio.r:992:13: error: use of undeclared identifier 'SOUND_MIXER_NRDEVICES'
if (i == SOUND_MIXER_NRDEVICES) {
^
raudio.r:1001:27: error: implicit declaration of function 'MIXER_READ' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (ioctl(mixer_fd, MIXER_READ(device), &level) == -1)
^
raudio.r:1008:27: error: implicit declaration of function 'MIXER_READ' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (ioctl(mixer_fd, MIXER_READ(device), &level) == -1)
^
13 errors generated.
Metadata
Metadata
Assignees
Labels
No labels
Activity
marcespie commentedon Jul 15, 2026
Either you have the ossaudio subsystem elsewhere (does MacOS still have this) or you will have to tear it down and write MacOS specific code.
As a first step, you could try writing stub routines for MacOS... this is what I'm doing for OpenBSD until I figure out what it wants to do with our mixer system...