[Linux-ha-dev] Question about the "telecom/checkpointd/"
msoffen at iso-ne.com
Thu Jan 29 07:56:59 MST 2004
There is an option. For FreeBSD it is available as a port/package. For
Solaris the software will just need to be added and built.
The only pain is :
A getopt(1) replacement that supports GNU-style long options
Long description | Package | Sources | Main Web Site
Maintained by: sergei at FreeBSD.org
Requires: expat-1.95.6_1, gettext-0.12.1, gmake-3.80_1,
So to do long options on FreeBSD will require 4 additional packages (
gettext and gmake are already required ).
So I'll work it in as a "requirement" to the configure.in or would the BEST
solution be make it support both short/long options ? (i.e. -h, --help )
I'm not sure how to work this into Solaris yet. I'll work on that next.
Matt Soffen - Lead Application Developer
Boss - "My boss says we need some eunuch programmers."
Dilbert- "I think he means UNIX and I already know UNIX."
Boss - "Well, if the company nurse comes by, tell her I said
- Dilbert -
From: Horms [mailto:horms at verge.net.au]
Sent: Wednesday, January 28, 2004 8:55 PM
To: High-Availability Linux Development List
Subject: Re: [Linux-ha-dev] Question about the "telecom/checkpointd/"
On Wed, Jan 28, 2004 at 01:11:19PM -0500, Soffen, Matthew wrote:
> And I think I have figured out the issue.
> getopt_long does NOT exist on FreeBSD/Solaris.
> What was the benefit to using long instead of the standard getopt ?
So you can have long options. Are you sure this isn't provided at all?
If not I would suggest making a HAVE_GETOPT_LONG (or alternativley
MY_SYSTEM_IS_SO_CRUSTY_IT_DOESNT_EVEN_HAVE_GETOPT_LONG :) and making
some alternate code in checkpointd.c. It should just be a few lines
worth of change.
Other options would be to just removing the long options all together,
though it seems a shame to have to sink to that lowest common
denominator. Perhaps a good solution would be to using popt, that seems
to be pretty portable.
Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
Home Page: http://linux-ha.org/
More information about the Linux-HA-Dev