Skip to content
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

Open
mike01 opened this issue Sep 26, 2018 · 3 comments

Comments

@mike01
Copy link

mike01 commented Sep 26, 2018

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

@hssamra
Copy link
Member

hssamra commented Sep 26, 2018 via email

@sgoudelis
Copy link

What version of libosip must be used ?

@alejandro-amo
Copy link

alejandro-amo commented Feb 8, 2019

got it.
ensure that you have older versions of compilers:
gcc-5
g++-5
and force them when calling ./configure:
CC=gcc-5 CXX=g++-5 ./configure

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants