cc -c -O2 -pipe -fno-strict-aliasing -D_KERNEL -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding -mno-sse -DOSS_LITTLE_ENDIAN -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/FreeBSD -I../../../kernel/nonfree/include -I../../.. lynx_hal.c -o ./lynx_hal.o In file included from lynx_hal.c:17: In file included from ./lynxone_cfg.h:4: In file included from ../../../kernel/framework/include/oss_config.h:38: In file included from ../../../kernel/framework/include/os.h:45: In file included from /usr/include/sys/systm.h:126: /usr/include/sys/kpilite.h:33:10: fatal error: 'offset.inc' file not found #include "offset.inc" ^~~~~~~~~~~~ 1 error generated. *** Error code 1 Full log: https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20181105/946773.html My poudriere and build directly from ports fails with the same result.
same for FreeBSD 12.0-RC1 GENERIC amd64
Created attachment 200844 [details] Patch to the ports tree Hi Sergey, Daniel, Would you mind to try this patch? It is not finished, but it builds for me in 12 amd64. Would you run-test it? Thanks!
(In reply to Fernando Apesteguía from comment #2) Thanks for the patch! I'll be around PC with appropriate sound hardware on wednesday the 9th to run-test it. Will be in touch as soon as possible.
Created attachment 200866 [details] Improved patch This should be much closer to the final patch. It includes some missing dependencies for ossxmix and place some variables in it proper place.
Hi Sergey, (In reply to Fernando Apesteguía from comment #4) Thank you for working out this patch ! The patch applies without issues and I was able to build OSS. Tested on: FreeBSD 12.0-RELEASE #0 r342138M Ports tree was latest I had no time to actually test OSS as such though but I may do this in the next couple of days.
Hello, I've tested the port with Asus Xonar D1 (driver oss_cmi878x0). I've got sound, working ossmix and ossxmix. Everything seems to work fine on my hardware. Thanks for the patch!
A commit references this bug: Author: fernape Date: Wed Jan 9 18:20:50 UTC 2019 New revision: 489819 URL: https://svnweb.freebsd.org/changeset/ports/489819 Log: audio/oss: unbreak in FreeBSD > 12 Unbreak port in FreeBSD 12 and 13-CURRENT. Broken most likely due to r335879. While here: * Add missing LIB_DEPENDS and USES for ossxmix * Reorder some variables PR: 233018 Reported by: sergey@akhmatov.ru Changes: head/audio/oss/Makefile head/audio/oss/files/patch-kernel_OS_FreeBSD_wrapper_bsddefs.h head/audio/oss/files/patch-setup_srcconf__freebsd.inc
Committed, Thanks for reporting and testing!
Re-open pending MFH to quarterly
(In reply to Kubilay Kocak from comment #9) Awaiting authorization from ports-secteam@
A commit references this bug: Author: fernape Date: Tue Jan 15 21:28:28 UTC 2019 New revision: 490428 URL: https://svnweb.freebsd.org/changeset/ports/490428 Log: MFH: r489819 r490082 audio/oss: unbreak in FreeBSD > 12 Unbreak port in FreeBSD 12 and 13-CURRENT. Broken most likely due to r335879. While here: * Add missing LIB_DEPENDS and USES for ossxmix * Reorder some variables PR: 233018 Reported by: sergey@akhmatov.ru Approved by: ports-secteam (miwi) Changes: _U branches/2019Q1/ branches/2019Q1/audio/oss/Makefile branches/2019Q1/audio/oss/files/patch-kernel_OS_FreeBSD_wrapper_bsddefs.h branches/2019Q1/audio/oss/files/patch-setup_srcconf__freebsd.inc