bugGNU Screen - Bugs: bug #24046, building misc.c issue with solaris...

 
 

bug #24046: building misc.c issue with solaris 10

Submitted by:  None
Submitted on:  Tue 12 Aug 2008 03:44:24 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.

 

Tue 12 Aug 2008 07:19:19 PM UTC, comment #1:

Dupe of bug 15921; please try the latest sources from git ("Source Code" link in menu at top of page).

Many OSses were suffering from this issue; rather than listing them all explicitly, a patch was applied that explicitly checks for the 2-arg/3-arg forms of setenv, and uses the correct one.

Micah Cowan <micahcowan>
Tue 12 Aug 2008 03:44:24 PM UTC, original submission:

Hi,

I just tried to compile the new screen 4.0.3 package on my solaris 10 machine.

I had to change a define row to get it working with SunStudio 10 compiler and a Solaris 10 (sparc) System:

--- screen-4.0.3/misc.c_orig 2003-12-05 13:45:41.000000000 +0000
+++ screen-4.0.3/misc.c 2008-08-12 14:56:18.444823000 +0000
@@ -611,11 +611,11 @@
* We are sorry to say that memory is lost here, when setting
* the same variable again and again.
*/
# endif /* NEEDSETENV */
#else /* USESETENV */
-# if defined(linux) || defined(_convex_) || (BSD >= 199103)
+# if defined(linux) || defined(_convex_) || (BSD >= 199103) || defined(sun)
setenv(var, value, 1);
# else
setenv(var, value);
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */

Otherwise it would use setenv with 2 values which doesn't work in solaris 10 (not sure of other versions of solaris).

Cheers,

Daniel

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
    Tue 12 Aug 2008 07:19:19 PM UTCmicahcowanStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1