RangeNetworks / OpenBTS-UMTS

3G UMTS Data Radio Access Network Node
GNU Affero General Public License v3.0
297 stars 196 forks source link

Compilation fails with error: cannot convert 'bool' to 'const char*' in return #26

Open mike01 opened 5 years ago

mike01 commented 5 years ago

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 commented 5 years ago

You might have the wrong version of libosip installed.

Harvind Samra

On Sep 26, 2018, at 7:20 AM, Michael Stahn notifications@github.com<mailto:notifications@github.com> 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 GitHubhttps://github.com/RangeNetworks/OpenBTS-UMTS/issues/26, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGnylTpeZkbNkQ-OhXDLq5IyDerqPyq6ks5ue40qgaJpZM4W6xso.

sgoudelis commented 5 years ago

What version of libosip must be used ?

alejandro-amo commented 5 years ago

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.