X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <508a729d-3b21-4140-8da0-c2061e93c559 AT p21g2000prn DOT googlegroups DOT com> (message from LM on Fri, 12 Jun 2009 05:02:20 -0700 (PDT)) Subject: Re: problems with gnu configure on djgpp References: <508a729d-3b21-4140-8da0-c2061e93c559 AT p21g2000prn DOT googlegroups DOT com> Message-Id: Date: Fri, 12 Jun 2009 23:17:35 -0400 Reply-To: djgpp AT delorie DOT com > From: LM > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 12 Jun 2009 05:02:20 -0700 (PDT) > > I noticed some others were having problems with this, but wasn't able > to figure out how to solve this from some of the other posts I read. > Is there a 'how to' or something on getting configure to work well > with djgpp? Install every package in v2gnu, and you should be set up. > bash-2.04$ ./configure > configure: loading site script c:/djgpp/share/config.site > configure: loading cache /dev/null > ./configure: .: /dev/null: not a regular file What OS is that? Also, what line in the configure script triggers this error message? In general, errors in running configure scripts in DJGPP may happen due to 3 broad classes of reasons: . You don't have some program installed that the script needs. . The script was not written with portability to DOS/Windows in mind. . Bugs in DJGPP ports of GNU packages invoked by the script. > checking for a BSD-compatible install... /dev/env/DJDIR/bin/ginstall - > c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... no > checking for nawk... no > checking for awk... no > checking whether make sets $(MAKE)... yes > checking for gcc... no > checking for cc... no > checking for cc... no > checking for cl... no > configure: error: no acceptable C compiler found in $PATH > See `config.log' for more details. Looks like you don't have Gawk and GCC installed (because it did find ginstall.exe, apparently). > Wanted to try to build some cross-platform Open Source applications in > djgpp to test out on FreeDOS. Please notice that successfully running the configure script is just the first, and not the hardest part of porting a Unix program to DJGPP. You may have additional bummers when linking (because some required library or function is not part of DJGPP and wasn't ported). But the hardest part is making sure the built program works on DOS/Windows as it would on Unix, which means you need to check the code for assumptions that are false on non-Posix platforms, such as the syntax of file names ("d:/foo/bar" or "D:/foo\bar" as opposed to "/foo/bar"), the ability to rename or delete open files, certain standard directories (like /usr/bin) in the tree, etc. Feel free to come here and ask for advice, and thanks for doing this. > I'm building on a Windows XP machine at > the moment and set the long file names in regedit as mentioned in the > FAQ. Windows XP does not need any Registry settings to support long file names. The FAQ advice is for older Windows versions.