Mon Apr 01 11:28:43 2019: Request 128994 was acted upon.
Transaction: Ticket created by imd...@gmail.com
       Queue: Wx
     Subject: Perl Wx fails to Build -- ProperyGrid.c : error: call of 
overloaded ‘wxVariant(wxColour&)’ is ambiguous
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: imd...@gmail.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128994 >


 Hello,
When I install webkitgtk3 on my centos 7. I cannot build Wx. --

--
uname -a xxxxx  3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux

-----
I built  wxWidgets-3.0.2 with
configure --with-gtk=3
It seemed to have found the webkitgtk3-devel files.
 and then installed to /usr/local  (default)

Then, ensuring that /usr/local/bin was inmy path.
built Alien with nothing unusual

for Wx.
perl Makefile.PL
and make.
---------------
. . .
-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC
"-I/opt/perlutils/Perl64-5.28.0/lib/5.28.0/x86_64-linux-thread-multi/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:
                 wxVariant value = wxVariant(*col);
                                                 ^
PropertyGrid.c:27130:49: note: candidates are:
In file included from ../../cpp/helpers.h:19:0,
                 from ../../cpp/wxapi.h:170,
                 from PropertyGrid.c:23:
/usr/local/include/wx-3.0/wx/variant.h:283:5: note:
wxVariant::wxVariant(void*, const wxString&) <near match>
     wxVariant(void* ptr, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:283:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘void*’
/usr/local/include/wx-3.0/wx/variant.h:256:5: note:
wxVariant::wxVariant(wchar_t, const wxString&) <near match>
     wxVariant(wchar_t val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:256:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘wchar_t’
/usr/local/include/wx-3.0/wx/variant.h:255:5: note:
wxVariant::wxVariant(char, const wxString&) <near match>
     wxVariant(char val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:255:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘char’
/usr/local/include/wx-3.0/wx/variant.h:187:5: note:
wxVariant::wxVariant(bool, const wxString&)
     wxVariant(bool val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:178:5: note:
wxVariant::wxVariant(short int, const wxString&) <near match>
     wxVariant(short val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:178:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘short int’
/usr/local/include/wx-3.0/wx/variant.h:177:5: note:
wxVariant::wxVariant(int, const wxString&) <near match>
     wxVariant(int val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:177:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘int’
/usr/local/include/wx-3.0/wx/variant.h:176:5: note:
wxVariant::wxVariant(long int, const wxString&) <near match>
     wxVariant(long val, const wxString& name = wxEmptyString);
     ^
/usr/local/include/wx-3.0/wx/variant.h:176:5: note:   no known conversion
for argument 1 from ‘wxColour’ to ‘long int’
/usr/local/include/wx-3.0/wx/variant.h:111:5: note:
wxVariant::wxVariant(const wxAny&)
     wxVariant(const wxAny& any);
     ^
make[2]: *** [PropertyGrid.o] Error 1
make[2]: Leaving directory `/root/.cpan/build/Wx-0.9932-0/ext/propgrid'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/root/.cpan/build/Wx-0.9932-0/ext'
make: *** [subdirs] Error 2
  MDOOTSON/Wx-0.9932.tar.gz
  /bin/make -- NOT OK
------------------------------------------------------~]$ perl -V
Summary of my perl5 (revision 5 version 28 subversion 0) configuration:

  Platform:
    osname=linux
    osvers=3.10.0-862.3.2.el7.x86_64
    archname=x86_64-linux-thread-multi
    uname='linux donpeddev.springfield.scc 3.10.0-862.3.2.el7.x86_64 #1 smp
mon may 21 23:36:36 utc 2018 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Duse64bitall -Dusethreads -Dcc=gcc
-Dprefix=/opt/perlutils/Perl64-5.28.0'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags ='-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 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='4.8.5 20150623 (Red Hat 4.8.5-28)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='gcc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib
/lib64 /usr/lib64 /usr/local/lib64
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
-lgdbm_compat
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.17.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E
-Wl,-rpath,/opt/perlutils/Perl64-5.28.0/lib/5.28.0/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_FAST_STDIO
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under linux
  Compiled at Apr  1 2019 06:52:16
  @INC:

/opt/perlutils/Perl64-5.28.0/lib/site_perl/5.28.0/x86_64-linux-thread-multi
    /opt/perlutils/Perl64-5.28.0/lib/site_perl/5.28.0
    /opt/perlutils/Perl64-5.28.0/lib/5.28.0/x86_64-linux-thread-multi
    /opt/perlutils/Perl64-5.28.0/lib/5.28.0
---
I have tried building Alien-wxWidgets several ways. Building wxWidgets as
part of Alien and separately (install in user local, as shown above))  I
cannot get the darn thing to work.

This was on a 'clean' perl-5.28.0 install. I have also tried perl 5.26 with
exact same results.

I understand that PropertyGrid.c is created during build time....but I
cannot figure out where things are going wrong.

Thank you



-- 
Don Peddicord

Reply via email to