On Sun, 10 Apr 2011, Shaun Ruffell wrote:

On Sun, Apr 10, 2011 at 05:32:51PM +0200, bakko wrote:
this diff solve the problem:

--- include/dahdi/kernel.h 2010-08-19 20:03:25.000000000 +0200
+++ include/dahdi/kernel.h 2011-03-18 11:32:32.000000000 +0100
@@ -86,7 +86,9 @@
 #endif

 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
-#define dev_name(dev)  (dev)->bus_id
+#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5,6)
+#define dev_name(dev)         (dev)->bus_id
+#endif
 #define dev_set_name(dev, format, ...) \
  snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__);
 #endif


There is a patch for this attached on issue 18992 [1] that should work
regardless of which distribution may have back ported the dev_name
definition.  It will apply cleanly to both 2.4 and the current trunk.
For example, to apply it on top of 2.4.1.1:

]# svn co http://svn.asterisk.org/svn/dahdi/linux/tags/2.4.1.1 
dahdi-linux-2.4.1.1
]# cd dahdi-linux-2.4.1.1
]# wget 'https://issues.asterisk.org/file_download.phpfile_id=29097&type=bug' 
-O - | patch -p1

[1] https://issues.asterisk.org/view.php?id=18992

Will this be added to the AsteriskNow rpms at some point or do I need to
build my own?

Also, does this mean that for RHEL-6 and its clones there is going to be an
issue?

Regards,

--
Tom                     [email protected]         Spamtrap address                
        [email protected]

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to