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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 9 00:03:26 CST 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14402 
====================================================================== 
Reported By:                sruffell
Assigned To:                tzafrir
====================================================================== 
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-09 00:03 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
====================================================================== 

---------------------------------------------------------------------- 
 (0099678) svnbot (reporter) - 2009-02-09 00:03
 http://bugs.digium.com/view.php?id=14402#c99678 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 5987

U   linux/trunk/drivers/dahdi/xpp/xproto.c

------------------------------------------------------------------------
r5987 | tzafrir | 2009-02-09 00:03:26 -0600 (Mon, 09 Feb 2009) | 6 lines

Fix building DAHDI with module unloading disabled

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

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-09 00:03 svnbot         Checkin                                      
2009-02-09 00:03 svnbot         Note Added: 0099678                          
2009-02-09 00:03 svnbot         Assigned To               => tzafrir         
======================================================================




More information about the asterisk-bugs mailing list