bugGNU Screen - Bugs: bug #24082, build issue soalris 10 - setenv

 
 

bug #24082: build issue soalris 10 - setenv

Submitted by:  None
Submitted on:  Sat 16 Aug 2008 04:22:26 PM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.0.3
Fixed Release: NonePlanned 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.

 

Sat 16 Aug 2008 06:41:44 PM UTC, comment #1:

Try the current git sources https://savannah.gnu.org/git/?group=screen.

Duplicate of bug 15921.

Micah Cowan <micahcowan>
Sat 16 Aug 2008 04:22:26 PM UTC, original submission:

screen fails to build on Solaris 10 / OpenSolaris

The reason seems to be that the setenv system call is now defined in stdlib.h, with 3 args. I assume this for POSIX compliance. In Solaris 8 at least the entry in stdlib.h is not there.

Anyway misc.h fails to compile:

gcc -c -I. -I. -g -O2 misc.c
misc.c: In function 'xsetenv':
misc.c:619: error: too few arguments to function 'setenv'

the relevant part of stdlib.h is:

#if defined(_EXTENSIONS_) || \
(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
defined(_XPG6)
extern int posix_openpt(int);
extern int setenv(const char , const char , int);
extern int unsetenv(const char *);
#endif

configure seems to compile a small test program with a 2-arg setenv call, however that small test program does not "#incloude <stdlib.h>" and hence does not generate any error.

Does this count as a bug in screen, or an auto* tool?

Cheers
KM

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by micahcowan (Posted a comment)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Aug 2008 06:41:44 PM UTCmicahcowanStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1