* btrfs-progs 4.6 won't build on CentOS6
@ 2016-06-24 1:49 Steven Haigh
2016-06-24 1:58 ` Jeff Mahoney
2016-06-24 3:22 ` Eric Sandeen
0 siblings, 2 replies; 5+ messages in thread
From: Steven Haigh @ 2016-06-24 1:49 UTC (permalink / raw)
To: Btrfs BTRFS
I've tried to build the new tools for CentOS 6 / Scientific Linux 6 /
RHEL 6 etc.
During the build process, I see:
cmds-fi-du.c: In function 'du_calc_file_space':
cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in
this function)
cmds-fi-du.c:330: error: (Each undeclared identifier is reported only
once
cmds-fi-du.c:330: error: for each function it appears in.)
make: *** [cmds-fi-du.o] Error 1
I'm guessing this is probably due to a different GCC version used? I'm
guessing this is a simple fix for someone with knowhow... :)
--
Steven Haigh
Email: netwiz@crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs-progs 4.6 won't build on CentOS6
2016-06-24 1:49 btrfs-progs 4.6 won't build on CentOS6 Steven Haigh
@ 2016-06-24 1:58 ` Jeff Mahoney
2016-06-24 3:22 ` Eric Sandeen
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Mahoney @ 2016-06-24 1:58 UTC (permalink / raw)
To: Steven Haigh, Btrfs BTRFS
[-- Attachment #1.1: Type: text/plain, Size: 1004 bytes --]
On 6/23/16 9:49 PM, Steven Haigh wrote:
> I've tried to build the new tools for CentOS 6 / Scientific Linux 6 /
> RHEL 6 etc.
>
> During the build process, I see:
> cmds-fi-du.c: In function 'du_calc_file_space':
> cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in
> this function)
> cmds-fi-du.c:330: error: (Each undeclared identifier is reported only once
> cmds-fi-du.c:330: error: for each function it appears in.)
> make: *** [cmds-fi-du.o] Error 1
>
> I'm guessing this is probably due to a different GCC version used? I'm
> guessing this is a simple fix for someone with knowhow... :)
>
This is due to too-old headers. That define was added in 2.6.33.
#define FIEMAP_EXTENT_SHARED 0x00002000 /* Space shared with other
* files. */
Just add that above that routine and you'll be good to go. The right fix
is to add it to the tools, ofc.
-Jeff
--
Jeff Mahoney
SUSE Labs
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs-progs 4.6 won't build on CentOS6
2016-06-24 1:49 btrfs-progs 4.6 won't build on CentOS6 Steven Haigh
2016-06-24 1:58 ` Jeff Mahoney
@ 2016-06-24 3:22 ` Eric Sandeen
2016-06-24 3:26 ` Qu Wenruo
2016-06-24 3:28 ` Steven Haigh
1 sibling, 2 replies; 5+ messages in thread
From: Eric Sandeen @ 2016-06-24 3:22 UTC (permalink / raw)
To: Steven Haigh, Btrfs BTRFS
On 6/23/16 8:49 PM, Steven Haigh wrote:
> I've tried to build the new tools for CentOS 6 / Scientific Linux 6 / RHEL 6 etc.
>
> During the build process, I see:
> cmds-fi-du.c: In function 'du_calc_file_space':
> cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in this function)
> cmds-fi-du.c:330: error: (Each undeclared identifier is reported only once
> cmds-fi-du.c:330: error: for each function it appears in.)
> make: *** [cmds-fi-du.o] Error 1
>
> I'm guessing this is probably due to a different GCC version used? I'm guessing this is a simple fix for someone with knowhow... :)
Fair warning, the btrfs.ko in centos6 is positively ancient, and it
won't be updated.
Just in case that matters to you ... not sure if you just want to
build there, or use actually btrfs under a centos6 kernel....
-Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs-progs 4.6 won't build on CentOS6
2016-06-24 3:22 ` Eric Sandeen
@ 2016-06-24 3:26 ` Qu Wenruo
2016-06-24 3:28 ` Steven Haigh
1 sibling, 0 replies; 5+ messages in thread
From: Qu Wenruo @ 2016-06-24 3:26 UTC (permalink / raw)
To: Eric Sandeen, Steven Haigh, Btrfs BTRFS
At 06/24/2016 11:22 AM, Eric Sandeen wrote:
> On 6/23/16 8:49 PM, Steven Haigh wrote:
>> I've tried to build the new tools for CentOS 6 / Scientific Linux 6 / RHEL 6 etc.
>>
>> During the build process, I see:
>> cmds-fi-du.c: In function 'du_calc_file_space':
>> cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in this function)
>> cmds-fi-du.c:330: error: (Each undeclared identifier is reported only once
>> cmds-fi-du.c:330: error: for each function it appears in.)
>> make: *** [cmds-fi-du.o] Error 1
>>
>> I'm guessing this is probably due to a different GCC version used? I'm guessing this is a simple fix for someone with knowhow... :)
>
> Fair warning, the btrfs.ko in centos6 is positively ancient, and it
> won't be updated.
>
> Just in case that matters to you ... not sure if you just want to
> build there, or use actually btrfs under a centos6 kernel....
>
> -Eric
This is the new function introduced to calculate shared extents size for
files/dirs.
Which uses EXTENT_SHARED flag for ioctl, which is not included in old
kernels.
I have already informed the author several weeks ago, and the fix is
quite easy.
But it seems that author didn't send out the fix though.
Thanks,
Qu
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: btrfs-progs 4.6 won't build on CentOS6
2016-06-24 3:22 ` Eric Sandeen
2016-06-24 3:26 ` Qu Wenruo
@ 2016-06-24 3:28 ` Steven Haigh
1 sibling, 0 replies; 5+ messages in thread
From: Steven Haigh @ 2016-06-24 3:28 UTC (permalink / raw)
To: linux-btrfs
On 2016-06-24 13:22, Eric Sandeen wrote:
> On 6/23/16 8:49 PM, Steven Haigh wrote:
>> I've tried to build the new tools for CentOS 6 / Scientific Linux 6 /
>> RHEL 6 etc.
>>
>> During the build process, I see:
>> cmds-fi-du.c: In function 'du_calc_file_space':
>> cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use
>> in this function)
>> cmds-fi-du.c:330: error: (Each undeclared identifier is reported only
>> once
>> cmds-fi-du.c:330: error: for each function it appears in.)
>> make: *** [cmds-fi-du.o] Error 1
>>
>> I'm guessing this is probably due to a different GCC version used? I'm
>> guessing this is a simple fix for someone with knowhow... :)
>
> Fair warning, the btrfs.ko in centos6 is positively ancient, and it
> won't be updated.
>
> Just in case that matters to you ... not sure if you just want to
> build there, or use actually btrfs under a centos6 kernel....
Thanks Eric,
Yeah - I understand the stock kernel is ancient in btrfs terms. I build
4.4.x for Xen Dom0/U usage at my site: http://xen.crc.id.au and have
done for several years. This is what I'm targeting with this.
--
Steven Haigh
Email: netwiz@crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-24 3:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 1:49 btrfs-progs 4.6 won't build on CentOS6 Steven Haigh
2016-06-24 1:58 ` Jeff Mahoney
2016-06-24 3:22 ` Eric Sandeen
2016-06-24 3:26 ` Qu Wenruo
2016-06-24 3:28 ` Steven Haigh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).