Oliver Smith
48c038d399
Fix warnings from generated asn1 code in order to build osmo-iuh with werror in a future patch: ../../include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h:29:23: error: ‘struct HNBAP_CriticalityDiagnostics_IE_List__Member’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] These visibility warnings come from "SEQUENCE … OF SEQUENCE" definitions in the asn1 source files, as described in detail here: https://github.com/vlm/asn1c/issues/430 It is not possible to tell gcc to just ignore these warnings since they don't have their own type (unlike e.g. -Wuninitialized). Also it seems like a huge effort to patch this in asn1c. So work around the problem the same way the author of the issue worked around it by rewriting the lines to "SEQUENCE … OF …-Value" and adding a "…-Value ::= SEQUENCE" line below. Add a script in asn1/utils/asn1_restructure_sequence_of_sequence.py for the transformation and apply it. Related: OS#4462 Change-Id: If84445ed2e0df604b581684dcf83f8520b7da84c |
||
---|---|---|
asn1 | ||
contrib | ||
debian | ||
doc | ||
include | ||
pcap | ||
specs | ||
src | ||
.gitignore | ||
.gitreview | ||
COPYING | ||
Makefile.am | ||
README.md | ||
TODO-RELEASE | ||
configure.ac | ||
git-version-gen | ||
libosmo-hnbap.pc.in | ||
libosmo-ranap.pc.in | ||
libosmo-rua.pc.in | ||
libosmo-sabp.pc.in | ||
move-asn1-header-files.sh |
README.md
osmo-iuh - Osmocom Iuh implementation
This repository contains a C-language implementation of the 3GPP Iuh interface. You can use it to interface Iuh-speaking femtocells/small cells to Iu-speaking MSCs and SGSNs.
It is part of the Osmocom Open Source Mobile Communications project.
Homepage
The official homepage of the project is https://osmocom.org/projects/osmohnbgw/wiki
GIT Repository
You can clone from the official libosmocore.git repository using
git clone https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh
There is a web interface at https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh
Documentation
There is currently no documentation beyond the wiki available on the homepage. We would love to see somebody contributing a manual that can be part of the osmo-gsm-manuals suite.
Mailing List
Discussions related to osmo-iuh are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.
Please observe the Osmocom Mailing List Rules when posting.
Contributing
Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards
We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details
The current patch queue for osmo-iuh can be seen at https://gerrit.osmocom.org/#/q/project:osmo-iuh+status:open
Building
It is generally best to check the wiki for the most up-to-date build instructions.
As external library dependencies, you will need
- libosmocore from https://gitea.osmocom.org/osmocom/libosmocore
- libasn1c from https://gitea.osmocom.org/cellular-infrastructure/libasn1c
- libsctp-dev (this is the package name in Debian)
- libosmo-netif from https://gitea.osmocom.org/osmocom/libosmo-netif
- libosmo-sccp from https://gitea.osmocom.org/osmocom/libosmo-sccp
To bootstrap the build, in the root directory, run:
autoreconf --install
After that, run the usual
./configure [options]
make
[sudo] make install
Regenerating C code from ASN.1 source
In order to re-generate the C source code from the ASN.1 source, you will need a modified asn1c which has the following features:
- APER support (the patch from Eurecom, or its forward-ported version from the aper branch of https://gitea.osmocom.org/osmocom/asn1c)
- Support for prefixing the generated types (aper-prefix branch of https://gitea.osmocom.org/osmocom/asn1c)
- Then in osmo-iuh.git: make -C src/ regen