Hey.

A little heads-up on this - I've converted libosmocore test to use --wrap linker
feature (see http://patchwork.ozlabs.org/patch/491690/ for patch) but attempts 
to do
the same with gbproxy test of OpenBSC fails exactly the same way as before:

Assert failed expect_msg() gbproxy_test.c:1922
backtrace() returned 5 addresses
./gbproxy_test() [0x40aa12]
./gbproxy_test() [0x40291a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7efd2814da40]
./gbproxy_test() [0x408009]

The test is compiled as follows:
gcc -Wall -ggdb3 -I/usr/include/  -I/usr/include/  -I/usr/include/  -g -O2
-Wl,-static,--wrap=gprs_ns_sendmsg,--wrap=sendto,-Bdynamic  -o gbproxy_test
gbproxy_test.o ../../src/gprs/gb_proxy.o ../../src/gprs/gb_proxy_patch.o
../../src/gprs/gb_proxy_peer.o ../../src/gprs/gb_proxy_tlli.o
../../src/gprs/gprs_gb_parse.o ../../src/gprs/gprs_llc_parse.o 
../../src/gprs/crc24.o
../../src/gprs/gprs_utils.o ../../src/libcommon/libcommon.a 
../../src/libbsc/libbsc.a
../../src/libtrau/libtrau.a -losmocore  -losmogb -losmovty  -losmogsm   
-losmovty
-losmoabis  -ldl  -lrt

Does it mean that the wrappers are not applied properly?
Or it's because of mysterious "msgb_bssgph" patch mentioned in the comments 
next to
assert?

-- 
best regards,
Max, http://fairwaves.co

Reply via email to