Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3B00349F.AC7BB2BE@phekda.freeserve.co.uk> Date: Mon, 14 May 2001 20:40:15 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Fileutils 4.0 and symlinks References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > Did some DJGPP program GPFault? If so, please post the crash message. No - the DOS box crashed - see my other mail to Martin. > Richard Dawe wrote: > > > In the end I settled on putting the include and library directories > > for the DJGPP CVS area ahead of the default ones. > > > > CFLAGS="-g -O2 -I$CVSDIR/include" \ > > LDFLAGS="-g -O2 -L$CVSDIR/lib" \ > > ./configure --disable-nls > > > > I still encountered some a weird problem. When I tried to link > > programs, I got errors about '-lgcc' or '-lc' not being found. This > > was strange because adding '-g' to the gcc line showed that the > > directories containing libgcc.a and libc.a were in the search path. > > You could add -v to the compiler switches and then see where did it > try to look for files. It's possible that it still looks at $DJDIR in > preference to some of the command-line switches that try to override > that; if so, it's important to know which switches are not honored. Oops, I did use '-v' not '-g' as written. The paths it listed included both the CVS and stock 2.03 libc.a and also libgcc.a from gcc 2.95.3. That was why the problem was so strange. gcc was telling me it was looking in the right places to find the libraries, but then failing to find them! > > I think the problem was that there were too many open files, because > > another program generated the "too many files open" error. It turned > > out that restarting Windows solved the problem. > > You can enlarge the maximum number of files by editing SYSTEM.INI; see > section 9.7 of the FAQ for details. (Btw, this seems to be the _only_ > way to control that on Windows ME.) Thanks, Eli. This is the first time I've encountered a "too many open files" error in all the time I've been using DJGPP, so I think it is a result of the DOS box crash leaving some files open. If I hit this error again, I'll raise the limit. Thanks, bye, Rich =] -- Richard Dawe http://www.phekda.freeserve.co.uk/richdawe/