Package Details: perl-wx 0.9932-6

Git Clone URL: https://aur.archlinux.org/perl-wx.git (read-only, click to copy)
Package Base: perl-wx
Description: Interface to the wxWidgets cross-platform GUI toolkit
Upstream URL: https://metacpan.org/dist/Wx
Licenses: GPL, PerlArtistic
Submitter: None
Maintainer: swiftgeek
Last Packager: swiftgeek
Votes: 60
Popularity: 0.041145
First Submitted: 2007-09-20 07:29 (UTC)
Last Updated: 2023-02-08 12:29 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 13 Next › Last »

Yinameah commented on 2022-12-31 10:23 (UTC)

I'm also having this error :

No such 'link' library: 'adv' at ....

I don't know the first think about perl, so it's difficult to understand what's going on, but I'm available to try things if that can help

micwoj92 commented on 2022-08-29 09:22 (UTC)

I'm getting different error

==> Starting build()...
No such 'link' library: 'adv' at /home/micwoj92/perl-wx/src/Wx-0.9932/build/Wx/build/MakeMaker.pm line 212.

======================================================================
For installation instructions and further help please see
docs/INSTALL.pod

For command line switches help use:
perl Makefile.PL --help
======================================================================

==> ERROR: A failure occurred in build().
    Aborting...

bartus commented on 2022-07-17 16:56 (UTC) (edited on 2022-07-17 16:58 (UTC) by bartus)

Does this package need some specially primed env to build?

I've tried it on both my local installation and in extra-x86_64-build: both failed.

$ extra-x86_64-build -r /tmp/perl-wx/build -- -I /home/_pacman_cache/aur/perl-alien-wxwidgets-0.69-1-any.pkg.tar.zst -I /home/_pacman_cache/aur/perl-extutils-xspp-0.18-2-any.pkg.tar.zst
...
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for Wx
Writing MYMETA.yml and MYMETA.json

======================================================================
wxWidgets minimum supported version 2.007001 is missing.
You will need to re-run Makefile.PL after it is installed.
You must install wxWidgets using Alien::wxWidgets.
======================================================================

======================================================================
For installation instructions and further help please see
docs/INSTALL.pod

For command line switches help use:
perl Makefile.PL --help
======================================================================

==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
make: *** [Makefile:1175: Makefile] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /tmp/perl-wx/build/extra-x86_64/bartus/build

bkb commented on 2022-07-17 11:14 (UTC)

All these wx things are basically broken. Some needs a newer version, some needs the old one. A long chain of dependency made it impossible to even switch from old to new or new to old, without uninstalling nearly the OS

The_Snapdragon commented on 2022-07-16 00:13 (UTC)

Because of the update of wxwidgets this package can no longer be compiled

yochananmarqos commented on 2022-07-03 18:20 (UTC)

@Alad: Aha! I had actually downloaded that patch earlier, but completely forgot to try it.

Alad commented on 2022-07-03 18:13 (UTC) (edited on 2022-07-03 18:14 (UTC) by Alad)

I found some patches from Fedora, especially this one:

https://src.fedoraproject.org/rpms/perl-Wx/raw/f36/f/gtk3.patch

Upstream is dead as far as I can see

edit: builds fine with the gtk3.patch 👍

yochananmarqos commented on 2022-07-03 17:48 (UTC)

This currently fails to build. Open upstream issue: https://rt.cpan.org/Public/Bug/Display.html?id=128994

Alad commented on 2022-07-03 17:32 (UTC) (edited on 2022-07-03 17:40 (UTC) by Alad)

This doesn't build with regular makepkg either. Same error from before:

==> Starting build()...
Searching configuration for:
wxWidgets 3-3.001 for gtk2; compiler compatibility: gcc 3.4; options: unicode

Available configurations:
wxWidgets 3.000005 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu
Compilation failed in require at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.

edit: it works with wxgtk3, the same package perl-alien-wxwidgets uses. Diff:

diff --git a/PKGBUILD b/PKGBUILD
index 5981647..a48ac25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgdesc="Interface to the wxWidgets cross-platform GUI toolkit"
 arch=('x86_64')
 url="https://metacpan.org/dist/Wx"
 license=('GPL' 'PerlArtistic')
-depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk2')
+depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk3')
 checkdepends=('xorg-server-xvfb')
 options=('!emptydirs')
 source=("https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-$pkgver.tar.gz")
@@ -19,8 +19,8 @@ build(){
   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
   perl Makefile.PL \
     --wx-unicode \
-    --wx-version=$(wx-config --version | cut -d . -f 1-2) \
-    --wx-toolkit=gtk2 \
+    --wx-version=$(wx-config-gtk3 --version | cut -d . -f 1-2) \
+    --wx-toolkit=gtk \
     INSTALLDIRS=vendor
   make
 }

edit2: almost...

ake[2]: Entering directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid'
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp"  -noprototypes -nolinenumbers  -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid/../../typemap' -typemap '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid/typemap'  PropertyGrid.xs > PropertyGrid.xsc
Running Mkbootstrap for PropertyGrid ()
chmod 644 "PropertyGrid.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- PropertyGrid.bs ../../blib/arch/auto/Wx/PropertyGrid/PropertyGrid.bs 644
cp lib/Wx/PropertyGrid.pm ../../blib/lib/Wx/PropertyGrid.pm
Warning: duplicate function definition 'GetSelection' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGrid/g" xspp/PropertyGridInterface.h, line 1148
Warning: duplicate function definition 'GetSelection' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGridManager/g" xspp/PropertyGridInterface.h, line 1148
Warning: duplicate function definition 'GetPropertyByLabel' detected in /usr/bin/perl -pe "s/PGPGridInterfaceBase/PropertyGridPage/g" xspp/PropertyGridInterface.h, line 519
mv PropertyGrid.xsc PropertyGrid.c
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   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.34/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__   PropertyGrid.c
PropertyGrid.c: In function ‘void XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’:
PropertyGrid.c:27130:49: error: call of overloaded ‘wxVariant(wxColour&)’ is ambiguous
27130 |                 wxVariant value = wxVariant(*col);
      |                                                 ^
In file included from ../../cpp/helpers.h:19,
                 from ../../cpp/wxapi.h:170,
                 from PropertyGrid.c:23:
/usr/include/wx-3.0/wx/variant.h:187:5: note: candidate: ‘wxVariant::wxVariant(bool, const wxString&)’
  187 |     wxVariant(bool val, const wxString& name = wxEmptyString);
      |     ^~~~~~~~~
/usr/include/wx-3.0/wx/variant.h:111:5: note: candidate: ‘wxVariant::wxVariant(const wxAny&)’
  111 |     wxVariant(const wxAny& any);
      |     ^~~~~~~~~
make[2]: *** [Makefile:346: PropertyGrid.o] Error 1
make[2]: Leaving directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext/propgrid'
make[1]: *** [Makefile:562: subdirs] Error 2
make[1]: Leaving directory '/home/archie/.cache/aurutils/sync/perl-wx/src/Wx-0.9932/ext'
make: *** [Makefile:682: subdirs] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

yar commented on 2021-11-10 11:08 (UTC)

I'm unable to build with devtools/makechrootpkg, errors very similar to what @ibrokemypie got almost 4 years ago. I can't figure out why. Could you please test with devtools to confirm?