[csw-dev] getopt.h missing on solaris8

Aubrey Li aubreylee at gmail.com
Sun Mar 30 19:41:01 CEST 2008


On Mon, Mar 31, 2008 at 12:29 AM, Dennis Clarke <dclarke at blastwave.org> wrote:
>
>
>  > On Sun, Mar 30, 2008 at 11:35 PM, Dennis Clarke <dclarke at blastwave.org>
>  > wrote:
>  >>
>  >>
>  >>  > 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?
>  >>
>  >>  Solaris 8 is scheduled to be dropped entirely into the "time and
>  >> material"
>  >>  support class by Sun for Q12009.  That is March 2009.  I hope to have all
>  >> of
>  >>  the Solaris 10 based infrastructure up to speed before then.
>  >>
>  >>  Dennis
>  >>
>  >
>  > Of course I can't wait then, my account will be invalid in one month, ;-)
>
>  Say what ?  What account ?
For new maintainer, I have 30 days to create my first package, or my
account will expire.

Anyway, I made a simple link getopt staff in my application, and my
first package
was born successfully, ;-)

Thanks,
-Aubrey



More information about the devel mailing list