From patchwork Thu Feb 23 02:00:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 731365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vTHWl0Dc4z9ryr for ; Thu, 23 Feb 2017 13:00:48 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 5EC2E10083; Thu, 23 Feb 2017 03:00:45 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: by helium.openadk.org (Postfix, from userid 1000) id 353C8100EB; Thu, 23 Feb 2017 03:00:43 +0100 (CET) Date: Thu, 23 Feb 2017 03:00:43 +0100 From: Waldemar Brodkorb To: Lance Fredrickson Message-ID: <20170223020042.GB12810@waldemar-brodkorb.de> References: <40e8c32b-2bc8-615f-4541-e81f8aaf1472@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <40e8c32b-2bc8-615f-4541-e81f8aaf1472@gmail.com> X-Operating-System: Linux 3.16.0-4-amd64 x86_64 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: devel@uclibc-ng.org Subject: Re: [uclibc-ng-devel] 1.0.22 + mipsel + 2.6.22.19 X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Hi Lance, Lance Fredrickson wrote, > I'm experiencing an issue where compiling uclibc-ng-1.0.22 (+latest patches) > for mipsel with kernel 2.6.22.19 gives the following error below. > I've tried with newer kernel (4.9 using buildroot-2017.02-rc2) which does > compile without issue. > I also compile armel with kernel 2.6.36.4. Slightly newer kernel, but this > configuration is compiling fine too. > This issue arises somewhere between 1.0.21 and current HEAD. Can you try following patch? best regards Waldemar From deccf064840d9719bc5b022fe7ffaf9b9c2147da Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 23 Feb 2017 02:59:15 +0100 Subject: [PATCH] guard new syscalls preadv/pwritev Signed-off-by: Waldemar Brodkorb --- libc/sysdeps/linux/common/preadv.c | 2 ++ libc/sysdeps/linux/common/pwritev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libc/sysdeps/linux/common/preadv.c b/libc/sysdeps/linux/common/preadv.c index 20adc6d..b90291b 100644 --- a/libc/sysdeps/linux/common/preadv.c +++ b/libc/sysdeps/linux/common/preadv.c @@ -19,8 +19,10 @@ #include #include +#ifdef __NR_preadv ssize_t preadv (int fd, const struct iovec *vector, int count, off_t offset) { return INLINE_SYSCALL (preadv, 4, fd, vector, count, offset); } +#endif diff --git a/libc/sysdeps/linux/common/pwritev.c b/libc/sysdeps/linux/common/pwritev.c index cbc58f9..a1880ed 100644 --- a/libc/sysdeps/linux/common/pwritev.c +++ b/libc/sysdeps/linux/common/pwritev.c @@ -19,8 +19,10 @@ #include #include +#ifdef __NR_pwritev ssize_t pwritev (int fd, const struct iovec *vector, int count, off_t offset) { return INLINE_SYSCALL (pwritev, 4, fd, vector, count, offset); } +#endif -- 2.1.4