gnats-prs
[Top][All Lists]
Advanced

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

gnats/597: Can not compile: "unsetenv()" library function not found


From: bug-gnats
Subject: gnats/597: Can not compile: "unsetenv()" library function not found
Date: Mon, 24 Apr 2006 10:43:14 -0500 (CDT)

>Number:         597
>Category:       gnats
>Synopsis:       Can not compile: "unsetenv()" library function not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 24 10:43:14 -0500 2006
>Originator:     Alvin Sylvain
>Release:        4.1.0
>Organization:
C Square Technology
>Environment:
Sun Ultra 10, Solaris 8, gcc 3.3.2, gnu Make 3.80
>Description:
File gnats/client.c calls library function "unsetenv()" to clear the value for 
environment variable "GNATSDB". This library function does not exist in this 
environment. (Solaris 10 has it in stdlib, but not Solaris 8.)
>How-To-Repeat:
Attempt to compile 4.1.0 in environment
>Fix:
Suggest code substitution in gnats/client.c such as the following:

static char* clearGnatsDB = "GNATSDB=";

(void)putenv(clearGnatsDB);

Although, gcc warns about throwing away return value.
>Notify-List:    address@hidden
>Unformatted:





reply via email to

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