Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] dahdi-linux 2.6.2 failing to compile with linux 3.13


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dcunningham at voisoni...
Guest





PostPosted: Thu Jun 12, 2014 9:55 pm    Post subject: [asterisk-users] dahdi-linux 2.6.2 failing to compile with l Reply with quote

Hello,

I'm getting the following errors when compiling dahdi-linux 2.6.2 under Ubuntu 14.04 with kernel 3.13.0-24-generic.

I did google and found one thread suggesting the errors should be fixed in 2.6.2, and another suggesting to try 2.4 which didn't make sense but I tried anyway, and it gave similar warnings.

Would anyone know how to make it compile? Thanks in advance.


make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
make -C /lib/modules/3.13.0-24-generic/build SUBDIRS=/usr/src/dahdi-linux-2.6.2/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
  CC [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning: #warning "No CONFIG_BKL is an experimental configuration." [-Wcpp]
 #warning "No CONFIG_BKL is an experimental configuration."
  ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘dahdi_proc_open’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error: implicit declaration of function ‘PDE’ [-Werror=implicit-function-declaration]
  return single_open(file, dahdi_seq_show, PDE(inode)->data);
  ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error: invalid type argument of ‘->’ (have ‘int’)
  return single_open(file, dahdi_seq_show, PDE(inode)->data);
                                                     ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_assign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
   span->proc_entry = create_proc_entry(tempfile, 0444,
   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:20: warning: assignment makes pointer from integer without a cast [enabled by default]
   span->proc_entry = create_proc_entry(tempfile, 0444,
                    ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error: dereferencing pointer to incomplete type
   span->proc_entry->data = (void *)(long)span->spanno;
                   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error: dereferencing pointer to incomplete type
   span->proc_entry->proc_fops = &dahdi_proc_ops;
                   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_unassign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error: dereferencing pointer to incomplete type
   remove_proc_entry(span->proc_entry->name, root_proc_entry);
                                     ^
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [_module_/usr/src/dahdi-linux-2.6.2/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [modules] Error 2
make: Leaving directory `/usr/src/dahdi-linux-2.6.2'
'make -C dahdi-linux-2.6.2 install' failed with 512.


--
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
Back to top
sruffell at digium.com
Guest





PostPosted: Fri Jun 13, 2014 9:34 am    Post subject: [asterisk-users] dahdi-linux 2.6.2 failing to compile with l Reply with quote

On Fri, Jun 13, 2014 at 12:54:14PM +1000, David Cunningham wrote:
Quote:
Hello,

I'm getting the following errors when compiling dahdi-linux 2.6.2 under
Ubuntu 14.04 with kernel 3.13.0-24-generic.
I did google and found one thread suggesting the errors should be fixed in
2.6.2, and another suggesting to try 2.4 which didn't make sense but I
tried anyway, and it gave similar warnings.
Would anyone know how to make it compile? Thanks in advance.


make[1]: Leaving directory
`/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
make -C /lib/modules/3.13.0-24-generic/build
SUBDIRS=/usr/src/dahdi-linux-2.6.2/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
CC [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning:
#warning "No CONFIG_BKL is an experimental configuration." [-Wcpp]
#warning "No CONFIG_BKL is an experimental configuration."
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘dahdi_proc_open’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error:
implicit declaration of function ‘PDE’
[-Werror=implicit-function-declaration]
return single_open(file, dahdi_seq_show, PDE(inode)->data);
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error:
invalid type argument of ‘->’ (have ‘int’)
return single_open(file, dahdi_seq_show, PDE(inode)->data);
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘_dahdi_assign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error:
implicit declaration of function ‘create_proc_entry’
[-Werror=implicit-function-declaration]
span->proc_entry = create_proc_entry(tempfile, 0444,
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:20: warning:
assignment makes pointer from integer without a cast [enabled by default]
span->proc_entry = create_proc_entry(tempfile, 0444,
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error:
dereferencing pointer to incomplete type
span->proc_entry->data = (void *)(long)span->spanno;
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error:
dereferencing pointer to incomplete type
span->proc_entry->proc_fops = &dahdi_proc_ops;
^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘_dahdi_unassign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error:
dereferencing pointer to incomplete type
remove_proc_entry(span->proc_entry->name, root_proc_entry);
^
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [_module_/usr/src/dahdi-linux-2.6.2/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [modules] Error 2
make: Leaving directory `/usr/src/dahdi-linux-2.6.2'
'make -C dahdi-linux-2.6.2 install' failed with 512.

This was fixed in the DAHDI sources in "dahdi: Replace
create_proc_entry() with proc_create_data()" [1]

You will need to update to at least dahdi-linux 2.8.0 if you would
like to run against kernels newer than 3.10.

[1] http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=84ccc65

--
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
Back to top
dcunningham at voisoni...
Guest





PostPosted: Fri Jun 13, 2014 6:41 pm    Post subject: [asterisk-users] dahdi-linux 2.6.2 failing to compile with l Reply with quote

Thank you very much.




On 14 June 2014 00:33, Shaun Ruffell <sruffell@digium.com (sruffell@digium.com)> wrote:
Quote:
On Fri, Jun 13, 2014 at 12:54:14PM +1000, David Cunningham wrote:
Quote:
Hello,

I'm getting the following errors when compiling dahdi-linux 2.6.2 under
Ubuntu 14.04 with kernel 3.13.0-24-generic.
I did google and found one thread suggesting the errors should be fixed in
2.6.2, and another suggesting to try 2.4 which didn't make sense but I
tried anyway, and it gave similar warnings.
Would anyone know how to make it compile? Thanks in advance.


make[1]: Leaving directory
`/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
make -C /lib/modules/3.13.0-24-generic/build
SUBDIRS=/usr/src/dahdi-linux-2.6.2/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
  CC [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning:
#warning "No CONFIG_BKL is an experimental configuration." [-Wcpp]
 #warning "No CONFIG_BKL is an experimental configuration."
  ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘dahdi_proc_open’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error:
implicit declaration of function ‘PDE’
[-Werror=implicit-function-declaration]
  return single_open(file, dahdi_seq_show, PDE(inode)->data);
  ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error:
invalid type argument of ‘->’ (have ‘int’)
  return single_open(file, dahdi_seq_show, PDE(inode)->data);
                                                     ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘_dahdi_assign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error:
implicit declaration of function ‘create_proc_entry’
[-Werror=implicit-function-declaration]
   span->proc_entry = create_proc_entry(tempfile, 0444,
   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:20: warning:
assignment makes pointer from integer without a cast [enabled by default]
   span->proc_entry = create_proc_entry(tempfile, 0444,
                    ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error:
dereferencing pointer to incomplete type
   span->proc_entry->data = (void *)(long)span->spanno;
                   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error:
dereferencing pointer to incomplete type
   span->proc_entry->proc_fops = &dahdi_proc_ops;
                   ^
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function
‘_dahdi_unassign_span’:
/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error:
dereferencing pointer to incomplete type
   remove_proc_entry(span->proc_entry->name, root_proc_entry);
                                     ^
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [_module_/usr/src/dahdi-linux-2.6.2/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [modules] Error 2
make: Leaving directory `/usr/src/dahdi-linux-2.6.2'
'make -C dahdi-linux-2.6.2 install' failed with 512.



This was fixed in the DAHDI sources in "dahdi: Replace
create_proc_entry() with proc_create_data()" [1]

You will need to update to at least dahdi-linux 2.8.0 if you would
like to run against kernels newer than 3.10.

[1] http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=84ccc65

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



--
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services