Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669528 - dev-util/cutter-1.7 : src/Cutter.h:429:83: error: R_IO_READ was not declared in this scope
Summary: dev-util/cutter-1.7 : src/Cutter.h:429:83: error: R_IO_READ was not declared ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: John Helmert III
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-24 17:30 UTC by Toralf Förster
Modified: 2020-07-25 06:00 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.84 KB, text/plain)
2018-10-24 17:30 UTC, Toralf Förster
Details
dev-util:cutter-1.7:20181024-061658.log (dev-util:cutter-1.7:20181024-061658.log,6.97 KB, text/plain)
2018-10-24 17:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,167.07 KB, text/plain)
2018-10-24 17:30 UTC, Toralf Förster
Details
environment (environment,93.13 KB, text/plain)
2018-10-24 17:30 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,37.93 KB, application/x-bzip)
2018-10-24 17:30 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.05 KB, application/x-bzip)
2018-10-24 17:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-10-24 17:30:21 UTC
                 from src/CutterApplication.h:8,
                 from src/Main.cpp:2:
src/Cutter.h:429:83: error: ‘R_IO_READ’ was not declared in this scope
 File(QString path, ut64 baddr = 0LL, ut64 mapaddr = 0LL, int perms = R_IO_READ,
                                                                      ^~~~~~~~~


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_20181020-160230

  -------------------------------------------------------------------

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

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.9.0 [icedtea-8]
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

emerge -qpvO dev-util/cutter
[ebuild  N    ] dev-util/cutter-1.7  USE="-jupyter -webengine"
Comment 1 Toralf Förster gentoo-dev 2018-10-24 17:30:24 UTC
Created attachment 552764 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-10-24 17:30:27 UTC
Created attachment 552766 [details]
dev-util:cutter-1.7:20181024-061658.log
Comment 3 Toralf Förster gentoo-dev 2018-10-24 17:30:30 UTC
Created attachment 552768 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-10-24 17:30:33 UTC
Created attachment 552770 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-10-24 17:30:35 UTC
Created attachment 552772 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-10-24 17:30:38 UTC
Created attachment 552774 [details]
temp.tbz2
Comment 7 Michael Hofmann 2018-12-23 21:56:36 UTC
Upstream has a patch for that problem:

https://github.com/radareorg/cutter/commit/5c52991cd8aa1c72384fdc47acef1f3f8a42d4e1#diff-b0dd278d5ca5eb36ff5cb5814aefc513

I can confirm that the patch above fixes the problem described in bug 669528.
Comment 8 Juergen Rose 2018-12-26 16:17:37 UTC
(In reply to Michael Hofmann from comment #7)
> Upstream has a patch for that problem:
> 
> https://github.com/radareorg/cutter/commit/
> 5c52991cd8aa1c72384fdc47acef1f3f8a42d4e1#diff-
> b0dd278d5ca5eb36ff5cb5814aefc513
> 
> I can confirm that the patch above fixes the problem described in bug 669528.

After applying the patch Cutter.cpp fails to compile with:

src/Cutter.cpp: In member function ‘QList<QString> CutterCore::sdbListKeys(QString)’:
src/Cutter.cpp:114:26: error: ‘SdbKv’ {aka ‘struct sdb_kv’} has no member named ‘key’
             list << nsi->key;
                          ^~~
src/Cutter.cpp: In member function ‘int CutterCore::get_size()’:
src/Cutter.cpp:700:23: error: ‘r_bin_get_object’ was not declared in this scope
     RBinObject *obj = r_bin_get_object(core_->bin);
                       ^~~~~~~~~~~~~~~~
src/Cutter.cpp:700:23: note: suggested alternative: ‘r_bin_cur_object’
     RBinObject *obj = r_bin_get_object(core_->bin);
                       ^~~~~~~~~~~~~~~~
                       r_bin_cur_object
Comment 9 Anton Bolshakov 2019-01-08 12:36:46 UTC
cutter-1.7.3 is out, it fixes this bug.
Comment 10 Juergen Rose 2019-01-09 17:08:23 UTC
(In reply to Anton Bolshakov from comment #9)
> cutter-1.7.3 is out, it fixes this bug.

But even after 'emerge --sync' I vsn't find cutter-1.7.3 in the default portage tree.
Comment 11 Viktor Levin 2019-01-23 12:11:07 UTC
Pull request:

https://github.com/gentoo/gentoo/pull/10708
Comment 12 Viktor Levin 2019-02-01 13:47:21 UTC
New pull request:

https://github.com/gentoo/gentoo/pull/10900
Comment 13 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-07-25 06:00:55 UTC
This should be obsoleted by the newest versions of radare2 and cutter. Closing.