Index | Thread | Search

From:
Thomas Frohwein <tfrohwein@fastmail.com>
Subject:
Re: New: sdl12-compat - SDL1 reimplentation layered on top of SDL2
To:
yaydn@protonmail.com
Cc:
Stuart Henderson <stu@spacehopper.org>, "bentley@openbsd.org" <bentley@openbsd.org>, "ports@openbsd.org" <ports@openbsd.org>
Date:
Thu, 20 Aug 2026 11:12:51 -0700

Download raw body.

Thread
On Wed, 19 Aug 2026 12:29:37 +0000
yaydn@protonmail.com wrote:

> And the rebuilt vlc builds with this where it did not previously. Also
> plays as well.

Are you sure you had the update applied? Because I still run into the
segfault:

libtool: link: cc -o .libs/vlc-cache-gen -O2 -pipe -Werror=unknown-warning-option -Werror=invalid-command-line-argument -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -fvisibility=hidden -fno-math-errno -funsafe-math-optimizations -fno-rounding-math -fcx-limited-range -funroll-loops -fomit-frame-pointer -fstack-protector-strong cachegen.o /usr/ports/pobj/vlc-3.0.23/vlc-3.0.23/compat/.libs/libcompat.a -L.libs -lm -lvlc -lvlccore -lintl -liconv -lidn -lpthread -lexecinfo -ldbus-1 -Wl,-rpath-link,/usr/local/lib
cc: warning: argument unused during compilation: '-fcx-limited-range' [-Wunused-command-line-argument]
rm -f ../modules/plugins.dat
if test "x86_64-unknown-openbsd8.0" = "x86_64-unknown-openbsd8.0"; then \
        ./vlc-cache-gen `realpath ../modules` ; \
else \
        echo "Cross-compilation: cache generation skipped!" ; \
fi
vlc-cache-gen:/usr/local/lib/libnfs.so.3.0: /usr/lib/libc.so.103.0 : WARNING: symbol(_null_auth) size mismatch, relink your program
Segmentation fault (core dumped)

Of note, I was only able to compile vlc this far after building
devel/sdl-image from scratch rather than installing the package because
otherwise it would also look for libSDL.la

I think we need to figure out what's going wrong with x11/vlc before
sdl12-compat is ready. Here is what `egdb bin/.libs/vlc-cache-gen
bin/vlc-cache-gen.core` gets me, in case this helps with figuring out
the issue:

Program terminated with signal SIGSEGV, Segmentation fault.
[...]
(gdb) bt full
#0  0x00000ce9c66c60df in _dl_unload_dlopen () at /usr/src/libexec/ld.so/library_subr.c:497         
        node = <optimized out>
#1  0x00000ce9c66bb7f2 in _dl_dtors () at /usr/src/libexec/ld.so/loader.c:204
No locals.
#2  0x00000cea7a5276c2 in _libc___cxa_finalize (dso=0x0) at /usr/src/lib/libc/stdlib/atexit.c:177   
        call_depth = 1
        pgsize = 4096
        p = <optimized out>
        n = <optimized out>
        fn = {fn_ptr = 0xce9c66bb7e0 <_dl_dtors>, fn_arg = 0x0, fn_dso = <optimized out>}
        q = <optimized out>
#3  0x00000cea7a54df05 in _libc_exit (status=0) at /usr/src/lib/libc/stdlib/exit.c:54
No locals.
#4  0x00000ce78b344c02 in _start ()
No symbol table info available.