I’m trying to build an app that must parse and generate ASN1 MAP messages. I tried to build ss7-in-c/libosmo-asn1-map with the latest libasn1c but failed. Can you suggest what approach should I have. Am I missing something? As I can see the MAP library is not touched since 2012.
All I can say is I reproduced it here.
I also tried processing the asn files with latest asn1c but that resulted in a segfault … so looks like there might be some non-trivial fixes to do to get it running again.
The proper approach nowadays imho would be to do the exact same as done recently for libosmo-asn1-tcap (ss7-in-c/libosmo-asn1-tcap: TCAP message decoding library - Osmocom gitea).
See src/Makefile.am there on how the asn1c boilerplate is generated from .asn files.
At least for libosmo-asn1-tcap.git and also SBcAP in osmo-cbc.git, we are using as1nc from mouse07410 (GitHub - mouse07410/asn1c: The ASN.1 Compiler), branch “vlm_master”. We even contributed and fixed several problems in that code base.
Note that the new approach keeps a copy of the asn1c-generated skeleton in the private code of each library, instead of having an exported libasn1c.
By the way, you can see libosmo-asn1-tcap being used in libosmo-sigtran.git
It may make sense to have libosmo-asn1-map.git doing as I mentioned.
Just to clarify: libosmo-asn1-map was an abandoned attempt of MAP encoding/decoding we tried 16 years ago. Contrary to our erlang MAP codec in osmo_map/src at master - erlang/osmo_map - Osmocom gitea it was never used anywhere.
I don’t really think anyone should handle MAP in a low-level language like C in 2026. Use Erlang, Python, or maybe (no idea about the state of ASN.1 tooling with support for information object classes there) in Rust or Go…