Skip site navigation (1)Skip section navigation (2)
Date:      28 Jun 2002 12:47:52 +0000
From:      Christopher Nehren <apeiron@prophecy.dyndns.org>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: Syntax errors in netinet6/in6.h and sys/socket.h
Message-ID:  <1025268472.272.92.camel@prophecy.dyndns.org>
In-Reply-To: <20020628152450.GA93540@straylight.oblivion.bg>
References:  <1025262407.272.78.camel@prophecy.dyndns.org>  <20020628152450.GA93540@straylight.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <sys/socket.h>; 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 <sys/types.h> 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 <netinet/in.h> 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 <sys/types.h>, <netinet/in.h>, <arpa/inet.h>,
> quite possibly also <netdb.h> and <sys/time.h>; however, <sys/socket.h>
> 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 <sys/types.h>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1025268472.272.92.camel>