From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 08:51:31 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B77EC16A4CE for ; Wed, 21 Apr 2004 08:51:31 -0700 (PDT) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3397743D58 for ; Wed, 21 Apr 2004 08:51:30 -0700 (PDT) (envelope-from netch@segfault.kiev.ua) Received: (from netch@localhost) by segfault.kiev.ua (8) id i3LFpR4p035075 for ia64@freebsd.org; Wed, 21 Apr 2004 18:51:27 +0300 (EEST) (envelope-from netch) Date: Wed, 21 Apr 2004 18:51:27 +0300 From: Valentin Nechayev To: ia64@freebsd.org Message-ID: <20040421155127.GS57650@netch.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-42: On Subject: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 15:51:31 -0000 Hi, I was notified that maintained port (net/pppd23) can't be built on ia64. Failure message is: cc -O -pipe -g -I../include -DHAVE_PATHS_H -D_BITYPES -c utils.c utils.c: In function `vslprintf': utils.c:253: error: invalid use of non-lvalue array *** Error code 1 The code in question is: int vslprintf(buf, buflen, fmt, args) [...] #ifndef __powerpc__ > n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list)); #else /* On the powerpc, a va_list is an array of 1 structure */ n = vslprintf(buf, buflen + 1, f, va_arg(args, void *)); #endif (I selected failed line with '>') va_arg() uses translation to pointer to specified type; this translation fails with message shown above. Can anybody say how can it be fixed, and whether shown powerpc hack is applicable to ia64 if it's good solution? -netch-