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/Linux

   If 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 1

   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.

   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. ---         

Attachment: signature.asc
Description: Digital signature

Reply via email to