URL: <http://savannah.gnu.org/bugs/?29246>
Summary: build fails on HP-UX 11.31: misc.c:619: error: too few arguments to function `setenv' Project: GNU Screen Submitted by: xrgtn Submitted on: Wed 17 Mar 2010 05:20:18 PM EET Category: Build/Install Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 4.0.3 Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Details: HP-UX 11.31, man setenv: SYNOPSIS #include <stdlib.h> int setenv(const char *envname, const char *envval, int overwrite); ... STANDARDS CONFORMANCE setenv(): UNIX 03 ... Hewlett-Packard Company - 3 - HP-UX 11i Version 3 Feb 2007 AFAIU, this "UNIX 03" thing refers to X/Open 2003 standard and corresponds to _XOPEN_SOURCE=600. Thus misc.c should check _XOPEN_SOURCE, but even better solution would be to check whether the setenv() wants 2 parameters, 3 parameters or isn't defined at all during ./configure run and define e.g. USESETENV2 and USESETENV3 macros accordingly. P.S. On HP-UX 11.11 there's no setenv() function at all. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Wed 17 Mar 2010 05:20:18 PM EET Name: screen-4.0.3-hpux.diff Size: 397B By: xrgtn <http://savannah.gnu.org/bugs/download.php?file_id=19966> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29246> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/