Wireshark-dev: Re: [Wireshark-dev] listen rtp plugin
From: Thomas Anders <thomas.anders@xxxxxxxxxxxxx>
Date: Sat, 02 Sep 2006 14:17:01 +0200
Joerg Mayer wrote:
> Well, for me it detects portaudio, but either my version is too new or
> too old, at least my portaudio.h doesn't contain a definition of
> PortAudioStream, and thus compilation fails in line rtp_player.c, line
> 150: PortAudioStream *pa_stream;

I've got a similar problem on a recent SuSE Linux 10.1 (which supplies
portaudio-19-92). The build fails with:

- --- snip ---
D -MP -MF ".deps/rtp_player.Tpo" -c -o rtp_player.o rtp_player.c; \
then mv -f ".deps/rtp_player.Tpo" ".deps/rtp_player.Po"; else rm -f
".deps/rtp_player.Tpo"; exit 1; fi
In file included from /opt/gnome/include/gtk-2.0/gtk/gtkactiongroup.h:34,
                 from /opt/gnome/include/gtk-2.0/gtk/gtk.h:38,
                 from rtp_player.c:56:
/opt/gnome/include/gtk-2.0/gtk/gtkitemfactory.h:50: warning: function
declaration isn’t a prototype
In file included from rtp_player.c:72:
rtp_player.h:40: warning: function declaration isn’t a prototype
In file included from rtp_player.c:72:
rtp_player.h:41:7: warning: no newline at end of file
In file included from rtp_player.c:73:
../gtk/codecs/G711a/G711adecode.h:2: warning: data definition has no type or
storage class
../gtk/codecs/G711a/G711adecode.h:2: warning: type defaults to ‘int’ in
declaration of ‘decodeG711a’
In file included from rtp_player.c:74:
../gtk/codecs/G711u/G711udecode.h:2: warning: data definition has no type or
storage class
../gtk/codecs/G711u/G711udecode.h:2: warning: type defaults to ‘int’ in
declaration of ‘decodeG711u’
rtp_player.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘*’ token
rtp_player.c:189: error: expected specifier-qualifier-list before ‘PaTimestamp’
rtp_player.c:214: error: expected specifier-qualifier-list before ‘PaTimestamp’
rtp_player.c: In function ‘add_rtp_packet’:
rtp_player.c:313: warning: passing argument 3 of ‘g_hash_table_new_full’ from
incompatible pointer type
rtp_player.c:313: warning: passing argument 4 of ‘g_hash_table_new_full’ from
incompatible pointer type
rtp_player.c: In function ‘decode_rtp_packet’:
rtp_player.c:417: warning: unused parameter ‘rci’
rtp_player.c: In function ‘decode_rtp_stream’:
rtp_player.c:539: warning: passing argument 3 of ‘g_hash_table_new_full’ from
incompatible pointer type
rtp_player.c:539: warning: passing argument 4 of ‘g_hash_table_new_full’ from
incompatible pointer type
rtp_player.c:563: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c:564: error: ‘rtp_channel_info_t’ has no member named ‘cursor_catch’
rtp_player.c:565: error: ‘rtp_channel_info_t’ has no member named ‘first_stream’
rtp_player.c:566: error: ‘rtp_channel_info_t’ has no member named ‘num_packets’
rtp_player.c:574: error: ‘rtp_channel_info_t’ has no member named ‘num_packets’
rtp_player.c: In function ‘h_scrollbar_changed’:
rtp_player.c:720: error: ‘rtp_channel_info_t’ has no member named ‘cursor_catch’
rtp_player.c: At top level:
rtp_player.c:729: warning: function declaration isn’t a prototype
rtp_player.c: In function ‘stop_channels’:
rtp_player.c:742: error: ‘pa_stream’ undeclared (first use in this function)
rtp_player.c:742: error: (Each undeclared identifier is reported only once
rtp_player.c:742: error: for each function it appears in.)
rtp_player.c:762: error: ‘rtp_play_channles_t’ has no member named ‘out_diff_time’
rtp_player.c: In function ‘draw_channel_cursor’:
rtp_player.c:778: error: ‘PaTimestamp’ undeclared (first use in this function)
rtp_player.c:778: error: expected ‘;’ before ‘index’
rtp_player.c:779: warning: ISO C90 forbids mixed declarations and code
rtp_player.c:783: warning: implicit declaration of function ‘Pa_StreamTime’
rtp_player.c:783: error: ‘pa_stream’ undeclared (first use in this function)
rtp_player.c:783: error: ‘rtp_play_channles_t’ has no member named ‘out_diff_time’
rtp_player.c:787: warning: comparison between pointer and integer
rtp_player.c:793: warning: comparison between pointer and integer
rtp_player.c:800: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c:805: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c:806: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c:812: error: invalid operands to binary /
rtp_player.c:815: error: invalid operands to binary /
rtp_player.c:817: error: invalid operands to binary /
rtp_player.c:823: error: invalid operands to binary /
rtp_player.c:824: error: invalid operands to binary /
rtp_player.c:840: error: ‘rtp_channel_info_t’ has no member named ‘cursor_catch’
rtp_player.c:841: error: invalid operands to binary /
rtp_player.c:843: error: invalid operands to binary /
rtp_player.c:846: error: invalid operands to binary /
rtp_player.c:850: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c:851: error: invalid operands to binary /
rtp_player.c:852: error: ‘rtp_channel_info_t’ has no member named ‘cursor_catch’
rtp_player.c:886: error: ‘rtp_channel_info_t’ has no member named ‘cursor_prev’
rtp_player.c: In function ‘draw_cursors’:
rtp_player.c:896: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘prev’
rtp_player.c:896: error: ‘prev’ undeclared (first use in this function)
rtp_player.c:895: warning: unused variable ‘pixbuf’
rtp_player.c:893: warning: unused parameter ‘data’
rtp_player.c: At top level:
rtp_player.c:912: warning: function declaration isn’t a prototype
rtp_player.c:960: error: expected declaration specifiers or ‘...’ before
‘PaTimestamp’
rtp_player.c: In function ‘paCallback’:
rtp_player.c:980: error: ‘rtp_play_channles_t’ has no member named ‘out_diff_time’
rtp_player.c:980: error: ‘outTime’ undeclared (first use in this function)
rtp_player.c:980: error: ‘pa_stream’ undeclared (first use in this function)
rtp_player.c: In function ‘channel_draw’:
rtp_player.c:1086: error: ‘rtp_channel_info_t’ has no member named ‘bg_gc’
rtp_player.c:1157: warning: pointer targets in passing argument 2 of
‘pango_layout_get_pixel_size’ differ in signedness
rtp_player.c:1157: warning: pointer targets in passing argument 3 of
‘pango_layout_get_pixel_size’ differ in signedness
rtp_player.c: In function ‘configure_event_channels’:
rtp_player.c:1249: error: ‘rtp_channel_info_t’ has no member named ‘bg_gc’
rtp_player.c:1250: error: ‘rtp_channel_info_t’ has no member named ‘bg_gc’
rtp_player.c: In function ‘button_press_event_channel’:
rtp_player.c:1327: error: ‘rtp_play_channles_t’ has no member named ‘out_diff_time’
rtp_player.c:1329: error: ‘rtp_channel_info_t’ has no member named ‘cursor_catch’
rtp_player.c: In function ‘add_channel_to_window’:
rtp_player.c:1378: error: ‘rtp_channel_info_t’ has no member named ‘first_stream’
rtp_player.c:1379: error: ‘rtp_channel_info_t’ has no member named ‘first_stream’
rtp_player.c:1379: error: ‘rtp_channel_info_t’ has no member named ‘first_stream’
rtp_player.c:1379: error: ‘rtp_channel_info_t’ has no member named ‘first_stream’
rtp_player.c:1380: error: ‘rtp_channel_info_t’ has no member named ‘num_packets’
rtp_player.c:1381: error: ‘rtp_channel_info_t’ has no member named ‘num_packets’
rtp_player.c: At top level:
rtp_player.c:1408: warning: function declaration isn’t a prototype
rtp_player.c: In function ‘play_channels’:
rtp_player.c:1426: error: ‘pa_stream’ undeclared (first use in this function)
rtp_player.c:1431: warning: implicit declaration of function
‘Pa_GetDefaultOutputDeviceID’
rtp_player.c:1440: warning: passing argument 2 of ‘Pa_OpenStream’ makes pointer
from integer without a cast
rtp_player.c:1440: warning: passing argument 5 of ‘Pa_OpenStream’ makes integer
from pointer without a cast
rtp_player.c:1440: warning: passing argument 7 of ‘Pa_OpenStream’ makes pointer
from integer without a cast
rtp_player.c:1440: warning: passing argument 8 of ‘Pa_OpenStream’ makes pointer
from integer without a cast
rtp_player.c:1440: error: too many arguments to function ‘Pa_OpenStream’
rtp_player.c:1468: warning: passing argument 3 of ‘g_timeout_add_full’ from
incompatible pointer type
rtp_player.c: At top level:
rtp_player.c:1475: warning: function declaration isn’t a prototype
rtp_player.c: In function ‘pause_channels’:
rtp_player.c:1481: warning: passing argument 3 of ‘g_timeout_add_full’ from
incompatible pointer type
rtp_player.c: At top level:
rtp_player.c:1491: warning: function declaration isn’t a prototype
rtp_player.c: In function ‘reset_rtp_channels’:
rtp_player.c:1504: error: ‘rtp_play_channles_t’ has no member named ‘out_diff_time’
rtp_player.c: At top level:
rtp_player.c:1521: warning: function declaration isn’t a prototype
rtp_player.c:1541: warning: function declaration isn’t a prototype
rtp_player.c:1562: warning: function declaration isn’t a prototype
rtp_player.c: In function ‘jitter_spinner_value_changed’:
rtp_player.c:1678: warning: unused parameter ‘spinner’
rtp_player.c: At top level:
rtp_player.c:1686: warning: function declaration isn’t a prototype
- --- snap ---


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)