Re: Problems with compiling btrfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux