From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 21 22:01:37 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52C6816A4CE for ; Wed, 21 Apr 2004 22:01:37 -0700 (PDT) Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id D698943D49 for ; Wed, 21 Apr 2004 22:01:35 -0700 (PDT) (envelope-from netch@lucky.net) Received: from netch@localhost [127.0.0.1] (netch@localhost [127.0.0.1]) by burka.carrier.kiev.ua with ESMTP id i3M51SUx007156 for ; Thu, 22 Apr 2004 08:01:31 +0300 (EEST) (envelope-from netch@burka.carrier.kiev.ua) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.12.8p2/8.12.8/Submit) id i3M51SiC007153 for amd64@freebsd.org; Thu, 22 Apr 2004 08:01:28 +0300 (EEST) (envelope-from netch) Date: Thu, 22 Apr 2004 08:01:28 +0300 From: Valentin Nechayev To: amd64@freebsd.org Message-ID: <20040422050128.GQ34647@lucky.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Verify-Sender: verified Subject: va_list q X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 05:01:37 -0000 Hi, I was notified that maintained port (net/pppd23) can't be built on amd64. 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. (Translation is used AFAIS on all platforms, but only amd64 causes error.) I have no freebsd/amd64 box now. Can anybody say how can it be fixed, and whether shown powerpc hack is applicable to amd64 if it's last-resort solution? -netch-