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

Message-ID: <3B5E9536.30F533BB@netscape.net>
From: ANW <yellowfurball AT netscape DOT net>
Organization: NoneSuch
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Compile errors: getopt.h: no such file or dir (ENOENT), etc.
Lines: 171
Date: Wed, 25 Jul 2001 09:49:15 GMT
NNTP-Posting-Host: 24.71.165.135
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.sshe1.sk.home.com 996054555 24.71.165.135 (Wed, 25 Jul 2001 02:49:15 PDT)
NNTP-Posting-Date: Wed, 25 Jul 2001 02:49:15 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello. I'm a DJGPP newbie. Just installed DJGPP on my Win98 machine.
Please pardon me for the length of this message because of the quoted
screen sessions.

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
gcc version 2.95.3 20010315/djgpp (release)
 g:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2
-D__GNUC_MINO
R__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__
-D__GO32__ -
D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2
-D__MSDOS -Asyst
em(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__
-Wall -Acpu(
i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__
-imacros g:/
djgpp/lib/djgpp.ver -remap ne2k-pci-diag.c g:/djgpp/tmp\ccKYedrL.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 g:/djgpp/lib/gcc-lib/djgpp/2.953/include
 g:/djgpp/include
End of search list.
The following default directories have been omitted from the search
path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
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)
J:\junk>
UNQUOTE

I've spent five hours already reading all docs, FAQs and tips online,
but I'm still clueless. I thought it might have something to do with
DJGPP not being set correctly to look for long filenames, so I renamed
the filename from "ne2k-pci-diag.c" to simply "ne2kpci.c", but I still
got similar error messages. The following DOS DIR command shows that the
DOS session in Win98 is using long filenames:

J:\junk>DIR

 Volume in drive J has no label
 Volume Serial Number is 132B-0BE6
 Directory of J:\junk

.              <DIR>        07-16-01  6:22a .
..             <DIR>        07-16-01  6:22a ..
NE2K-P~1 C          27,258  07-20-01  5:20p ne2k-pci-diag-zap.c
NE2K-P~2 C          25,604  07-20-01  7:12p ne2k-pci-diag.c
README   TXT         7,850  10-24-98  4:00p Readme.txt
ENV      DAT           516  07-24-01  9:58p env.dat
NE2KPCI  C          25,604  07-20-01  7:12p ne2kpci.c
HELLO    C             140  07-24-01  3:08a hello.c
...
<snip>
        15 file(s)        162,051 bytes
         2 dir(s)     606,896,128 bytes free

On the other hand, a simple hello.c (HELLO WORLD program) gave me a
successful compilation and produced an executable hello.exe.

J:\junk>gcc -Wall -o hello hello.c -v
Reading specs from g:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
 <snip>
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 g:/djgpp/lib/gcc-lib/djgpp/2.953/include
 g:/djgpp/include
End of search list.
The following default directories have been omitted from the search
path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
 g:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe g:/djgpp/tmp\cc6AGUUq.i -quiet
-dumpba
se hello.c -Wall -version -o g:/djgpp/tmp\ccQfZiy8.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version
2.95.3 20010315/djgpp (release).
 g:/djgpp/bin/as.exe -o g:/djgpp/tmp\ccDlfJCt.o g:/djgpp/tmp\ccQfZiy8.s
 g:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o hello
g:/djgpp/lib/crt0.o -Lg:
/djgpp/lib -Lg:/djgpp/lib/gcc-lib/djgpp/2.953 -Lg:/djgpp/bin
-Lg:/djgpp/lib g:/d
jgpp/tmp\ccDlfJCt.o -lgcc -lc -lgcc -Tdjgpp.djl
 g:/djgpp/bin/stubify.exe -v hello

J:\junk>
UNQUOTE

Here is a list of my DOS environment variables, obtained via the DOS
command
(J:\junk>set > env.dat):

TMP=C:\WINDOWS\TEMP
winbootdir=C:\WINDOWS
COMSPEC=C:\COMMAND.COM
PROMPT=$p$g
EIFFEL4=F:\EIFFEL45
SMALLEIFFEL=H:\elj-win32\SmallEiffel
AMZI4=G:\AMZI4\bin
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
DJGPP=g:/djgpp/djgpp.env
TEMP=C:\TEMP
SOUND=C:\VIBRA16
MIDI=SYNTH:1 MAP:E
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H5 P330 T6

And here is a partial quote of djgpp.env in the directory where I
installed djgpp (namely, g:\djgpp):

#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+GROUP=root
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=y
+TEXMFMAIN=%DJDIR%/share/texmf
+GO32STUB=%DJDIR%/bin/stubify.exe
<snip>

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc

[gcc]
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib
<snip>

[locate]
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat
<snip>

[bash]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site

[sh]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site
<snip>

[rhide]
RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx
RHIDE_TYPED_LIBS_DJGPP.f=g2c m
UNQUOTE

Any help would be much appreciated.
Sincerely,
ANW

- Raw text -


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