[asterisk-bugs] [DAHDI-linux 0014402]: implicit declaration of function 'module_refcount' when building dahdi

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Feb 8 23:58:56 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14402 
====================================================================== 
Reported By:                sruffell
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14402
Category:                   Astribank (xpp)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Target Version:             2.2.0
====================================================================== 
Date Submitted:             2009-02-04 09:40 CST
Last Modified:              2009-02-08 23:58 CST
====================================================================== 
Summary:                    implicit declaration of function 'module_refcount'
when building dahdi
Description: 
When building dahdi-linux 2.1.0.4 a user received the following error

/usr/src/asterisk/1.6/dahdi-linux-2.1.0.4/drivers/dahdi/xpp/xproto.c: In
function 'xproto_get':
/usr/src/asterisk/1.6/dahdi-linux-2.1.0.4/drivers/dahdi/xpp/xproto.c:96:
error: implicit declaration of function 'module_refcount'
make[3]: ***


This was since his kernel did not define CONFIG_MODULE_UNLOAD and
module_refcount is only defined when CONFIG_MODULE_UNLOAD is defined. 

See line 391 in
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/module.h;h=f3b8329eb5b877d7233ab66d566dd280fc78536c;hb=HEAD
====================================================================== 

---------------------------------------------------------------------- 
 (0099677) svnbot (reporter) - 2009-02-08 23:58
 http://bugs.digium.com/view.php?id=14402#c99677 
---------------------------------------------------------------------- 
Repository: zaptel
Revision: 4625

U   branches/1.4/kernel/xpp/xproto.c

------------------------------------------------------------------------
r4625 | tzafrir | 2009-02-08 23:58:55 -0600 (Sun, 08 Feb 2009) | 6 lines

Fix building Zaptel with module unloading disabled

As moduel_refcount is only used for debugging, disable it in this
non-common case.
(Issue http://bugs.digium.com/view.php?id=14402)

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

http://svn.digium.com/view/zaptel?view=rev&revision=4625 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-08 23:58 svnbot         Checkin                                      
2009-02-08 23:58 svnbot         Note Added: 0099677                          
======================================================================




More information about the asterisk-bugs mailing list