[asterisk-bugs] [Zaptel 0010278]: tor2ee fails to build

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Sep 6 16:00:17 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10278 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   10278
Category:                   Utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 2673 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-23-2007 18:06 CDT
Last Modified:              09-06-2007 16:00 CDT
====================================================================== 
Summary:                    tor2ee fails to build
Description: 
tor2ee has an include of <pci/pci.h> . This should be replaced with
<linux/pci/pci.h> (there is already an include of <linux/ppp_defs.h
there).

However at least on my system, there is no linux/pci/pci.h : only
linux/pci.h . And I get many build errors:

gcc -DHOTPLUG_FIRMWARE -g -Wall -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE   
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\"
-I/lib/modules/2.6.21.3boole1/build/include/linux -o to
r2ee.o -c tor2ee.c
In file included from /usr/include/sys/types.h:133,
                 from tor2ee.c:32:
/lib/modules/2.6.21.3boole1/build/include/linux/time.h:13: error: expected
specifier-qualifier-list before ‘time_t’
/lib/modules/2.6.21.3boole1/build/include/linux/time.h:19: error: expected
specifier-qualifier-list before ‘time_t’
In file included from /usr/include/sys/select.h:46,
                 from /usr/include/sys/types.h:216,
                 from tor2ee.c:32:
/usr/include/bits/time.h:70: error: redefinition of ‘struct timeval’
In file included from /usr/include/sys/types.h:266,
                 from tor2ee.c:32:
/usr/include/bits/pthreadtypes.h:50: error: expected
specifier-qualifier-list before ‘size_t’
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from tor2ee.c:35:
/usr/include/gconv.h:72: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/gconv.h:88: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/gconv.h:97: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before
‘size_t’
In file included from /usr/include/stdio.h:72,
                 from tor2ee.c:35:
/usr/include/libio.h:354: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/libio.h:363: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/libio.h:479: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from tor2ee.c:35:
/usr/include/stdio.h:302: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdio.h:309: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdio.h:351: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdio.h:353: error: format string argument not a string type
/usr/include/stdio.h:355: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdio.h:603: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:609: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:631: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:633: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
In file included from tor2ee.c:37:
/usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
/usr/include/stdlib.h:450: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdlib.h:480: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdlib.h:482: error: nonnull argument with out-of-range
operand number (argument 1, operand 4)
/usr/include/stdlib.h:584: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:586: error: expected ‘)’ before ‘__nmemb’
/usr/include/stdlib.h:595: error: expected declaration specifiers or
‘...’ before ‘size_t’
In file included from /usr/include/stdlib.h:606,


Skipping the rest of them.

Anybody using it? Building it successfully?
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 09-06-07 16:00  
---------------------------------------------------------------------- 
Given that users never had access to the firmware outside of the loading of
the tor2 module anyway, I'd say retire this module, as its use is
irrelevant.  It looks like it was only ever used for internal debugging of
the firmware. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-06-07 16:00  Corydon76      Note Added: 0070066                          
======================================================================




More information about the asterisk-bugs mailing list