[asterisk-bugs] [Asterisk 0012457]: Building chan_vpb in 1.4 fails with libvpb-dev 4.2.26-1

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Apr 16 07:33:38 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12457 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12457
Category:                   Channels/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 114148 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-16-2008 07:33 CDT
Last Modified:              04-16-2008 07:33 CDT
====================================================================== 
Summary:                    Building chan_vpb in 1.4 fails with libvpb-dev
4.2.26-1
Description: 
I'm trying to build 1.4 SVN (114148) on a Debian Lenny amd64 system with 

  libvpb-dev 4.2.26-1

(and libvpb0 of the same version)

I get the following error:

   [CXX] chan_vpb.cc -> chan_vpb.oo
In file included from
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr.h:114,
                 from
/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++io.h:43,
                 from /usr/include/c++/4.2/iosfwd:46,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
                 from /usr/include/vpbapi.h:38,
                 from chan_vpb.cc:69:
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:48: error:
'use_ast_mutex_t_instead_of_pthread_mutex_t' does not name a type
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:49: error:
'use_ast_mutex_t_instead_of_pthread_mutex_t' does not name a type
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:97: error:
'use_ast_mutex_lock_instead_of_pthread_mutex_lock' was not declared in this
scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:97: error:
invalid type in declaration before ';' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:98: error:
'use_ast_mutex_trylock_instead_of_pthread_mutex_trylock' was not declared
in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:98: error:
invalid type in declaration before ';' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:99: error:
'use_ast_mutex_unlock_instead_of_pthread_mutex_unlock' was not declared in
this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:99: error:
invalid type in declaration before ';' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:100: error:
'use_ast_mutex_init_instead_of_pthread_mutex_init' was not declared in this
scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:100: error:
invalid type in declaration before ';' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:605: error:
'__gthread_mutex_lock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:605: error:
'__gthread_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:605: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:606: error:
expected ',' or ';' before '{' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:614: error:
'__gthread_mutex_trylock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:614: error:
'__gthread_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:614: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:615: error:
expected ',' or ';' before '{' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:623: error:
'__gthread_mutex_unlock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:623: error:
'__gthread_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:623: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:624: error:
expected ',' or ';' before '{' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:654: error:
'__gthread_recursive_mutex_lock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:654: error:
'__gthread_recursive_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:654: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:655: error:
expected ',' or ';' before '{' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:660: error:
'__gthread_recursive_mutex_trylock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:660: error:
'__gthread_recursive_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:660: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:661: error:
expected ',' or ';' before '{' token
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:666: error:
'__gthread_recursive_mutex_unlock' declared as an 'inline' variable
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:666: error:
'__gthread_recursive_mutex_t' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:666: error:
'mutex' was not declared in this scope
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:667: error:
expected ',' or ';' before '{' token
In file included from /usr/include/c++/4.2/iosfwd:46,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
                 from /usr/include/vpbapi.h:38,
                 from chan_vpb.cc:69:
