Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 643036

Summary: x11-libs/wxGTK-2.8.12.1-r2: dbtable.cpp:2457:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Product: Gentoo Linux Reporter: hololeap <hololeap>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED OBSOLETE    
Severity: major CC: jstein, usefuljunk
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/temp/build.log
Build Log

Description hololeap 2018-01-01 20:26:04 UTC
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/common/dbtable.cpp: In member function 'void wxDbTable::SetCursor(void**)':
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/common/dbtable.cpp:2457:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (hstmtActivate == wxDB_DEFAULT_CURSOR)
                          ^~~~~~~~~~~~~~~~~~~

gcc-config -l
 [1] x86_64-pc-linux-gnu-7.2.0 *


Reproducible: Always
Comment 1 hololeap 2018-01-01 20:29:02 UTC
Created attachment 512650 [details]
emerge --info
Comment 2 hololeap 2018-01-01 20:29:44 UTC
Created attachment 512652 [details]
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/temp/build.log
Comment 3 Beetle B. 2018-01-04 06:25:42 UTC
I think I may have the same problem. I'm attaching my log file
Comment 4 Beetle B. 2018-01-04 06:27:18 UTC
Created attachment 513136 [details]
Build Log
Comment 5 hololeap 2018-01-04 18:53:54 UTC
The workaround I am using is to add "-fpermissive" to the C(XX)FLAGS by creating the following two files.

/etc/portage/package.env/fpermissive 
    =x11-libs/wxGTK-2.8.12.1-r2 fpermissive

/etc/portage/env/fpermissive
    CFLAGS="$CFLAGS -fpermissive"
    CXXFLAGS="$CXXFLAGS -fpermissive"
Comment 6 Mart Raudsepp gentoo-dev 2018-01-06 13:54:38 UTC
I wasn't planning on fixing 2.8 for gcc7 stuff, as the effort is better spent on removing 2.8 from tree. Why do you need this old version still? Codeblocks?
Comment 7 hololeap 2018-01-18 03:57:52 UTC
It's gnuradio that's pulling in this dependency:

  x11-libs/wxGTK-2.8.12.1-r2 pulled in by:
    dev-python/wxpython-2.8.12.1-r2 requires >=x11-libs/wxGTK-2.8.12.1:2.8[opengl,tiff,X]

  dev-python/wxpython-2.8.12.1-r2 pulled in by:
    net-wireless/gnuradio-9999 requires dev-python/wxpython:2.8[python_targets_python2_7(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)]
Comment 8 Beetle B. 2018-01-20 18:36:40 UTC
I need 2.8 for amule-2.3.2. See this related bug:

https://bugs.gentoo.org/597194
Comment 9 Mart Raudsepp gentoo-dev 2018-07-16 00:59:52 UTC
wxGTK:2.8 is p.masked for removal (bug 661284), thus this bug is now obsolete as far as I can see.
amule got a maintainer and should hopefully have wxGTK:3.0 fixed by now. gnuradio should work fine with 3.0 now too.