gnats-prs
[Top][All Lists]
Advanced

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

gnats/495: unsetenv() not defined on Solaris


From: malcolmp
Subject: gnats/495: unsetenv() not defined on Solaris
Date: Wed, 6 Apr 2005 21:08:02 -0500 (CDT)

>Number:         495
>Notify-List:    
>Category:       gnats
>Synopsis:       unsetenv() not defined on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 06 21:08:02 -0500 2005
>Originator:     Malcolm Purvis
>Release:        4.1.0
>Organization:
Aurema Pty Ltd, Sydney, Australia
>Environment:
Solaris 2.6 and Solaris 2.8 on a variety of UltraSparc machines.
>Description:
unsetenv() has been left off the list of functions that should have been 
retained when libiberty was removed.  The configure infrastructure is present 
to detect if the function is not present in the system, but the implementation 
of the function is not.

unsetenv() is not present in Solaris 2.6 nor 2.8 and so GNATS does not build on 
these systems.
>How-To-Repeat:
Build GNATS 4.1.0 on a Solaris 2.8 machine.
>Fix:
Apply the attached patch.
>Unformatted:
 ----gnatsweb-attachment----
 Content-Type: text/x-patch; name="unsetenv.patch"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="unsetenv.patch"
 
 ZGlmZiAtdXByIGduYXRzLTQuMS4wLm9yaWcvZ25hdHMvbWlzYy5jIGduYXRzLTQuMS4wL2duYXRz
 L21pc2MuYwotLS0gZ25hdHMtNC4xLjAub3JpZy9nbmF0cy9taXNjLmMJMjAwNS0wMi0yNSAwNzoz
 NTo1NS4wMDAwMDAwMDAgKzExMDAKKysrIGduYXRzLTQuMS4wL2duYXRzL21pc2MuYwkyMDA1LTA0
 LTA3IDExOjM4OjIwLjQ1MDMzOTAwMCArMTAwMApAQCAtOTQ0LDMgKzk0NCwyOCBAQCBiYXNlbmFt
 ZSAobmFtZSkKICAgcmV0dXJuIChjaGFyICopIGJhc2U7CiB9CiAjZW5kaWYgLyogSEFWRV9CQVNF
 TkFNRSAqLworCisjaWZuZGVmIEhBVkVfVU5TRVRFTlYKKyNkZWZpbmUgX19lbnZpcm9uCWVudmly
 b24KK2V4dGVybiBjaGFyICoqZW52aXJvbjsKKwordm9pZAordW5zZXRlbnYgKG5hbWUpCisgICAg
 IGNvbnN0IGNoYXIgKm5hbWU7Cit7CisgIGNvbnN0IHNpemVfdCBsZW4gPSBzdHJsZW4gKG5hbWUp
 OworICBjaGFyICoqZXA7CisKKyAgZm9yIChlcCA9IF9fZW52aXJvbjsgKmVwOyArK2VwKQorICAg
 IGlmICghc3RybmNtcCAoKmVwLCBuYW1lLCBsZW4pICYmICgqZXApW2xlbl0gPT0gJz0nKQorICAg
 ICAgeworCS8qIEZvdW5kIGl0LiAgUmVtb3ZlIHRoaXMgcG9pbnRlciBieSBtb3ZpbmcgbGF0ZXIg
 b25lcyBiYWNrLiAgKi8KKwljaGFyICoqZHAgPSBlcDsKKwlkbworCSAgZHBbMF0gPSBkcFsxXTsK
 Kwl3aGlsZSAoKmRwKyspOworCS8qIENvbnRpbnVlIHRoZSBsb29wIGluIGNhc2UgTkFNRSBhcHBl
 YXJzIGFnYWluLiAgKi8KKyAgICAgIH0KKworfQorI2VuZGlmIC8qICFIQVZFX1VOU0VURU5WICov
 Cg==
 



reply via email to

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