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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 29 01:30:10 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:30 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.

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

---------------------------------------------------------------------- 
 (0129190) svnbot (reporter) - 2010-11-29 01:30
 https://issues.asterisk.org/view.php?id=18384#c129190 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 296535

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

------------------------------------------------------------------------
r296535 | tilghman | 2010-11-29 01:30:10 -0600 (Mon, 29 Nov 2010) | 27
lines

Merged revisions 296534 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r296534 | tilghman | 2010-11-29 01:28:44 -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=296535 

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




More information about the asterisk-bugs mailing list