|
List Info
Thread: Compilation error on latest SVN
|
|
| Compilation error on latest SVN |

|
2008-02-26 13:24:43 |
Hello,
Trying to compile the latest sipXtapi from SVN I get the
following
error:
.srccpCpCall.cpp(321) : error C2664:
'CpMediaInterface::playBuffer' :
cannot convert parameter 7 from 'OsProtectedEvent *' to
'UtlBoolean'
The offending line is:
mpMediaInterface->playBuffer((char*)buffer,
bufSize, type, repeat, local, remote, ev);
which is missing the third parameter bufRate. What should
the fix be?
Thanks,
--
Pedro
_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev list.sipfoundry.org
List Archive: http
://list.sipfoundry.org/archive/sipxtapi-dev/
|
|
| Re: Compilation error on latest SVN |

|
2008-02-26 14:39:34 |
|
Hi Pedro,
I just fixed this in 10595. It was a bug caused when wideband playBuffer was implemented. callLib currently doesn't support wideband yet, but the underlying libraries (sipXmediaAdapterLib, sipXmediaLib) now do support wideband. If you wish to take a stab at widebandifying it, we'd appreciate it, as Alex and I are focused on the mediaLib level.
I hard coded the playBuffer call you see the error on to pass in a sample rate (new parameter, that comes just after the buffer length) of 8000Hz. This should correct your issue.
On 2/26/08, Pedro Sanchez < psanchez nortel.com">psanchez nortel.com> wrote:
Hello, Trying to compile the latest sipXtapi from SVN I get the following error: .srccpCpCall.cpp(321) : error C2664: 'CpMediaInterface::playBuffer' : cannot convert parameter 7 from 'OsProtectedEvent *' to 'UtlBoolean'
The offending line is: mpMediaInterface->playBuffer((char*)buffer, bufSize, type, repeat, local, remote, ev); which is missing the third parameter bufRate. What should the fix be?
Thanks, -- Pedro _______________________________________________ sipxtapi-dev mailing list sipxtapi-dev list.sipfoundry.org">sipxtapi-dev list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
-- Keith Kyzivat
SIPez LLC. SIP VoIP, IM and Presence Consulting
http://www.SIPez.com tel: +1 (617) 273-4000
|
| Re: Compilation error on latest SVN |

