osmo-ttcn3-hacks/gbproxy/regen_makefile.sh

38 lines
623 B
Bash
Raw Normal View History

gbproxy: /bin/sh cannot do "FILES+=", use /bin/bash This fixes an ugly copile failure depending on which shell provides /bin/sh on the given system: AF_PACKET_PortType.so: undefined reference to `typeinfo for AF__PACKET__PortType::AF__PACKET__PT_PROVIDER' AF_PACKET_PortType.so: undefined reference to `AF__PACKET__PortType::AF__PACKET__PT_PROVIDER::AF__PACKET__PT_PROVIDER(char const*)' AF_PACKET_PortType.so: undefined [0m [91mreference to `AF__PACKET__PortType::AF__PACKET__PT_PROVIDER::set_parameter(char const*, char const [0m [91m*)' AF_PACKET_PortType.so: undefined reference to `AF__PACKET__PortType::AF__PACKET__PT_PROVIDER::outgoing_send(AF__PACKET__PortTypes::AF__PACKET__Unitdata const&)' [0m [91m AF_PACKET_PortType.so: undefined reference to `AF__PACKET__PortType::AF__PACKET__PT_PROVIDER::user_map(char [0m [91m const*, Map_Params& [0m [91m)' [0m [91m AF_PACKET_PortType.so: [0m [91mundefined reference to [0m [91m `AF__PACKET__PortType:: [0m [91mAF__PACKET__PT_PROVIDER::user_unmap(char const*, Map_Params&)' AF_PACKET_PortType.so: undefined reference to ` [0m [91mAF__PACKET__PortType::AF__PACKET__PT_PROVIDER:: [0m [91m~AF__PACKET__PT_PROVIDER()' [0m [91m AF_PACKET_PortType.so [0m [91m: undefined reference [0m [91mto ` [0m [91mAF__PACKET__PortType::AF__PACKET__PT_PROVIDER::Handle_Fd_Event(int, bool, bool, bool) [0m [91m' AF_PACKET_PortType.so: [0m [91mundefined [0m [91mreference to [0m [91m `AF__PACKET__PortType: [0m [91m:AF__PACKET__PT_PROVIDER::user_start()' Change-Id: I71352f5fa538c3ba599b11c2bb1fec2952ddbf80
2020-11-18 11:35:21 +00:00
#!/bin/bash
NAME=GBProxy_Tests
FILES="
*.ttcn
*.ttcnpp
AF_PACKET_PT.cc
AF_PACKET_PT.hh
BSSGP_EncDec.cc
GTPC_EncDec.cc
GTPU_EncDec.cc
GTP_CodecPort_CtrlFunctDef.cc
IPA_CodecPort_CtrlFunctDef.cc
IPL4asp_PT.cc
IPL4asp_discovery.cc
LLC_EncDec.cc
Native_FunctionDefs.cc
RLCMAC_EncDec.cc
SCCP_EncDec.cc
SCTPasp_PT.cc
TCCConversion.cc
TCCInterface.cc
TELNETasp_PT.cc
"
export CPPFLAGS_TTCN3="
-DBSSGP_EM_L3
-DIPA_EMULATION_CTRL
-DIPA_EMULATION_GSUP
-DNS_EMULATION_FR
-DUSE_MTP3_DISTRIBUTOR
"
../regen-makefile.sh -e $NAME $FILES
sed -i -i 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lsctp/' Makefile