/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++io.h:47: error:
'__gthread_mutex_t' does not name a type
chan_vpb.cc: In function 'ast_bridge_result ast_vpb_bridge(ast_channel*,
ast_channel*, int, ast_frame**, ast_channel**, int)':
chan_vpb.cc:531: warning: 'vpb_bridge' is deprecated (declared at
/usr/include/vpbapi.h:394)
chan_vpb.cc:595: warning: 'vpb_bridge' is deprecated (declared at
/usr/include/vpbapi.h:394)
chan_vpb.cc: In function 'void get_callerid(vpb_pvt*)':
chan_vpb.cc:713: error: 'vpb_strerror' was not declared in this scope
chan_vpb.cc: In function 'int monitor_handle_owned(vpb_pvt*,
VPB_EVENT*)':
chan_vpb.cc:1014: error: 'VPB_PLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:1016: error: 'vpb_reset_play_fifo_alarm' was not declared in
this scope
chan_vpb.cc:1019: error: 'VPB_RECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:1021: error: 'vpb_reset_record_fifo_alarm' was not declared in
this scope
chan_vpb.cc: In function 'int monitor_handle_notowned(vpb_pvt*,
VPB_EVENT*)':
chan_vpb.cc:1301: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc: In function 'void* do_monitor(void*)':
chan_vpb.cc:1363: error: 'vpb_strerror' was not declared in this scope
chan_vpb.cc: In function 'int restart_monitor()':
chan_vpb.cc:1472: error: invalid conversion from 'int' to 'VPB_EVT_TYPE'
chan_vpb.cc: In function 'void mkbrd(vpb_model_t, int)':
chan_vpb.cc:1532: warning: dereferencing type-punned pointer will break
strict-aliasing rules
chan_vpb.cc:1532: error: invalid conversion from 'short int*' to 'int'
/usr/include/vpbapi.h:2321: error: too few arguments to function 'int
vpb_echo_canc_set_sup_thresh(int, short int*)'
chan_vpb.cc:1532: error: at this point in file
chan_vpb.cc: In function 'vpb_pvt* mkif(int, int, int, int, float, float,
float, float, int, int, int, char*, int, int, ast_group_t, ast_group_t)':
chan_vpb.cc:1649: warning: 'vpb_get_model' is deprecated (declared at
/usr/include/vpbapi.h:282)
chan_vpb.cc:1681: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:1681: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:1683: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:1683: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:1691: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:1691: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
/usr/include/vpbapi.h: In function 'int vpb_call(ast_channel*, char*,
int)':
/usr/include/vpbapi.h:364: error: too many arguments to function 'void
vpb_ring_station_async(VPBPortHandle, int)'
chan_vpb.cc:1911: error: at this point in file
chan_vpb.cc:1911: error: void value not ignored as it ought to be
chan_vpb.cc:1964: error: 'vpb_strerror' was not declared in this scope
/usr/include/vpbapi.h: In function 'int vpb_hangup(ast_channel*)':
/usr/include/vpbapi.h:364: error: too many arguments to function 'void
vpb_ring_station_async(VPBPortHandle, int)'
chan_vpb.cc:2052: error: at this point in file
chan_vpb.cc: In function 'char* ast2vpbformatname(int)':
chan_vpb.cc:2224: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc:2226: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc:2228: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc:2230: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc:2232: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc: In function 'int vpb_write(ast_channel*, ast_frame*)':
chan_vpb.cc:2318: error: invalid conversion from 'int' to 'AudioCompress'
chan_vpb.cc:2318: error:   initializing argument 2 of 'void
vpb_play_buf_start(VPBPortHandle, AudioCompress)'
chan_vpb.cc:2327: error: invalid conversion from 'int' to 'AudioCompress'
chan_vpb.cc:2327: error:   initializing argument 2 of 'void
vpb_play_buf_start(VPBPortHandle, AudioCompress)'
chan_vpb.cc: In function 'void* do_chanreads(void*)':
chan_vpb.cc:2448: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:2448: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:2463: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:2463: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:2477: error: 'VPB_MPLAY_UNDERFLOW' was not declared in this
scope
chan_vpb.cc:2477: error: 'VPB_MRECORD_OVERFLOW' was not declared in this
scope
chan_vpb.cc:2499: error: invalid conversion from 'int' to 'AudioCompress'
chan_vpb.cc:2499: error:   initializing argument 2 of 'void
vpb_record_buf_start(VPBPortHandle, AudioCompress)'
chan_vpb.cc:2500: error: 'vpb_reset_record_fifo_alarm' was not declared in
this scope
chan_vpb.cc:2507: error: invalid conversion from 'int' to 'AudioCompress'
chan_vpb.cc:2507: error:   initializing argument 2 of 'void
vpb_record_buf_start(VPBPortHandle, AudioCompress)'
chan_vpb.cc: In function 'ast_channel* vpb_request(const char*, int,
void*, int*)':
chan_vpb.cc:2724: warning: deprecated conversion from string constant to
'char*'
chan_vpb.cc: In function 'int load_module()':
chan_vpb.cc:2875: warning: 'vpb_seterrormode' is deprecated (declared at
/usr/include/vpbapi.h:1273)
chan_vpb.cc:2875: warning: 'VPB_ERROR_CODE' is deprecated (declared at
/usr/include/vpbapi.h:1245)
chan_vpb.cc:2875: warning: 'vpb_seterrormode' is deprecated (declared at
/usr/include/vpbapi.h:1273)
make[1]: *** [chan_vpb.oo] Error 1
make: *** [channels] Error 2

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-16-08 07:33  tzafrir        SVN Branch (only for SVN checkou =>  1.4         
  
04-16-08 07:33  tzafrir        SVN Revision (number only!) => 114148          
04-16-08 07:33  tzafrir        Disclaimer on File?       => N/A             
======================================================================




More information about the asterisk-bugs mailing list