Message-Id: <4.3.2.7.0.20000813160836.00acd790@mail.subdimension.com> X-Sender: matt DOT l AT mail DOT subdimension DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sun, 13 Aug 2000 16:09:15 -0700 To: djgpp AT delorie DOT com From: Matt Lewandowsky Subject: Re: Uh oh. Another newbie. (Sorta...) Cc: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain Reply-To: djgpp AT delorie DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I get the following from trying to compile either termcap-1.3 or termutils-2.0. (I haven't gotten terminfo to download yet...) - --BEGIN SNIPPET--- lewellyn AT mattlap:/src/termcap-1.3*420$ make cc -c -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 - -DSTDC_HEADERS=1 -DTERMCAP_FILE=\"/e tc/termcap\" -I. -I. -g -v tparam.c Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.952/specs gcc version 2.95.2 19991024 (release) d:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c -v -I. -I. -D__GNUC__=2 - -D__GN UC_MINOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ - -D__G O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 - -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -g -Acpu(i386) - -Amac hine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros d:/djgpp/bin/. ./include/sys/version.h -remap -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 - -DSTDC_HEADER S=1 -DTERMCAP_FILE="/etc/termcap" tparam.c d:/djgpp/tmp\ccBaCppi.i GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: . d:/djgpp/include d:/djgpp/lib/gcc-lib/djgpp/2.952/include d:/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.952/../../../../djgpp/include End of omitted list. d:/djgpp/lib/gcc-lib/djgpp/2.952/cc1.exe d:/djgpp/tmp\ccBaCppi.i -quiet - -dumpba se tparam.c -g -version -o d:/djgpp/tmp\ccIcA06y.s GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). In file included from tparam.c:29: d:/djgpp/include/string.h:52: parse error before `(' d:/djgpp/include/string.h:52: parse error before `const' make.exe: *** [tparam.o] Error 1 lewellyn AT mattlap:/src/termcap-1.3*421$ - ---END SNIPPET--- Just to make it easier to locate (even though it's a short file), line 52 of strings.h reads: void * bcopy(const void *_a, void *_b, size_t _len); Note that I actually gave -v output this time... ;) I'm really not sure what strings.h this line should be, but something's not correct... (Is this another fairly well-known thing that I've stumbled upon? If so, could someone list others I'm likely to hit?) I've been pounding on this for a couple days now, but to no avail. Is there an alternate set of headers available that work that may solve this problem? (Please don't laugh...) Perhaps I'm just trying to do the impossible for DOS? - --Matt At 10:46 PM 8/9/00, Eli Zaretskii wrote: >On Mon, 7 Aug 2000, Matt Lewandowsky wrote: > > > I'm kinda amazed theres no termcap/terminfo support under DJGPP... > >This is true. No one was motivated enough to write such support, >although it would be easy enough to do, now that we have termios >emulation. > >Please feel free to fill the void ;-) If you need help and guidance, >please send your questions to djgpp-workers AT delorie DOT com, the DJGPP >developers' mailing list. > > > Are there any compatible implementations I could build? (I didn't find > > anything in the FAQ about this, either. I guess I'm just having more > > problems than anyone should...) > >The usual practice when porting programs which rely on termcap is to >modify the code to use direct screen I/O. Some examples of this >approach can be found in ports of Info (in the Texinfo distribution), >and in the Readline library. > >Also, there's GNU termcap, but I don't think it will work with DJGPP >without some porting. It might get you through the configure and >build stages, though, if you download and compile it, even without >changing the original code. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use iQA/AwUBOZcqm+oMko8dOmunEQLeIACfVbnvraOPmP1fzpqzwJSs4DZ4/JIAn3s2 xk8Q/Myjb2uFPBFQ7epNQO9q =zPVT -----END PGP SIGNATURE-----