Shaun,<br><br>CONFIG_MODULES wasn&#39;t enabled - thanks for the advice!<br><br><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 4:02 PM, Shaun Ruffell <span dir="ltr">&lt;<a href="mailto:sruffell@digium.com">sruffell@digium.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 1/30/11 8:45 PM, David Cunningham wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I&#39;m installing Asterisk with Dahdi on a server with a custom kernel<br>
compile. I&#39;ve got the kernel source in<br>
/lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build which points to<br>
/usr/src/linux-headers-2.6.34.6 and I think that&#39;s fine, but am getting<br>
all these &quot;struct module&quot; errors.<br>
<br>
Can anyone advise? Thanks!<br>
<br>
<br>
# make<br>
make -C drivers/dahdi/firmware firmware-loaders<br>
make[1]: entrant dans le répertoire «<br>
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »<br>
make[1]: quittant le répertoire «<br>
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »<br>
make -C /lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build<br>
SUBDIRS=/usr/src/dahdi-linux-2.4.0/drivers/dahdi<br>
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.4.0/include DAHDI_MODULES_EXTRA=&quot; &quot;<br>
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m<br>
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.34.6 »<br>
   CC [M]  /usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.o<br>
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function<br>
‘dahdi_register_tone_zone’:<br>
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1440: error:<br>
invalid use of undefined type ‘struct module’<br>
</blockquote>
<br></div>
Normally this is the result of not having CONFIG_MODULES set in your kernel config.  This is set when you check &quot;Enable loadable module support&quot; on the top level menu in menuconfig.<br>
<br>
Cheers,<br>
Shaun<br>
<br>
-- <br>
Shaun Ruffell<br>
Digium, Inc. | Linux Kernel Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> &amp; <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>US toll-free: +1 888 842 2720<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 8063 9019<br>

<br>