delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/03/14:01:35

From: pjfarley AT banet DOT net (Peter J. Farley III)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: netbd.h, sockets.h, in.h and types.h don't work
Date: Sat, 03 Jun 2000 17:46:32 GMT
Message-ID: <39394199.2750632@news3.banet.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000601085256 DOT 17554C AT is> <3936DA62 DOT 9581F9CE AT bigfoot DOT com> <3936feb4 DOT 2522956 AT news3 DOT banet DOT net> <39380048 DOT CD366DDF AT bigfoot DOT com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 32.100.85.185
X-Trace: 3 Jun 2000 17:44:37 GMT, 32.100.85.185
Organization: Global Network Services - Remote Access Mail & News Services
Lines: 43
X-Complaints-To: abuse AT prserv DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Richard Dawe <richdawe AT bigfoot DOT com> wrote:
>"Peter J. Farley III" wrote:
>> PMFJI here fellas
>
>Whoa, what does "PMFJI" mean? Peter M. Farley Jumps In? ;)

<Grin>  No, that's "Pardon Me For Jumping In".

>> I ran into this myself recently with an open-source FSM (finite state
>> machine) application generator called libero <http://www.imatix.com>. 
>> I, too, got the "ntohl redefined" error (among others), and thus
>> discovered this problem myself.
>
>I forget - why does this error appear? I looked back at the reason this
>thread started and I don't see why this happened. It looked to me like the
>originator was using stale headers from an old version of libsocket, but
>that wasn't confirmed. (I just read section 8.2 of the FAQ too, BTW).

netinet/in.h defines "ntohl", and the application I referred to also
has a "default" definition for "ntohl" and other networking functions
that happens when it can't correctly determine the "unix" environment
in which you are compiling.  In my case, the application is not really
fully DJGPP-aware yet, so the application headers do the "wrong thing"
for DJGPP compilation.

<Snipped>
>> For those new to the networking libraries/headers, it would be nice to
>> see a short FAQ somewhere on what libraries are needed for what
>> networking application areas (i.e., do I need libnet AND WAT-TCP AND
>> libsocket, or just two of them, or just one?  How do I choose?  Are
>> there incompatibilities?  In what order should they be installed?
>> Etc.)
>
>OK, here's a short FAQ, off the top of my head:
<Snipped>

Thank you, Richard!  That was a most helpful exposition.  It was
exactly what I was requesting.  I commend you for your honesty and
clarity.

----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
                     pjfarley AT nospam DOT banet DOT net)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019