FS#79130 - [wxwidgets-qt5] linking failed with wxWidgets Qt5 3.2.2.1-1

Attached to Project: Arch Linux
Opened by Takina Lina (0tkl) - Monday, 17 July 2023, 16:49 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 18 July 2023, 07:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When building and linking a minimum example, the linker reports: undefined reference to `wxSoundData::DecRef()' and `wxSoundData::IncRef()'. Add -DwxUSE_LIBSDL=OFF to Qt5 parts in PKGBUILD can fix this problem.

   1.cpp (0.2 KiB)
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 18 July 2023, 07:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  wxwidgets-qt5 3.2.2.1-2
Comment by Toolybird (Toolybird) - Monday, 17 July 2023, 20:57 GMT
> building and linking

The bug template specifically asks for "Steps to reproduce:". Please provide the exact steps you used (or a Makefile etc).
Comment by Takina Lina (0tkl) - Tuesday, 18 July 2023, 01:49 GMT
$ g++ 1.cpp -c `wx-config-qt --cxxflags` -o 1.o
$ g++ 1.o -o 1 `wx-config-qt --libs`
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/libwx_qtu_core-3.2.so: undefined reference to `wxSoundData::IncRef()'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/libwx_qtu_core-3.2.so: undefined reference to `wxSoundData::DecRef()'
collect2: error: ld returned 1 exit status

Then I modified the PKGBUILD of wxwidgets-qt5 (see the patch) and built it on my local computer. No errors when I build 1.cpp again.
Comment by Toolybird (Toolybird) - Tuesday, 18 July 2023, 06:37 GMT