From mboxrd@z Thu Jan 1 00:00:00 1970 From: "B. James Phillippe" To: Jim Wilson Cc: egcs Mailing List Subject: Re: [980425] makeinfo errors Date: Wed, 29 Apr 1998 18:36:00 -0000 Message-id: References: <199804292213.PAA01379@rtl.cygnus.com> X-SW-Source: 1998-04/msg01175.html On Wed, 29 Apr 1998, Jim Wilson wrote: > It appears that the getopt_long function call in texinfo's main function > is failing. It isn't recognizing -o as an option, so it tries to treat it > as a file, and then we get a 'No such file of directory' message from perror. Exactly. > Perhaps the problem here is that your system compiler (gcc?, cc?) is > miscompiling texinfo/lib/getopt1.c. You could try compiling egcs with > a different compiler than the one you have been using. No, that wasn't it. However, I did find the problem. I happen to be one of those very rare people who lives with the environment variable POSIXLY_CORRECT set. :) getopt (et al) act differently with this variable set, and programs which use command-line arguments in a non-POSIXly conformant fashion will probably break. When I unset this variable, the problem vanishes. I will look at it closer this evening to determine exactly what is happening. My guess is that argument processing is stopping early. thanks, -bp -- B. James Phillippe Linux Software Engineer, WGT Inc. http://earth.terran.org/~bryan