From owner-freebsd-ports Fri Jun 28 11:31:26 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C9CD37B406 for ; Fri, 28 Jun 2002 11:30:30 -0700 (PDT) Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8D1143E09 for ; Fri, 28 Jun 2002 11:30:28 -0700 (PDT) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 17O0Vn-00046r-00; Fri, 28 Jun 2002 20:30:27 +0200 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.3/8.12.2) with ESMTP id g5SHuvS9054261 for ; Fri, 28 Jun 2002 19:56:57 +0200 (CEST) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.3/8.12.3/Submit) id g5SHuv6K054260 for freebsd-ports@freebsd.org; Fri, 28 Jun 2002 19:56:57 +0200 (CEST) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: FreeBSD audio/mad problems Date: Fri, 28 Jun 2002 17:56:56 +0000 (UTC) Message-ID: References: <20020628000253.654123E5C@CRWdog.demon.co.uk> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andy Sparrow wrote: > There's a conflict in the malloc definition, which prevents the test program > from compiling, thus 'configure' believes that this system doesn't have an > mmap() implementation, and thus HAVE_MMAP is left commented-out in the > config.h file. > configure:2578: conflicting types for `malloc' > /usr/include/stdlib.h:99: previous declaration of `malloc' Apparently, this > char *malloc(); conflicts with the existing prototype. > void *malloc __P((size_t)); So why does this happen for -STABLE but not for my -CURRENT (June 10)? My stdlib.h says void *malloc(size_t); Why is that fine?? Anyway, this really looks like a bug in the AC_FUNC_MMAP macro as supplied with autoconf 2.13. The corresponding fragment in the autoconf 2.53 macro looks safer: #if !STDC_HEADERS && !HAVE_STDLIB_H char *malloc (); #endif I guess we could convert audio/mad over to USE_AUTOCONF and autoconf 2.53, but if every autoconf 2.13-generated script screws up its mmap() check on -STABLE we are looking at a *serious* problem. -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message