bugGNU Screen - Bugs: bug #29246, build fails on HP-UX 11.31:...

 
 

bug #29246: build fails on HP-UX 11.31: misc.c:619: error: too few arguments to function `setenv'

Submitter:  Alexander Gattin <xrgtn>
Submitted:  Wed 17 Mar 2010 03:20:18 PM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  4.0.3
Fixed Release:  4.1.0 Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Mar 2010 10:06:08 AM UTC, comment #3: 

Sorry, the NLIST_DECLARED problem still persists. I'll report it in separate bug.

Alexander Gattin <xrgtn>
Thu 18 Mar 2010 09:10:57 AM UTC, comment #2: 

Thanks, it's indeed fixed in git repository, with ./configure script trying to compile both 3-arg and 2-arg versions of setenv() and then defining USESETENV, HAVE_SETENV_3 and HAVE_SETENV_2 macros accordingly.

The git version also fixes issue with NLIST_DECLARED. Good job indeed -- screen compiled without any tweaks.

Alexander Gattin <xrgtn>
Thu 18 Mar 2010 12:16:17 AM UTC, comment #1: 

Please try the development version from git (http://git.savannah.gnu.org/cgit/screen.git). I believe it's fixed in there.

Sadrul Habib Chowdhury <sadrul>
Group administrator
Wed 17 Mar 2010 03:20:18 PM UTC, original submission:  

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.

Alexander Gattin <xrgtn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #19966:  screen-4.0.3-hpux.diff added by xrgtn (397B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sadrul (Posted a comment)
  • -email is unavailable- added by xrgtn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-14 sadrul StatusNeed Info Duplicate
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.1.0
    2010-03-18 sadrul StatusNone Need Info
    2010-03-17 xrgtn Attached File- Added screen-4.0.3-hpux.diff, #19966

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code