On 1/30/11 8:45 PM, David Cunningham wrote:

I'm installing Asterisk with Dahdi on a server with a custom kernel
compile. I've got the kernel source in
/lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build which points to
/usr/src/linux-headers-2.6.34.6 and I think that's fine, but am getting
all these "struct module" errors.

Can anyone advise? Thanks!


# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: entrant dans le répertoire «
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »
make[1]: quittant le répertoire «
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »
make -C /lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build
SUBDIRS=/usr/src/dahdi-linux-2.4.0/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.4.0/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.34.6 »
   CC [M]  /usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_register_tone_zone’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1440: error:
invalid use of undefined type ‘struct module’

Normally this is the result of not having CONFIG_MODULES set in your kernel config. This is set when you check "Enable loadable module support" on the top level menu in menuconfig.

Cheers,
Shaun

--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- 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