[csw-dev] getopt.h missing on solaris8

Aubrey Li aubreylee at gmail.com
Sun Mar 30 17:16:32 CEST 2008


On Sun, Mar 30, 2008 at 9:29 PM,  <Murray.Jensen at csiro.au> wrote:
> 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...

Thanks Murray, I'll have a try.
Just be curious, why don't we upgrade our system to solaris 10?

-Aubrey



More information about the devel mailing list