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

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


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18384 
====================================================================== 
Reported By:                bjm
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18384
Category:                   Core/Portability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
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:              
====================================================================== 
Date Submitted:             2010-11-26 15:32 CST
Last Modified:              2010-11-29 01:27 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.

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

---------------------------------------------------------------------- 
 (0129188) svnbot (reporter) - 2010-11-29 01:27
 https://issues.asterisk.org/view.php?id=18384#c129188 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 296533

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

------------------------------------------------------------------------
r296533 | tilghman | 2010-11-29 01:27:11 -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=296533 

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




More information about the asterisk-bugs mailing list