Mail Archives: djgpp/2001/07/25/06:50:24
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 -