-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation fails with error: cannot convert 'bool' to 'const char*' in return #26
Comments
You might have the wrong version of libosip installed.
Harvind Samra
On Sep 26, 2018, at 7:20 AM, Michael Stahn <[email protected]<mailto:[email protected]>> wrote:
Compiling via "make" fails with the following error:
In file included from ../UMTS/UMTSLogicalChannel.h:31:0,
from SIPInterface.cpp:19:
../UMTS/UMTSL1FEC.h: In constructor 'UMTS::FACHFEC::FACHFEC(unsigned int, unsigned int, unsigned int, unsigned int, UMTS::TTICodes, ARFCNManager*)':
../UMTS/UMTSL1FEC.h:762:51: warning: unused parameter 'wPB' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~
../UMTS/UMTSL1FEC.h:762:65: warning: unused parameter 'wTBSize' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~~~~~
../UMTS/UMTSL1FEC.h:762:82: warning: unused parameter 'tti' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~
../UMTS/UMTSL1FEC.h: In constructor 'UMTS::RACHFEC::RACHFEC(unsigned int, unsigned int, unsigned int, unsigned int, UMTS::TTICodes)':
../UMTS/UMTSL1FEC.h:788:65: warning: unused parameter 'wPB' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~
../UMTS/UMTSL1FEC.h:788:79: warning: unused parameter 'wTBSize' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~~~~~
../UMTS/UMTSL1FEC.h:788:96: warning: unused parameter 'tti' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~
In file included from SIPInterface.cpp:19:0:
../UMTS/UMTSLogicalChannel.h: In member function 'void UMTS::LogicalChannel::waitForPrimitive(GSM::Primitive)':
../UMTS/UMTSLogicalChannel.h:194:39: warning: unused parameter 'primitive' [-Wunused-parameter]
void waitForPrimitive(GSM::Primitive primitive) {} ; // FIXME: stubbed out
^~~~~~~~~
../UMTS/UMTSLogicalChannel.h: In member function 'bool UMTS::LogicalChannel::waitForPrimitive(GSM::Primitive, unsigned int)':
../UMTS/UMTSLogicalChannel.h:203:39: warning: unused parameter 'primitive' [-Wunused-parameter]
bool waitForPrimitive(GSM::Primitive primitive, unsigned timeout_ms) {return false;} //FIXME: stubbed out
^~~~~~~~~
../UMTS/UMTSLogicalChannel.h:203:59: warning: unused parameter 'timeout_ms' [-Wunused-parameter]
bool waitForPrimitive(GSM::Primitive primitive, unsigned timeout_ms) {return false;} //FIXME: stubbed out
^~~~~~~~~~
../UMTS/UMTSLogicalChannel.h: In member function 'bool UMTS::DCCHLogicalChannel::multiframeMode(unsigned int) const':
../UMTS/UMTSLogicalChannel.h:312:31: warning: unused parameter 'SAPI' [-Wunused-parameter]
bool multiframeMode(unsigned SAPI) const {return true;} // FIXME: stubbed out
^~~~
../UMTS/UMTSLogicalChannel.h: In member function 'void UMTS::DTCHLogicalChannel::sendTCH(const unsigned char)':
../UMTS/UMTSLogicalChannel.h:329:36: warning: unused parameter 'frame' [-Wunused-parameter]
void sendTCH(const unsigned char frame) {}// FIXME: stubbed out
^~~~~
SIPInterface.cpp: In function 'const char extractIMSI(const osip_message_t*)':
SIPInterface.cpp:290:10: error: cannot convert 'bool' to 'const char*' in return
return false;
^~~~~
make[2]: *** [Makefile:532: libSIP_la-SIPInterface.lo] Error 1
make[2]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS/SIP'
make[1]: *** [Makefile:551: all-recursive] Error 1
make[1]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS'
make: *** [Makefile:482: all] Error 2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#26>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGnylTpeZkbNkQ-OhXDLq5IyDerqPyq6ks5ue40qgaJpZM4W6xso>.
|
What version of libosip must be used ? |
got it. and that's all. makes sense, if you think about it. this software is quite old and compilers, code and rules for coding change along time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling via "make" fails with the following error:
In file included from ../UMTS/UMTSLogicalChannel.h:31:0,
from SIPInterface.cpp:19:
../UMTS/UMTSL1FEC.h: In constructor 'UMTS::FACHFEC::FACHFEC(unsigned int, unsigned int, unsigned int, unsigned int, UMTS::TTICodes, ARFCNManager*)':
../UMTS/UMTSL1FEC.h:762:51: warning: unused parameter 'wPB' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~
../UMTS/UMTSL1FEC.h:762:65: warning: unused parameter 'wTBSize' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~~~~~
../UMTS/UMTSL1FEC.h:762:82: warning: unused parameter 'tti' [-Wunused-parameter]
FACHFEC(unsigned wSF, unsigned wSpCode, unsigned wPB, unsigned wTBSize,TTICodes tti,ARFCNManager wRadio):
^~~
../UMTS/UMTSL1FEC.h: In constructor 'UMTS::RACHFEC::RACHFEC(unsigned int, unsigned int, unsigned int, unsigned int, UMTS::TTICodes)':
../UMTS/UMTSL1FEC.h:788:65: warning: unused parameter 'wPB' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~
../UMTS/UMTSL1FEC.h:788:79: warning: unused parameter 'wTBSize' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~~~~~
../UMTS/UMTSL1FEC.h:788:96: warning: unused parameter 'tti' [-Wunused-parameter]
RACHFEC(unsigned wSF, unsigned wUplinkScramblingCode, unsigned wPB, unsigned wTBSize,TTICodes tti):
^~~
In file included from SIPInterface.cpp:19:0:
../UMTS/UMTSLogicalChannel.h: In member function 'void UMTS::LogicalChannel::waitForPrimitive(GSM::Primitive)':
../UMTS/UMTSLogicalChannel.h:194:39: warning: unused parameter 'primitive' [-Wunused-parameter]
void waitForPrimitive(GSM::Primitive primitive) {} ; // FIXME: stubbed out
^~~~~~~~~
../UMTS/UMTSLogicalChannel.h: In member function 'bool UMTS::LogicalChannel::waitForPrimitive(GSM::Primitive, unsigned int)':
../UMTS/UMTSLogicalChannel.h:203:39: warning: unused parameter 'primitive' [-Wunused-parameter]
bool waitForPrimitive(GSM::Primitive primitive, unsigned timeout_ms) {return false;} //FIXME: stubbed out
^~~~~~~~~
../UMTS/UMTSLogicalChannel.h:203:59: warning: unused parameter 'timeout_ms' [-Wunused-parameter]
bool waitForPrimitive(GSM::Primitive primitive, unsigned timeout_ms) {return false;} //FIXME: stubbed out
^~~~~~~~~~
../UMTS/UMTSLogicalChannel.h: In member function 'bool UMTS::DCCHLogicalChannel::multiframeMode(unsigned int) const':
../UMTS/UMTSLogicalChannel.h:312:31: warning: unused parameter 'SAPI' [-Wunused-parameter]
bool multiframeMode(unsigned SAPI) const {return true;} // FIXME: stubbed out
^~~~
../UMTS/UMTSLogicalChannel.h: In member function 'void UMTS::DTCHLogicalChannel::sendTCH(const unsigned char)':
../UMTS/UMTSLogicalChannel.h:329:36: warning: unused parameter 'frame' [-Wunused-parameter]
void sendTCH(const unsigned char frame) {}// FIXME: stubbed out
^~~~~
SIPInterface.cpp: In function 'const char extractIMSI(const osip_message_t*)':
SIPInterface.cpp:290:10: error: cannot convert 'bool' to 'const char*' in return
return false;
^~~~~
make[2]: *** [Makefile:532: libSIP_la-SIPInterface.lo] Error 1
make[2]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS/SIP'
make[1]: *** [Makefile:551: all-recursive] Error 1
make[1]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS'
make: *** [Makefile:482: all] Error 2
The text was updated successfully, but these errors were encountered: