bug-global
[Top][All Lists]
Advanced

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

Re: Problems on solaris 2.7 with global 4.1


From: Shigio Yamaguchi
Subject: Re: Problems on solaris 2.7 with global 4.1
Date: Sat, 28 Jul 2001 02:47:38 +0900

> if I do
> /home/me/build> mkdir output
>                 cd global-4.1
>                 gtags /home/me/build/output
> 
> you get
>                 gctags: GTAGS not found. (./GTAGS)
> 
> it appears to be generated during the gctags -r phase.  In output all 4 tags 
> files are created but GRTAGS is 0 length.

You are right.
It seem that environment variable GTAGSDBPATH isn't sent to gctags.
Gtags use putenv(3) or setenv(3) like this:

---------------------------------------------------------------------
Setting GTAGSDBPATH [gtags/gtags.c line 309]
---------------------------------------------------------------------
        /*
         * teach gctags(1) where is dbpath by environment variable.
         */
#ifdef HAVE_PUTENV
        {
                STRBUF *env = strbuf_open(0);

                strbuf_puts(env, "GTAGSDBPATH=");       ----------------+
                strbuf_puts(env, dbpath);                               |
                putenv(strbuf_value(env));                              |
                strbuf_close(env);                                      |
        }                                                               |
#else                                                                   |
        setenv("GTAGSDBPATH", dbpath, 1);               ----------------+
#endif /* HAVE_PUTENV */                                                |
                                                                        |
---------------------------------------------------------------------   |
Getting GTAGSDBPATH [libutil/defined.c line 49] (called by gctags)      |
---------------------------------------------------------------------   |
                /*                                                      |
                 * gtags(1) set GTAGSDBPATH to the path GTAGS exist.    |
                 */                                                     |
                if (!(dbpath = getenv("GTAGSDBPATH")))  <---------------+
                        dbpath = ".";


How to communicate by environment variable in solaris?
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)




reply via email to

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