|
2008-02-26 15:10:48 |
Thanks Keith,
I'm just testing waters with sipXtapi to see how far I can
go with a
sample app I'm working on. I'm a bit disappointed that the
SVN version
doesn't compile cleanly as I would have expected. Does this
project have
a policy of compile-clean SVN trees?
Anyway, since you are quick to fix things maybe you can take
a shot at
the other errors that I get, this time in sipXtackLib.
Thanks,
--
Pedro
------ Build started: Project: sipXtackLib, Configuration:
Debug Win32
------
Compiling...
bzero.c
Generating Code...
Compiling...
SipConfigServerAgent.cpp
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(386) : error C2146: syntax
error :
missing ')' before identifier '_WINDOWS'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(386) : error C2059: syntax
error :
')'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(387) : error C2143: syntax
error :
missing ';' before '{'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(388) : error C2146: syntax
error :
missing ';' before identifier '_WINDOWS'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(388) : error C2065:
'_WINDOWS' :
undeclared identifier
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(395) : error C2181:
illegal else
without matching if
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(426) : fatal error C1903:
unable to
recover from previous error(s); stopping compilation
Generating Code...
Compiling...
res_send.c
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(45) : error C2011: 'pollfd' :
'struct' type
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1506) : see declaration of 'pollfd'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(61) : warning C4005: 'POLLIN' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1495) : see previous definition of 'POLLIN'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(62) : warning C4005: 'POLLPRI' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1496) : see previous definition of 'POLLPRI'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(63) : warning C4005: 'POLLOUT' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1499) : see previous definition of 'POLLOUT'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(64) : warning C4005: 'POLLRDNORM' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1493) : see previous definition of 'POLLRDNORM'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(65) : warning C4005: 'POLLWRNORM' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1498) : see previous definition of 'POLLWRNORM'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(66) : warning C4005: 'POLLRDBAND' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1494) : see previous definition of 'POLLRDBAND'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(67) : warning C4005: 'POLLWRBAND' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1500) : see previous definition of 'POLLWRBAND'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(82) : warning C4005: 'POLLERR' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1502) : see previous definition of 'POLLERR'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(83) : warning C4005: 'POLLHUP' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1503) : see previous definition of 'POLLHUP'
c:documents and settingsnortelmy
documentsovensipxtapisipxtacklib
includeresparsepoll.h(84) : warning C4005: 'POLLNVAL' :
macro
redefinition
c:program filesmicrosoft
sdkswindowsv6.0ainclude
winsock2.h(1504) : see previous definition of 'POLLNVAL'
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version
9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.Debug
SipConfigServerAgent.sbr': No such file or directory
Build log was saved at "file://c:Documents and
SettingsnortelMy
DocumentsOvensipXtapisipXtackLibDebugBuildLog.htm"
sipXtackLib - 9 error(s), 10 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0
skipped
==========
On Tue, 2008-02-26 at 15:39 -0500, Keith Kyzivat wrote:
> Hi Pedro,
>
> I just fixed this in 10595.
> It was a bug caused when wideband playBuffer was
implemented.
> callLib currently doesn't support wideband yet, but the
underlying
> libraries (sipXmediaAdapterLib, sipXmediaLib) now do
support wideband.
> If you wish to take a stab at widebandifying it, we'd
appreciate it,
> as Alex and I are focused on the mediaLib level.
>
> I hard coded the playBuffer call you see the error on
to pass in a
> sample rate (new parameter, that comes just after the
buffer length)
> of 8000Hz. This should correct your issue.
>
> On 2/26/08, Pedro Sanchez <psanchez nortel.com> wrote:
> Hello,
>
> Trying to compile the latest sipXtapi from SVN
I get the
> following
> error:
>
> .srccpCpCall.cpp(321) : error C2664:
> 'CpMediaInterface::playBuffer' :
> cannot convert parameter 7 from
'OsProtectedEvent *' to
> 'UtlBoolean'
>
> The offending line is:
>
>
mpMediaInterface->playBuffer((char*)buffer,
> bufSize, type, repeat, local, remote, ev);
>
> which is missing the third parameter bufRate.
What should the
> fix be?
>
> Thanks,
>
>
> --
> Pedro
>
>
>
>
>
_______________________________________________
> sipxtapi-dev mailing list
> sipxtapi-dev list.sipfoundry.org
> List Archive: http
://list.sipfoundry.org/archive/sipxtapi-dev/
>
>
>
> --
> Keith Kyzivat
>
> SIPez LLC.
> SIP VoIP, IM and Presence Consulting
> http://www.SIPez.com
> tel: +1 (617) 273-4000
_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev list.sipfoundry.org
List Archive: http
://list.sipfoundry.org/archive/sipxtapi-dev/
|
|
| Re: Compilation error on latest SVN |

