linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bernhard Rosenkraenzer <bero@arklinux.org>
To: <linux-btrfs@vger.kernel.org>
Subject: [PATCH] current btrfs-progs-unstable fails to compile
Date: Fri, 18 Jun 2010 22:49:17 +0200	[thread overview]
Message-ID: <973363eb2b532a0d12b580c6246db3f3@blankpage.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi,
current btrfs-progs-unstable fails to compile for me (Ark Linux devel
branch, using gcc 4.5 and eglibc 2.12):

/usr/bin/ld: btrfsck.o: in function maybe_free_inode_rec:btrfsck.c:323:
error: undefined reference to 'S_ISDIR'
/usr/bin/ld: btrfsck.o: in function maybe_free_inode_rec:btrfsck.c:340:
error: undefined reference to 'S_ISREG'
/usr/bin/ld: btrfsck.o: in function maybe_free_inode_rec:btrfsck.c:328:
error: undefined reference to 'S_ISREG'
/usr/bin/ld: btrfsck.o: in function maybe_free_inode_rec:btrfsck.c:340:
error: undefined reference to 'S_ISLNK'
/usr/bin/ld: btrfsck.o: in function maybe_free_inode_rec:btrfsck.c:328:
error: undefined reference to 'S_ISLNK'
collect2: ld returned 1 exit status

Patch attached.

ttyl
bero

[-- Attachment #2: btrfsck-compile.patch --]
[-- Type: text/x-c, Size: 300 bytes --]

--- btrfs-progs-unstable/btrfsck.c.ark	2010-06-18 22:52:52.592535586 +0200
+++ btrfs-progs-unstable/btrfsck.c	2010-06-18 22:52:59.540417164 +0200
@@ -18,6 +18,7 @@
 
 #define _XOPEN_SOURCE 500
 #define _GNU_SOURCE 1
+#include <sys/stat.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>

                 reply	other threads:[~2010-06-18 20:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=973363eb2b532a0d12b580c6246db3f3@blankpage.ch \
    --to=bero@arklinux.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).