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

Bug 634140

Summary: sys-block/gparted-0.27.0 BlockSpecial.cc:64:31: error: ‘major’ was not declared in this scope
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gilles Dartiguelongue (RETIRED) <eva>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=629426
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 575232    
Attachments: emerge --info
build.log

Description ernsteiswuerfel archtester 2017-10-12 22:23:00 UTC
Created attachment 498474 [details]
emerge --info

I did an emerge -e world after upgrading to sys-libs/glibc-2.25-r7. One of the two packages failed to build was sys-block/gparted-0.27.0.

=sys-block/gparted-0.28.1
=sys-block/gparted-0.29.0
build an run fine on my setup.
Comment 1 ernsteiswuerfel archtester 2017-10-12 22:23:36 UTC
Created attachment 498476 [details]
build.log
Comment 2 Tomáš Mózes 2017-10-13 04:31:26 UTC
Yes, 0.29.0 has this fixed and is currently being stabilized.

# diff -u gparted-0.27.0/src/BlockSpecial.cc gparted-0.29.0/src/BlockSpecial.cc 
--- gparted-0.27.0/src/BlockSpecial.cc  2016-10-10 22:05:50.000000000 +0200
+++ gparted-0.29.0/src/BlockSpecial.cc  2017-02-04 18:41:03.000000000 +0100
@@ -14,11 +14,12 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "../include/BlockSpecial.h"
+#include "BlockSpecial.h"
 
 #include <glibmm/ustring.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <unistd.h>
 #include <map>

The important part is including <sys/sysmacros.h> that was missing from 0.27.0.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-10-13 09:34:25 UTC

*** This bug has been marked as a duplicate of bug 602222 ***