[asterisk-bugs] [Asterisk 0005537]: Zaptel-1.0.9.2 channel drivers do not include <asm/io.h> on Alpha.

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 11:07:34 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=5537 
====================================================================== 
Reported By:                khmann
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   5537
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           I did not set the version :( 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-28-2005 15:28 CDT
Last Modified:              06-07-2008 11:07 CDT
====================================================================== 
Summary:                    Zaptel-1.0.9.2 channel drivers do not include
<asm/io.h> on Alpha.
Description: 
compiling Zaptel on Alpha under current Debian 3.1 (Sarge) fails with the
following and then some:

wcfxo.c: In function `wcfxo_interrupt':
wcfxo.c:412: warning: implicit declaration of function `inb'
wcfxo.c:413: warning: implicit declaration of function `outb'
wcfxo.c: In function `wcfxo_hardware_init':
wcfxo.c:693: warning: implicit declaration of function `outl'

wcfxs.c: In function `__write_8bits':
wcfxs.c:487: warning: implicit declaration of function `outb'
wcfxs.c: In function `__read_8bits':
wcfxs.c:549: warning: implicit declaration of function `inb'
wcfxs.c: In function `wcfxs_hardware_init':
wcfxs.c:1903: warning: implicit declaration of function `outl'

this is gcc 3.3.5 libc6.1 (2.3.2.ds1-22).

placing an #include <asm/io.h> at the top of wcfxo.c, wcfxs.c, (and
presumably all other PCI drivers) fixes this and produces working zaptel.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 11:07  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 800

U   trunk/wcfxo.c
U   trunk/wctdm.c

------------------------------------------------------------------------
r800 | markster | 2008-06-07 11:07:27 -0500 (Sat, 07 Jun 2008) | 2 lines

Add missing io include (bug http://bugs.digium.com/view.php?id=5537)

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

http://svn.digium.com/view/dahdi?view=rev&revision=800 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 11:07  svnbot         Checkin                                      
06-07-08 11:07  svnbot         Note Added: 0088078                          
======================================================================




More information about the asterisk-bugs mailing list