libsoup: Static build fails with `undefined reference`
Describe your issue
/usr/lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld: subprojects/libsoup-2.74.3/tests/redirect-test.exe.p/redirect-test.c.obj: in function `do_request_api_test':
/workspace/build/x86_64-w64-mingw32/gstreamer/../../../gstreamer/subprojects/libsoup-2.74.3/tests/redirect-test.c:220:(.text+0xd3): undefined reference to `__imp__SOUP_METHOD_POST'
/usr/lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld: subprojects/libsoup-2.74.3/tests/redirect-test.exe.p/redirect-test.c.obj: in function `do_message_api_test':
/workspace/build/x86_64-w64-mingw32/gstreamer/../../../gstreamer/subprojects/libsoup-2.74.3/tests/redirect-test.c:175:(.text+0x75e): undefined reference to `__imp__SOUP_METHOD_POST'
/usr/lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld: subprojects/libsoup-2.74.3/tests/redirect-test.exe.p/redirect-test.c.obj: in function `server_callback':
/workspace/build/x86_64-w64-mingw32/gstreamer/../../../gstreamer/subprojects/libsoup-2.74.3/tests/redirect-test.c:342:(.text+0xa11): undefined reference to `__imp__SOUP_METHOD_GET'
Expected Behavior
No linker errors
Observed Behavior
Linker errors
Setup
- Operating System: Arch Linux
- Device: Computer
- GStreamer Version: main (45806c4d)
- Command line: N/A
Steps to reproduce the bug
- open terminal
- run
meson setup /workspace/build/x86_64-w64-mingw32/gstreamer -Dauto_features=disabled --default-library=static -Dgst-full=enabled -Dgst-full-target-type=static_library --prefix=/workspace/build/x86_64-w64-mingw32/root -Dgpl=enabled -Dvpx:vp8_encoder=enabled -Dvpx:vp8_decoder=enabled -Dvpx:vp9_encoder=enabled -Dvpx:vp9_decoder=enabled -Dgst-plugins-base:app=enabled -Dgst-plugins-base:audioconvert=enabled -Dgst-plugins-base:adder=enabled -Dgst-plugins-base:videoconvertscale=enabled -Dgst-plugins-base:opus=enabled -Dgst-plugins-bad:nvcodec=enabled -Dgst-plugins-bad:svtav1=enabled -Dgst-plugins-ugly:x264=enabled -Dgst-plugins-ugly:x264_libraries=enabled -Dgst-plugins-good:vpx=enabled --reconfigure --cross-file=/workspace/meson/cross/linux-mingw-w64-64bit.txt -Dgst-plugins-good:soup=disabled -Dgst-plugins-bad:d3d11=enabled -Dgst-plugins-bad:d3d12=enabled -Dgst-full-libraries=adder,app,audioconvert,coreelements,coretracers,nvcodec,opus,svtav1,videoconvertscale,vpx,x264,d3d11,d3d12
- run
meson install -C /workspace/build/x86_64-w64-mingw32/gstreamer
How reproducible is the bug?
Always
Solutions you have tried
- Removing libsoup.wrap
- Removing dllimport/dllexport declspecs in soup-version.h.in
Edited by anonymix007