I''m trying to compile the btrfs source code but I''m getting an error. Any suggestions? Thanks Joe [root@ol6 btrfs-progs]# uname -a Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux [root@ol6 src]# git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git Initialized empty Git repository in /usr/local/src/btrfs-progs/.git/ remote: Counting objects: 3539, done. remote: Compressing objects: 100% (1289/1289), done. remote: Total 3539 (delta 2633), reused 3015 (delta 2246) Receiving objects: 100% (3539/3539), 1.02 MiB | 613 KiB/s, done. Resolving deltas: 100% (2633/2633), done. [root@ol6 src]# cd btrfs-progs [root@ol6 btrfs-progs]# pwd /usr/local/src/btrfs-progs [root@ol6 btrfs-progs]# make [LD] mkfs.btrfs mkfs.o: In function `is_ssd'': /usr/local/src/btrfs-progs/mkfs.c:1234: undefined reference to `blkid_probe_get_wholedisk_devno'' collect2: ld returned 1 exit status make: *** [mkfs.btrfs] Error 1 -- 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
On Thu, Mar 21, 2013 at 03:11:56PM -0600, Joseph Moore wrote:> I''m trying to compile the btrfs source code but I''m getting an error. > Any suggestions? > > Thanks > Joe > > [root@ol6 btrfs-progs]# uname -a > Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 > 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/LinuxIf this is a standard distribution kernel, then it''s massively out of date, and you *really* need to upgrade it. If it''s a heavily- backported enterprise kernel, then it''s probably still quite out of date, but less so (and you should take advice from whoever you pay for your support contract about whether it''s supported/reliable/sane to use it). However, that''s just our usual warning, and isn''t related to your problem below...> [root@ol6 src]# git clone > git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git > Initialized empty Git repository in /usr/local/src/btrfs-progs/.git/ > remote: Counting objects: 3539, done. > remote: Compressing objects: 100% (1289/1289), done. > remote: Total 3539 (delta 2633), reused 3015 (delta 2246) > Receiving objects: 100% (3539/3539), 1.02 MiB | 613 KiB/s, done. > Resolving deltas: 100% (2633/2633), done. > > [root@ol6 src]# cd btrfs-progs > [root@ol6 btrfs-progs]# pwd > /usr/local/src/btrfs-progs > > [root@ol6 btrfs-progs]# make > [LD] mkfs.btrfs > mkfs.o: In function `is_ssd'': > /usr/local/src/btrfs-progs/mkfs.c:1234: undefined reference to > `blkid_probe_get_wholedisk_devno'' > collect2: ld returned 1 exit status > make: *** [mkfs.btrfs] Error 1You need libblkid-devel (or whatever your distribution calls the development package for libblkid). You may also want to check out the list of required build packages on the wiki at [1], just in case you''re missing any others. Hugo. [1] https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#Dependencies -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk == PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Unix: For controlling fungal diseases in crops. ---
On 3/21/13 4:11 PM, Joseph Moore wrote:> I''m trying to compile the btrfs source code but I''m getting an error. > Any suggestions?Older libblkid doesn''t have that function. This is where a configure script would really help :( Locally I currently am keeping a patch around to just remove it; you could comment out the call to is_ssd() and put a giant #if 0 around the function itself, for now, to get things going. I keep threatening to add a -DHAVE_BLAHBLAH kind of switch to the Makefile but that seems a little ick. Better than nothing I guess. -Eric> Thanks > Joe > > [root@ol6 btrfs-progs]# uname -a > Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 > 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux > > [root@ol6 src]# git clone > git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git > Initialized empty Git repository in /usr/local/src/btrfs-progs/.git/ > remote: Counting objects: 3539, done. > remote: Compressing objects: 100% (1289/1289), done. > remote: Total 3539 (delta 2633), reused 3015 (delta 2246) > Receiving objects: 100% (3539/3539), 1.02 MiB | 613 KiB/s, done. > Resolving deltas: 100% (2633/2633), done. > > [root@ol6 src]# cd btrfs-progs > [root@ol6 btrfs-progs]# pwd > /usr/local/src/btrfs-progs > > [root@ol6 btrfs-progs]# make > [LD] mkfs.btrfs > mkfs.o: In function `is_ssd'': > /usr/local/src/btrfs-progs/mkfs.c:1234: undefined reference to > `blkid_probe_get_wholedisk_devno'' > collect2: ld returned 1 exit status > make: *** [mkfs.btrfs] Error 1 > -- > 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 >-- 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
On Thu, Mar 21, 2013 at 09:42:13PM +0000, Hugo Mills wrote:> On Thu, Mar 21, 2013 at 03:11:56PM -0600, Joseph Moore wrote: > > I''m trying to compile the btrfs source code but I''m getting an error. > > Any suggestions?[snip]> You need libblkid-devel (or whatever your distribution calls the > development package for libblkid). You may also want to check out the > list of required build packages on the wiki at [1], just in case > you''re missing any others.... or what Eric said. Believe him for this bit.> Hugo.-- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk == PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Unix: For controlling fungal diseases in crops. ---
Hi, On 22/03/2013, at 8:11 AM, Joseph Moore <japlha@gmail.com> wrote:> [root@ol6 btrfs-progs]# uname -a > Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 > 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/LinuxThis is the currently shipping Oracle Linux 6 UEK and as such, doesn''t support a newer btrfs-progs. If you want to run a newer btrfs, you should install the 3.8 kernel from our playground channel on public-yum.oracle.com and then you can compile a newer btrfs-progs to match. I''ve also asked the playground build team to build a newer btrfs-progs RPM for the playground channel, but I''m not sure what the timeframes on that would be. -- Oracle <http://www.oracle.com> Avi Miller | Principal Program Manager | +61 (412) 229 687 Oracle Linux and Virtualization 417 St Kilda Road, Melbourne, Victoria 3004 Australia -- 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
On Thu, Mar 21, 2013 at 4:46 PM, Avi Miller <avi.miller@oracle.com> wrote:> Hi, > > On 22/03/2013, at 8:11 AM, Joseph Moore <japlha@gmail.com> wrote: > >> [root@ol6 btrfs-progs]# uname -a >> Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 >> 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux > > > This is the currently shipping Oracle Linux 6 UEK and as such, doesn''t support a newer btrfs-progs. If you want to run a newer btrfs, you should install the 3.8 kernel from our playground channel on public-yum.oracle.com and then you can compile a newer btrfs-progs to match. > > I''ve also asked the playground build team to build a newer btrfs-progs RPM for the playground channel, but I''m not sure what the timeframes on that would be. > > -- > Oracle <http://www.oracle.com> > Avi Miller | Principal Program Manager | +61 (412) 229 687 > Oracle Linux and Virtualization > 417 St Kilda Road, Melbourne, Victoria 3004 Australia >I have also run into the same problem on Enterprise Linux 6.3 (Scientific Linux in my case). It is relatively trivial to get a current kernel from sources like ELREPO, so I was hoping to use my Scientific Linux partition at least for rescue and evaluation. Is the position of the Btrfs Developer community that Enterprise Linux 6.x is not to be supported? -- 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
On 3/21/13 5:23 PM, Mitch Harder wrote:> On Thu, Mar 21, 2013 at 4:46 PM, Avi Miller <avi.miller@oracle.com> wrote: >> Hi, >> >> On 22/03/2013, at 8:11 AM, Joseph Moore <japlha@gmail.com> wrote: >> >>> [root@ol6 btrfs-progs]# uname -a >>> Linux ol6.localdomain 2.6.39-400.17.2.el6uek.x86_64 #1 SMP Wed Mar 13 >>> 12:31:05 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux >> >> >> This is the currently shipping Oracle Linux 6 UEK and as such, doesn''t support a newer btrfs-progs. If you want to run a newer btrfs, you should install the 3.8 kernel from our playground channel on public-yum.oracle.com and then you can compile a newer btrfs-progs to match. >> >> I''ve also asked the playground build team to build a newer btrfs-progs RPM for the playground channel, but I''m not sure what the timeframes on that would be. >> >> -- >> Oracle <http://www.oracle.com> >> Avi Miller | Principal Program Manager | +61 (412) 229 687 >> Oracle Linux and Virtualization >> 417 St Kilda Road, Melbourne, Victoria 3004 Australia >> > > I have also run into the same problem on Enterprise Linux 6.3 > (Scientific Linux in my case). > > It is relatively trivial to get a current kernel from sources like > ELREPO, so I was hoping to use my Scientific Linux partition at least > for rescue and evaluation. > > Is the position of the Btrfs Developer community that Enterprise Linux > 6.x is not to be supported?The Btrfs Developer Community really cannot support btrfs in a distro, aside from answering some basic questions, perhaps. If you have a distro problem, report it to your distro; if you have an upstream problem, report it upstream. If your distro is close to upstream, you''ll probably get some help & attention from upstream. As for RHEL6, btrfs is tech preview [1], and bug reports are appreciated from RHEL users. Neither Red Hat nor upstream developers (or the people in the middle of that Venn diagram) are really in a place to support a rebuilt version of a commercial enterprise distro. Often as not, that''s "keep both pieces when it breaks" land. note: I believe that if you get upstream btrfs-progs building on a rhel6-alike, you''ll quickly run into another issue when you try to mount it. If you want bleeding-edge btrfs, you should probably stick with bleeding-edge kernels one way or another. -Eric [1] https://access.redhat.com/support/offerings/techpreview/ -- 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