From owner-freebsd-bugs Fri Jun 28 9:47:12 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1184F37B405 for ; Fri, 28 Jun 2002 09:47:10 -0700 (PDT) Received: from prophecy.dyndns.org (ip-63-121-116-224.new-castle.de.fcc.net [63.121.116.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CEBB43E09 for ; Fri, 28 Jun 2002 09:47:08 -0700 (PDT) (envelope-from apeiron@prophecy.dyndns.org) Received: from prophecy.dyndns.org (prophecy.dyndns.org [127.0.0.1]) by prophecy.dyndns.org (8.12.3/8.12.3) with ESMTP id g5SCm1Bh029169; Fri, 28 Jun 2002 12:48:01 GMT (envelope-from apeiron@prophecy.dyndns.org) Received: (from apeiron@localhost) by prophecy.dyndns.org (8.12.3/8.12.3/Submit) id g5SClrVR029168; Fri, 28 Jun 2002 12:47:53 GMT Subject: Re: Syntax errors in netinet6/in6.h and sys/socket.h From: Christopher Nehren To: Peter Pentchev Cc: freebsd-bugs@freebsd.org In-Reply-To: <20020628152450.GA93540@straylight.oblivion.bg> References: <1025262407.272.78.camel@prophecy.dyndns.org> <20020628152450.GA93540@straylight.oblivion.bg> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 28 Jun 2002 12:47:52 +0000 Message-Id: <1025268472.272.92.camel@prophecy.dyndns.org> Mime-Version: 1.0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > This is not exactly a properly filed problem report; did you use > the send-pr(1) utility and then change the mail recipient address > (it should have been freebsd-gnats-submit@FreeBSD.org), or did you just > mail out the template to freebsd-bugs@FreeBSD.org? :) > > The proper way to file a FreeBSD problem report would be to either use > the send-pr(1) utility on your FreeBSD system, or use the GNATS web > interface at http://www.FreeBSD.org/cgi/send-pr.cgi My apologies, I shall do that next time. > Such an 'empty program' has no need for including ; what > exactly are you trying to make your program do? :) If you need to use > the socket(2), bind(2), listen(2), etc, system calls, you might want to > take a look at either their manual pages, where the header > file is listed as a prerequisite, or at some sample code; if you want to > write TCP/IP networking applications using those system calls and some > constants defined in the file, you would do best to look > at some sample apps to see what other header files you need to include. > Generally, you would need , , , > quite possibly also and ; however, > is indeed listed as a prerequisite in the manual page of each and every > system call used in TCP/IP networking (and, for that matter, any kind of > socket networking). The purpose of the "empty program" was to demonstrate the syntax errors in a program I was compiling that was part of GNOME2. I assumed (I know) that the programmer of gnome2-vfs-extras knew to include all of the required files. It just seemed to me that everything _should_ have been right; I hadn't thought to check the source to the module I was compiling. Adding: #include fixed the problem. I guess this is an issue for gnome2-vfs-extras, and not FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message