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'

Submitted by:  Alexander Gattin <xrgtn>
Submitted on:  Wed 17 Mar 2010 03:20:18 PM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.0.3
Fixed Release: 4.1.0Planned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
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
  • -unavailable- added by sadrul (Posted a comment)
  • -unavailable- added by xrgtn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 14 Apr 2010 03:11:29 PM UTCsadrulStatusNeed Info=>Duplicate
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.1.0
    Thu 18 Mar 2010 12:16:17 AM UTCsadrulStatusNone=>Need Info
    Wed 17 Mar 2010 03:20:18 PM UTCxrgtnAttached File-=>Added screen-4.0.3-hpux.diff, #19966

    Back to the top


    Powered by Savane 3.1-cleanup1