[csw-dev] getopt.h missing on solaris8

Murray.Jensen at csiro.au Murray.Jensen at csiro.au
Sun Mar 30 15:29:15 CEST 2008


On Sun, 30 Mar 2008 19:29:30 +0800, "Aubrey Li" writes:
>getopt.h and its lib is missing on this box.
>what is the right way to fix this issue?

Solaris 8 doesn't have getopt.h - or the gnu getopt* functions in libc.

Grab the source from gnulib and link it in with your application ...

	http://www.gnu.org/software/gnulib/

or direct to getopt module ...

	http://www.gnu.org/software/gnulib/MODULES.html#module=getopt

There are links for each of the following files

	getopt.in.h
	getopt.c
	getopt1.c
	getopt_int.h

but the first one is bogus - it should be getopt.h ... click on the
link and when you get the error page, go into the address bar and
edit the url such that getopt.in.h is changed to getopt.h.

I think those four files will be enough ... you will have to figure
out how to link them in - usually edit a Makefile, Makefile.in or
Makefile.am file.

This has been discussed in the maintainers list before - but its not
your fault you didnt find it - the archives arent easily searchable
(unless someone else has a searchable interface?). Cheers!
								Murray...
--
Murray Jensen, CSIRO Materials Science and Engineering Phone: +61 3 9545 2075
Private Bag 33, Clayton South 3169, Australia            Fax: +61 3 9544 1128
Internet: Murray.Jensen at csiro.au

To the extent permitted by law, CSIRO does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained or
that the communication is free of errors, virus, interception or interference.

The information contained in this e-mail may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received this
e-mail in error, please delete it immediately and notify Murray Jensen on
+61 3 9545 2075. Thank you.



More information about the devel mailing list