www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/25/06:50:24

Date: Wed, 25 Jul 2001 13:49:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: ANW <yellowfurball AT netscape DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Compile errors: getopt.h: no such file or dir (ENOENT), etc.
In-Reply-To: <3B5E9536.30F533BB@netscape.net>
Message-ID: <Pine.SUN.3.91.1010725134326.15699E@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 25 Jul 2001, ANW wrote:

> Using DJGPP under Win98 (Second Edition), I'm unable to compile one of
> Donald Becker's well-known diagnostic programs for NE2000 compatible
> network interface cards. This is a typical VERBOSE screen session and
> the error messages I got, and I quote:
> 
> J:\junk>gcc -O -Wall -o ne2k-pci-diag ne2k-pci-diag.c -v
> Reading specs from g:/djgpp/lib/gcc-lib/djgpp/2.953/specs
[...]
> #include <...> search starts here:
>  g:/djgpp/lib/gcc-lib/djgpp/2.953/include
>  g:/djgpp/include
[...]
> End of search list.

It seems your DJGPP installation is in good shape.

> ne2k-pci-diag.c:49: getopt.h: No such file or directory (ENOENT)
> ne2k-pci-diag.c:56: sys/io.h: No such file or directory (ENOENT)

These error messages are not due to botched installation: DJGPP indeed 
does not have getopt.h or sys/io.h headers.

Do you have any reason to believe that this particular program is 
compatible with DJGPP?  It seems to me it isn't, in which case you will 
need to modify the sources slightly to get it to compile.

> PATH=G:\AMZI4\BIN;F:\EIFFEL45\BENCH\SPEC\WINDOWS\LIB\MSC;F:\BP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\PROGRA~1\OUTLOOK\OFFICE;E:\EMACS20.3.1\BIN;I:\JDK1.3\BIN;
> H:\ELJ-WIN32\SMALLEIFFEL\BIN;H:\ELJ-WIN32\LCC\BIN;G:\DJGPP\BIN

This is slightly sub-optimal: the DJGPP bin subdirectory should ideally 
be much closer to the beginning of PATH, to avoid problems with picking 
wrong versions of the preprocessor, Make, and other utilities.  Other 
than that, your installation is correct.

- Raw text -


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