[asterisk-bugs] [Asterisk 0018384]: [patch] main/asterisk.c compile errors

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 29 01:28:45 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18384 
====================================================================== 
Reported By:                bjm
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   18384
Category:                   Core/Portability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!): 296354 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-11-26 15:32 CST
Last Modified:              2010-11-29 01:28 CST
====================================================================== 
Summary:                    [patch] main/asterisk.c compile errors
Description: 
Compiling on OpenBSD results in

asterisk.c:1209: error: 'struct ucred' has no member named 'uid'
asterisk.c:1210: error: 'struct ucred' has no member named 'gid'

OpenBSD uses cr_uid and cr_gid instead.

====================================================================== 

---------------------------------------------------------------------- 
 (0129189) svnbot (reporter) - 2010-11-29 01:28
 https://issues.asterisk.org/view.php?id=18384#c129189 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 296534

_U  branches/1.8/
U   branches/1.8/configure
U   branches/1.8/configure.ac
U   branches/1.8/include/asterisk/autoconfig.h.in
U   branches/1.8/main/asterisk.c

------------------------------------------------------------------------
r296534 | tilghman | 2010-11-29 01:28:45 -0600 (Mon, 29 Nov 2010) | 20
lines

Merged revisions 296533 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r296533 | tilghman | 2010-11-29 01:27:09 -0600 (Mon, 29 Nov 2010) | 13
lines
  
  I love standards.  There are so many to choose from.  Except when there
isn't one.
  
  Linux and *BSD disagree on the elements within the ucred structure. 
Detect
  which one is in use on the system.
  
  (closes issue https://issues.asterisk.org/view.php?id=18384)
   Reported by: bjm
   Patches: 
         cred-diffs uploaded by bjm (license 473)
         20101127__issue18384__1.6.2.diff.txt uploaded by tilghman
(license 14)
         20101127__issue18384__1.8.diff.txt uploaded by tilghman (license
14)
   Tested by: tilghman, bjm
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=296534 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-29 01:28 svnbot         Checkin                                      
2010-11-29 01:28 svnbot         Note Added: 0129189                          
======================================================================




More information about the asterisk-bugs mailing list