From owner-freebsd-current Wed Apr 23 07:54:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA03965 for current-outgoing; Wed, 23 Apr 1997 07:54:49 -0700 (PDT) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA03954 for ; Wed, 23 Apr 1997 07:54:46 -0700 (PDT) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.5/8.8.5) with ESMTP id HAA06452; Wed, 23 Apr 1997 07:54:33 -0700 (PDT) Message-Id: <199704231454.HAA06452@austin.polstra.com> To: jseger@scds.ziplink.net Subject: Re: Problems with modula-3-lib Newsgroups: polstra.freebsd.current In-Reply-To: <199704201757.RAA03404@scds.ziplink.net> References: <199704201757.RAA03404@scds.ziplink.net> Organization: Polstra & Co., Seattle, WA Cc: current@freebsd.org Date: Wed, 23 Apr 1997 07:54:33 -0700 From: John Polstra Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199704201757.RAA03404@scds.ziplink.net>, Justin M. Seger wrote: > The lang/modula-3-lib port won't compile under current (as of April 19.) > [...] > new source -> compiling ../src/runtime/FreeBSD2/RTHeapDepC.c > ../src/runtime/FreeBSD2/RTHeapDepC.c: In function `truncate': > ../src/runtime/FreeBSD2/RTHeapDepC.c:1151: argument `path' doesn't match prototype > /usr/include/sys/types.h:169: prototype declaration You're right, it's broken. Recent changes to in -current have made a prototype visible that wasn't visible before. That reaveals a faulty declaration in RTHeapDepC.c. I'll update the port as soon as I can. Meanwhile, you can patch it manually if you wish. Starting from a clean slate: chdir /usr/ports/lang/modula-3-lib make configure then edit "work/m3/m3core/src/runtime/FreeBSD2/RTHeapDepC.c". In the definition of truncate(), around line 1149, change the argument declarations to this: const char *path; off_t length; Then chdir back up to /usr/ports/lang/modula-3-lib and finish the make. I think that should fix it. Thanks for the report. By the way, when you find a problem in a port, it's always a good idea to send mail to the person listed in the MAINTAINER field of the makefile. Sometimes you get faster results that way. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth