Hi,
I sent previous message but didn't get anything, so I'm sending this group.
Thanks,
---------- Forwarded message ---------- From: Ivan Mikey ivanmikey2@gmail.com Date: Thu, Feb 28, 2013 at 1:32 PM Subject: ASN1C To: baseband-devel@lists.osmocom.org
Hi,
I've been searching for help regarding the ASN1C in http://cgit.osmocom.org/cgit/.
I'm not sure if this is the right group to contact or not, if not please let me know and I apologize for it.
I've installed the following
SS7/MAP asn1c libasn1c libosmo-asn1-map libosmo-asn1-tcap libosmo-tcap libsu osmo-tcap-map
and then did the below and I got the following errors.
/osmo-tcap-map/test$ make cc -lasn1c -losmo-asn1-map -losmo-asn1-tcap -lm -o gprs_update gprs_update.o gprs_update.o: In function `create_map_invoke': gprs_update.c:(.text+0xf0): undefined reference to `asn_long2INTEGER' gprs_update.c:(.text+0x111): undefined reference to `ANY_new_fromType' gprs_update.o: In function `upd_gprs_loc_invoke': gprs_update.c:(.text+0x160): undefined reference to `OCTET_STRING_fromBuf' gprs_update.c:(.text+0x17d): undefined reference to `OCTET_STRING_fromBuf' gprs_update.c:(.text+0x19a): undefined reference to `OCTET_STRING_fromBuf' gprs_update.c:(.text+0x1ad): undefined reference to `asn_DEF_UpdateGprsLocationArg' gprs_update.c:(.text+0x1b5): undefined reference to `xer_fprint' gprs_update.c:(.text+0x1c4): undefined reference to `asn_DEF_UpdateGprsLocationArg' gprs_update.c:(.text+0x1e2): undefined reference to `asn_DEF_Component' gprs_update.c:(.text+0x1ea): undefined reference to `xer_fprint' gprs_update.o: In function `upd_gprs_loc_aarq': gprs_update.c:(.text+0x2d7): undefined reference to `OBJECT_IDENTIFIER_set_arcs' gprs_update.c:(.text+0x2e7): undefined reference to `asn_DEF_DialoguePDU' gprs_update.c:(.text+0x2ef): undefined reference to `xer_fprint' gprs_update.o: In function `tcap_msg': gprs_update.c:(.text+0x3e9): undefined reference to `OCTET_STRING_fromBuf' gprs_update.c:(.text+0x415): undefined reference to `OBJECT_IDENTIFIER_set_arcs' gprs_update.c:(.text+0x42c): undefined reference to `asn_DEF_DialoguePDU' gprs_update.c:(.text+0x434): undefined reference to `ANY_fromType' gprs_update.c:(.text+0x443): undefined reference to `asn_DEF_ExternalPDU' gprs_update.c:(.text+0x448): undefined reference to `ANY_new_fromType' gprs_update.c:(.text+0x492): undefined reference to `asn_set_add' gprs_update.c:(.text+0x4a2): undefined reference to `asn_DEF_TCMessage' gprs_update.c:(.text+0x4aa): undefined reference to `xer_fprint' collect2: ld returned 1 exit status make: *** [gprs_update] Error 1
Thanks Ivan
On Fri, Mar 1, 2013 at 7:14 AM, Peter Stuge peter@stuge.se wrote:
Ivan Mikey wrote:
/osmo-tcap-map/test$ make cc -lasn1c -losmo-asn1-map -losmo-asn1-tcap -lm -o gprs_update gprs_update.o
Libraries need to follow objects that call them.
Which is _really_ annoying that Ubuntu linker now enforce that, because in the default 'make rules' (i.e. when you let makefile figure things out), it places ldflags before the objet files and so things break.
Cheers,
Sylvain
On Fri, Mar 01, 2013 at 04:38:45PM +0100, Sylvain Munaut wrote:
On Fri, Mar 1, 2013 at 7:14 AM, Peter Stuge peter@stuge.se wrote:
Ivan Mikey wrote:
/osmo-tcap-map/test$ make cc -lasn1c -losmo-asn1-map -losmo-asn1-tcap -lm -o gprs_update gprs_update.o
Libraries need to follow objects that call them.
Which is _really_ annoying that Ubuntu linker now enforce that, because in the default 'make rules' (i.e. when you let makefile figure things out), it places ldflags before the objet files and so things break.
In plain Makefiles the variable to place '-lfoo' flags is LDLIBS, then it works even on Ubuntu. See e.g. [1].
Kind regards, -Alexander Huemer
[1] http://cgit.osmocom.org/cgit/osmo-tetra/commit/?id=a4bdfabbbbd90f7a7887e434c...
Hi Ivan,
libosmo-asn1-map libosmo-asn1-tcap libosmo-tcap libsu osmo-tcap-map
There is a reason that those projects don't have any wiki pages or a dedicated mailing list: All of the projects you refer to are incomplete and inactive/stalled for a long time. Please do not expect any type of feedback from our side.
If you feel like picking up the work and contributing: Be my guest. But as indicated, you will be on your own.
asn1c libasn1c
Those two are just minor extended/modified versions from Lev Walkin's asn1c.
Regards, Harald
Hi All,
where i can get header file map.hrl ? it isn't present neither there nor there.
Thanks in advance !
=== building mgw_nat and its dependencies ===
{{{ cd ~/osmo-erlang/mgw_nat rebar get-deps rebar compile }}} some error will occur regarding src/tcap_map_patch.erl due to missing
map.hrl file
{{{ mv deps/osmo_map/src/map.hrl deps/osmo_map/include/ rebar compile }}}
Br, Sergei
Hi Sergei,
On Fri, Mar 01, 2013 at 08:23:04PM +0200, Sergei Oleinikov wrote:
where i can get header file map.hrl ? it isn't present neither there nor there.
erlangs asn1ct will produce map.hrl and map.erl out of the map.set.asn1
Normally, it gets compiled automatically, but then ends up in the asn1/ subdirectory (of osmo_map.git) instead of the include/ directory, where it should be.
Somebody with Erlang skills should probably fix rebar to do this properly.