virtual_oss library lacks at least one symbol

From: Shawn Webb <shawn.webb_at_hardenedbsd.org>
Date: Tue, 17 Nov 2026 18:35:55 UTC
Hey all,

HardenedBSD builds base userland with BIND_NOW, which is why I think
we're hitting the following issue. The virtual_oss set of libraries
reference a symbol named voss_has_synchronization, but that symbol
doesn't seem to exist in the library.

My laptop runs HardenedBSD, and on the FreeBSD side, I'm at commit
9d2cdb3fd5741685622b0b9c0e17e22583c9ceff. HardenedBSD carries zero
modifications to lib/virtual_oss.

The error I'm seeing:

==== BEGIN LOG ====
shawn-framework-01[shawn]:/home/shawn/tmp (1) $ sudo service virtual_oss start
Starting virtual_oss config: dsp: virtual_oss: /usr/lib/virtual_oss/voss_oss.so: Undefined symbol "voss_has_synchronization"
done
==== END LOG ====

I looked for the missing symbol in the library first, but found out
that it's not defined in the library, but in the main application.

==== BEGIN LOG ====
shawn-framework-01[shawn]:/usr/src/lib/virtual_oss $ grep -rnF voss_has_synchronization 
./oss/oss.c:178:        if (voss_has_synchronization != 0 ||
./null/null.c:71:       if (voss_has_synchronization == 0)

shawn-framework-01[shawn]:/usr/src/usr.sbin/virtual_oss $ grep -rnF voss_has_synchronization
./virtual_oss/int.h:249:extern int voss_has_synchronization;
./virtual_oss/main.c:489:               if (voss_has_synchronization != 0)
./virtual_oss/main.c:492:                       voss_has_synchronization++;
./virtual_oss/main.c:524:               voss_has_synchronization--;
./virtual_oss/main.c:1621:int   voss_has_synchronization;
./virtual_oss/main.c:2244:                              if (c == 'O' && voss_has_synchronization == 0)
./virtual_oss/main.c:2245:                                      voss_has_synchronization++;
./virtual_oss/Makefile:23:              -Wl,--export-dynamic-symbol=voss_has_synchronization
==== END LOG ====

I'm curious why the symbol exists in the main application, but not in
the library.

`readelf -s /usr/sbin/virtual_oss | grep voss_has_synchronization`
returns zero results, so I'm thinking that symbol might be getting
stripped out or omitted.

More research needed, but if anyone has any suggestions, please let me
know. Remember back in that "audio is horribly broken" thread where I
mentioned that audio is 100% broken for me and I wasn't sure the
underlying cause? I wonder if this could be part of it.

Thanks,

-- 
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

Signal Username:  shawn_webb.74
Tor-ified Signal: +1 (719) 756-1197 / activist_opsec.27
https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc