[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gv] Re: gv-3.6.1 and solaris

From: Quanah Gibson-Mount
Subject: [bug-gv] Re: gv-3.6.1 and solaris
Date: Sun, 17 Sep 2006 22:35:51 -0000

--On Sunday, September 17, 2006 3:07 PM -0700 Quanah Gibson-Mount <address@hidden> wrote:

GV 3.6.1 will not compile on Solaris for (at least) two reasons:

(a) It wants to use getopt.h, which doesn't on Solaris.  This can be
worked around without too much difficulty, but it is still annoying.

(b) It uses the "setenv" function, which doesn't exist under Solaris.

I haven't worked around this last one yet, since it requires using putenv
(yuck).  But it'd be nice if it was more portable than just working on

Okay, using the setenv.c from:


I was able to get it to build on Solaris just fine.

For problem (a) I just copied over the option struct from getopt.h on linux, as well as the definitions of:

# define no_argument        0
# define required_argument  1
# define optional_argument  2

into main.c. You also have to link against libiberty on Solaris so that getopt_long is defined.


Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]