|
2008-02-26 15:46:41 |
|
We do try to maintain a tree that cleanly compiles and runs, but we haven't had too many people working on it, and the current focus that I, Sergey Konstanbaev, and Alexander Chemeris have is on the mediaLib. we try our best to maintain the tree in all configurations, but alas, we cannot test every platform.
sipXportLib sipXsdpLib, sipXtackLib, sipXmediaLib, sipXmediaAdapterLib should all work fine under x86 linux and windows (vs2003, vs2005, and, for the most part vc6).
in sipXmediaAdapterLib, there currently is an issue with callLib that I am in midst of fixing when using the older PhoneMediaInterface, which is in the process of being replaced by TopologyGraphInterface.
You currently can fix it one of several ways. * You can define HAVE_SPEEX in preprocessor macro definitions when building sipXmediaAdapterLib * using the TopologyGraphInterface will fix these issues. Just define the following two preprocessor macros when building sipXmediaAdpaterLib: ENABLE_TOPOLOGY_FLOWGRAPH_INTERFACE_FACTORY DISABLE_DEFAULT_PHONE_MEDIA_INTERFACE_FACTORY
On 2/26/08, Pedro Sanchez < psanchez nortel.com">psanchez nortel.com> wrote:
Thanks Keith, I'm just testing waters with sipXtapi to see how far I can go with a sample app I'm working on. I'm a bit disappointed that the SVN version doesn't compile cleanly as I would have expected. Does this project have
a policy of compile-clean SVN trees? Anyway, since you are quick to fix things maybe you can take a shot at the other errors that I get, this time in sipXtackLib. Thanks, -- Pedro
------ Build started: Project: sipXtackLib, Configuration: Debug Win32 ------ Compiling... bzero.c Generating Code... Compiling... SipConfigServerAgent.cpp c:documents and settingsnortelmy documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(386) : error C2146: syntax error : missing ')'; before identifier '_WINDOWS' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib srcnetsipconfigserveragent.cpp(386) : error C2059: syntax error :
')'; c:documents and settingsnortelmy documentsovensipxtapisipxtacklib srcnetsipconfigserveragent.cpp(387) : error C2143: syntax error : missing ';'; before '{'; c:documents and settingsnortelmy documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(388) : error C2146: syntax error : missing ';'; before identifier '_WINDOWS' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib srcnetsipconfigserveragent.cpp(388) : error C2065: '_WINDOWS' :
undeclared identifier c:documents and settingsnortelmy documentsovensipxtapisipxtacklib srcnetsipconfigserveragent.cpp(395) : error C2181: illegal else without matching if c:documents and settingsnortelmy documentsovensipxtapisipxtacklib
srcnetsipconfigserveragent.cpp(426) : fatal error C1903: unable to recover from previous error(s); stopping compilation Generating Code... Compiling... res_send.c c:documents and settingsnortelmy documentsovensipxtapisipxtacklib
includeresparsepoll.h(45) : error C2011: 'pollfd' : 'struct' type redefinition c:program filesmicrosoft sdkswindowsv6.0ainclude winsock2.h(1506) : see declaration of 'pollfd'
c:documents and settingsnortelmy documentsovensipxtapisipxtacklib includeresparsepoll.h(61) : warning C4005: 'POLLIN' : macro redefinition c:program filesmicrosoft sdkswindowsv6.0ainclude
winsock2.h(1495) : see previous definition of 'POLLIN' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib includeresparsepoll.h(62) : warning C4005: 'POLLPRI' : macro redefinition
c:program filesmicrosoft sdkswindowsv6.0ainclude winsock2.h(1496) : see previous definition of 'POLLPRI' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib includeresparsepoll.h(63) : warning C4005: 'POLLOUT' : macro
redefinition c:program filesmicrosoft sdkswindowsv6.0ainclude winsock2.h(1499) : see previous definition of 'POLLOUT' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib
includeresparsepoll.h(64) : warning C4005: 'POLLRDNORM' : macro redefinition c:program filesmicrosoft sdkswindowsv6.0ainclude winsock2.h(1493) : see previous definition of 'POLLRDNORM'
c:documents and settingsnortelmy documentsovensipxtapisipxtacklib includeresparsepoll.h(65) : warning C4005: 'POLLWRNORM' : macro redefinition c:program filesmicrosoft sdkswindowsv6.0ainclude
winsock2.h(1498) : see previous definition of 'POLLWRNORM' c:documents and settingsnortelmy documentsovensipxtapisipxtacklib includeresparsepoll.h(66) : warning C4005: 'POLLR | |