[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA: gerbv --help is wrong
On Sat, 21 Aug 2004, Karel Kulhavý wrote:
> On Fri, Aug 20, 2004 at 11:53:43PM +0200, Stefan Petersen wrote:
> > On Fri, 20 Aug 2004, Karel Kulhavý wrote:
> >
> > > clock@beton:~$ gerbv -V
> > > gerbv version 0.15
> > > (C) Stefan Petersen (spe@stacken.kth.se)
> > > clock@beton:~$ gerbv --version
> > > gerbv: invalid option -- -
> > > Usage : gerbv [FLAGS] <gerber file(s)>
> > > where FLAGS could be any of
> > > --version|-V : Prints version of gerbv
> > > --log=<logfile>|-l <logfile> : Send error messages to <logfile>
> >
> > I see two problems here:
> > * the long options don't work. This is probably due to the fact that
> > configure didn't find the function getopt_long and therefore didn't
> > include it in the build. If available if should be in your libc.
>
> I have a fairly new libc:
> /lib/libc-2.3.1.so
> installed with usual ./configure && make && make install. Do I need to enable
> some extra cosmic features of the libc to get getopt_long?
Don't know.
> gerbv should detect if getopt_long is available and if not, remove the long
> options from the help
Fixed in CVS.
> (and write into the manpage that they are available only on systems that
> support getopt_long).
This has been in the man page basically since the first release of gerbv.
Look at http://gerbv.sourceforge.net/gerbv-man.html after the word
"Warning!".
> And also options that exist only as long ones should not exist at all
> - otherwise the program stops being portable.
The only options that has only a long version (since Dimtri fixed it) is
the GTK flags.
/spe