rebuild
perl-alien-wxwidgets
not works for me (i mean. perl-alien-wxwidgets builds and detect the right wx version and install everithyng OK, but fails if, se the next statement),
perl-wx
fails as pointed out in
https://aur.archlinux.org/packages/perl-wx#comment-901006
greetigs
Ah, yes, I see, it gets wx from
perl-alien-wxwidgets
, which has not been updated after the latest wx updates :(
Thank you for the pointer.
Yes, I found
/usr/include/wx-3.0
to be strange, and, yes, but I did not look further. I have 0.9932-5 installed and I am trying to build and install 0.9932-6.
Looking further, I see:
==> Starting build()...
Checking if your kit is complete...
Looks good
'WX' is not a known MakeMaker parameter name.
Warning (mostly harmless): No library found for -lwx_gtk3u_core-3.0
Warning (mostly harmless): No library found for -lwx_baseu-3.0
Warning (mostly harmless): No library found for -lwx_gtk3u_html-3.0
Warning (mostly harmless): No library found for -lwx_gtk3u_core-3.0
Looks like the current perl-wx is looking for an older wx version or something.
/usr/include/wx-3.0
indicates old wx, either entire system is way older (like with sad case for armv6) or perl-alien-wxwidgets
needs a rebuild
Thanks for dos2unix
and wx-config
report
So, first, there is some dependency on dos2unix that is missing, but it's an easy fix.
Then, it fails to build as of a day ago or two, with:
g++ -pthread -c -I. -I.. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -I. -I. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -I. -I../.. -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.36/core_perl/CORE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ FS.c
In file included from FS.c:23:
../../cpp/wxapi.h:26:10: fatal error: wx/defs.h: No such file or directory
26 | #include <wx/defs.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:346: FS.o] Error 1
make[2]: Leaving directory '/home/mat/.cache/yay/perl-wx/src/Wx-0.9932/ext/filesys'
Investigating a bit, I see a WX_CONFIG=/usr/bin/wx-config-gtk3
in PKGBUILD, but there is no wx-config-gtk3, wxwidgets-gtk3 installs a wx-config
though. But I don't think it matters as nothing in perl-wx sources seems to look for WX_CONFIG anywhere.