From owner-freebsd-current Tue Dec 15 17:17:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA28207 for freebsd-current-outgoing; Tue, 15 Dec 1998 17:17:39 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA28200 for ; Tue, 15 Dec 1998 17:17:36 -0800 (PST) (envelope-from bright@hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.9.1) with ESMTP id UAA05353; Tue, 15 Dec 1998 20:22:12 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Tue, 15 Dec 1998 20:22:12 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: Oleg Ogurok cc: freebsd-current@FreeBSD.ORG Subject: Re: /ports/mbone/speakfreely - can't compile. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG this should be posted to ports@freebsd.org, however David G recently added a syscall to 3.0, 'sendfile' the point of it is to send a file through a socket with as little overhead as possible. This is really nifty but certain newer interfaces for freebsd syscalls and freebsd specific library calls are really going to cause C namespace problems. I wish someone would take this into consideration when adding new functionality. man devstat: int getversion(void) int checkversion(void) would it kill for a devstat_* prefix? i know you need to -ldevstat for these problems to show up, but simply including socket.h causes sendfile problems. I'm just hoping to stir a discussion about this. Who hasn't at one time coded a program with 'sendfile' as an argument or function name? Maybe at least more isolation, ala sendfile.h. Anyhow, to answer your question, grep all the .c and .h files and replace 'sendfile' with 'sendfile_freely' or something. Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current On Tue, 15 Dec 1998, Oleg Ogurok wrote: > Hi, all. > > I am getting following errors trying to "make" this port. > I am running 3.0-CURRENT Dec15, and just cvsup'ed the CURRENT port > collection. > BTW, is freebsd-bugs correct maillist to put things like this? > > ===> speak_freely > ===> Building for speak_freely-6.1c > cc -O -pipe -Iadpcm -Ilpc -Iidea -I/usr/include -I/usr/local/include > -DInternet_Port=2074 -DHALF_DUPLEX -DM_LITTLE_ENDIAN -c mike.c > mike.c:877: warning: static declaration for `sendfile' follows non-static > mike.c: In function `sendfile': > mike.c:878: argument `f' doesn't match prototype > /usr/include/sys/socket.h:395: prototype declaration > mike.c:878: number of arguments doesn't match prototype > /usr/include/sys/socket.h:395: prototype declaration > mike.c: In function `main': > mike.c:1948: warning: passing arg 1 of `sendfile' makes integer from > pointer > without a cast > mike.c:1948: too few arguments to function `sendfile' > mike.c:1960: too few arguments to function `sendfile' > *** Error code 1 > > Stop. > *** Error code 1 > > > Oleg Ogurok > oleg@ogurok.com > http://www.ogurok.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message