On Tue, Nov 05, 2024 at 09:39:38AM -0700, Thomas Frohwein wrote:
> CVSROOT: /cvs
> Module name: ports
> Changes by: [email protected] 2024/11/05 09:39:38
>
> Modified files:
> devel/sdl2 : Makefile
>
> Log message:
> Enable wayland support in sdl2. Some testing and ok landry@
This is somewhat broken.
As you can see during the build:
cc -O2 -pipe -g -I/usr/local/include -DUSING_GENERATED_CONFIG_H -Iinclude
-I/exopi-obj/pobj/sdl2-2.30.9/SDL2-2.30.9/include -idirafter
/exopi-obj/pobj/sdl2-2.30.9/SDL2-2.30.9/src/video/khronos
-DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR
_VERSION=30 -DSDL_BUILD_MICRO_VERSION=9 -mmmx -m3dnow -msse -msse2 -msse3 -Wall
-Wno-unused-local-typedefs -fno-strict-aliasing -fvisibility=hidden
-Wdeclaration-after-statement -Werror=declaration-after-statement
-I/usr/X11R6/include -I/
usr/X11R6/include -I/usr/X11R6/include/libdrm -I/usr/X11R6/include
-I/usr/local/include -I/usr/local/include/libepoll-shim -Igen -DHAVE_USBHID_H
-DUSBHID_UCR_DATA -DUSBHID_NEW -D_REENTRANT -MMD -MT
build/SDL_waylanddatamanager.lo -c /exop
i-obj/pobj/sdl2-2.30.9/SDL2-2.30.9/src/video/wayland/SDL_waylanddatamanager.c
-fPIC -DPIC -o build/.libs/SDL_waylanddatamanager.o
/exopi-obj/pobj/sdl2-2.30.9/SDL2-2.30.9/src/video/wayland/SDL_waylanddatamanager.c:78:5:
warning: call to undeclared function 'sigtimedwait'; ISO C99 and later do not
support implicit function declarations [-Wimplicit-function-declaration
]
sigtimedwait(&sig_set, 0, &zerotime);
^
1 warning generated.
Which will trigger issues in some dependent ports.
Here's an example with devel/codeblocks:
/usr/bin/libtool --tag=CXX --mode=link c++ -g -O2 -pipe -g -std=c++11
-Winvalid-pch -fPIC -fexceptions -L/usr/local/lib -o codeblocks app.o
appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o
cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o
debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o
disassemblydlg.o dlgabout.o dlgaboutplugin.o editkeywordsdlg.o
editorconfigurationdlg.o environmentsettingsdlg.o examinememorydlg.o
find_replace.o goto_file.o infopane.o main.o notebookstyles.o printdlg.o
projectmanagerui.o projectdepsdlg.o projectoptionsdlg.o recentitemslist.o
scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o
switcherdlg.o threadsdlg.o virtualbuildtargetsdlg.o watchesdlg.o
../sdk/libcodeblocks.la -L/usr/local/lib -pthread -L/usr/X11R6/lib
-L/usr/X11R6/lib -lwx_gtk3u_aui-3.2 -lwx_gtk3u_propgrid-3.2
-lwx_gtk3u_richtext-3.2 -lwx_gtk3u_xrc-3.2 -lwx_gtk3u_html-3.2
-lwx_gtk3u_qa-3.2 -lwx_gtk3u_core-3.2 -lwx_baseu_xml-3.2 -lwx_baseu_net-3.2
-lwx_baseu-3.2 -L/usr/local/lib -Wl,-rpath-link,/usr/X11R6/lib -lgtk-3
-lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject
-lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lpthread
libtool: link: c++ -o .libs/codeblocks -pthread -g -O2 -pipe -g -std=c++11
-Winvalid-pch -fPIC -fexceptions -Wl,-rpath-link -Wl,/usr/X11R6/lib app.o
appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o
cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o
debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o
disassemblydlg.o dlgabout.o dlgaboutplugin.o editkeywordsdlg.o
editorconfigurationdlg.o environmentsettingsdlg.o examinememorydlg.o
find_replace.o goto_file.o infopane.o main.o notebookstyles.o printdlg.o
projectmanagerui.o projectdepsdlg.o projectoptionsdlg.o recentitemslist.o
scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o
switcherdlg.o threadsdlg.o virtualbuildtargetsdlg.o watchesdlg.o -L.libs
-lcodeblocks -lwx_gtk3u_aui-3.2 -lwx_gtk3u_propgrid-3.2 -lwx_gtk3u_richtext-3.2
-lwx_gtk3u_xrc-3.2 -lwx_gtk3u_html-3.2 -lwx_gtk3u_qa-3.2 -lwx_gtk3u_core-3.2
-lwx_baseu_xml-3.2 -lwx_baseu_net-3.2 -lwx_baseu-3.2 -lgdk-3 -lpangocairo-1.0
-lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgobject-2.0
-lglib-2.0 -lintl -lpthread -liconv -lm -lz -lfreetype -lexpat -lxcb -lX11
-lXext -lXrender -lXfixes -lexecinfo -lICE -lgmodule-2.0 -lgio-2.0 -laspell
-lXi -lsndio -lsamplerate -lXcursor -lXrandr -lXss -lwayland-egl
-lwayland-client -lwayland-cursor -lxkbcommon -lusbhid -lgpg-error -lngtcp2
-lssl -lcrypto -lnghttp3 -lngtcp2_crypto_quictls -lnghttp2 -lgtk-3 -lpcre2-8
-lffi -lpng -ljpeg -lfontconfig -lXau -lXdmcp -lxcb-render -lxcb-shm -lpixman-1
-lfribidi -lgraphite2 -lc++ -lc++abi -lepoxy -lpangoft2-1.0 -lepoll-shim
-lXdamage -lXcomposite -lXinerama -latk-1.0 -latk-bridge-2.0 -latspi -ldbus-1
-lgthread-2.0 -lXxf86vm -lSM -lgspell-1 -lenchant-2 -licuuc -licudata -lnotify
-lXtst -lSDL2 -ltiff -lLerc -llzma -lzstd -lsecret-1 -lgcrypt -lcurl -lpcre2-32
-lmspack -Wl,-rpath-link,/usr/local/lib,-rpath-link,/usr/X11R6/lib
ld: error: undefined reference due to --no-allow-shlib-undefined: sigtimedwait
>>> referenced by .libs/libSDL2.so.0.15
--
Antoine