Commit Graph

52 Commits

Author SHA1 Message Date
Pau Espin 8933b8f7cd configure.ac: Set libosmo-e1d dependency version
Change-Id: I2c6e50f73090a2134485d68a189036bc0aa00266
2022-06-29 12:15:31 +02:00
Pau Espin 59a0c91904 Bump version: 1.2.0.14-dcbc-dirty → 1.3.0
Change-Id: I14b709d38d655d9c6f5238462da2f7b21c103898
2022-06-28 17:59:38 +02:00
Pau Espin a6eda5ae01 Bump version: 1.1.1.14-57ff-dirty → 1.2.0
Change-Id: I0536137e6221fd322536111dfda6e19d3c57de6c
2021-11-16 14:18:45 +01:00
Pau Espin de169199b9 Bump version: 1.0.0.34-2163-dirty → 1.1.0
Change-Id: Ic66eb67254d35f02ec8cdea4d79fa4b1899e8230
2021-02-23 16:21:49 +01:00
Oliver Smith 0f404b600c configure.ac: set -std=gnu11
Change-Id: Ib920af17b9a0b5d6ea5f4db33faab3a2dcf8fbbe
2021-01-27 17:32:20 +01:00
Harald Welte 072ec6f133 Merge branch '1.0.0' into master
We tagged 1.0.0 off a non-master version in the commit history in order
to keep the new TRAU frame handling out of the 1.0.0 release, but to
have all of the other fixes in a tagged release.  This merge brings
master in sync with those changes.

Change-Id: If8fc996f385f4127204ad773b991c49d853dfc5b
2020-08-13 12:14:36 +02:00
Harald Welte 2a8a34cd01 Bump version: 0.8.0.59-1f92-dirty → 1.0.0
Change-Id: Iffbb96739f53c7e005f440bc1615f158f7c661eb
2020-08-13 12:09:39 +02:00
Harald Welte dbb429cfd3 Add missing build dependency to libosmocodec-dev
Since I0190872dd282bcfe0f97bb4f8ab8d09023f9f06b we are using a header
file provided by libosmocodec, which means we need to add it to our
dependencies (and include path).  Linking against the library is
not required, as we don't use any symbols at this point.

Change-Id: Ie4524165d8873f6c801e07d9f03c94f43c66110d
2020-08-04 09:51:37 +02:00
Pau Espin 5196cd5641 e1_input: Use osmo_use_count in e1inp_line
osmo_use_count is available since libosmocore 1.1.0 release, so bump
required libosmocore version in autotools and packages.

struct e1inp_line field refcnt is kept in order to keep ABI
compatibility accessing struct fields. The new use_count is added at the
end. Size of struct changing is fine since it is allocated through
an API and a pointer should be used by clients.

e1inp_line_clone API is changed but it's not used by anyone outside
libosmo-abis, so it's fine.

Related: OS#4624
Change-Id: I0658b2e9c452598025cc0f1d0b060076171767cc
2020-07-15 15:39:33 +02:00
Oliver Smith 85887b2eee contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with
CentOS 8 etc.

Related: OS#4550
Change-Id: I3e135e5e7807688366598a24e121550d6292906c
2020-05-19 17:08:23 +02:00
Eric Wild 73a73c0381 configure.ac: fix libtool issue with clang and sanitizer
As pointed out at https://github.com/libexpat/libexpat/issues/312
libtool does not play nice with clang sanitizer builds at all.
For those builds LD shoud be set to clang too (and LDFLAGS needs the
sanitizer flags as well), because the clang compiler driver knows how
linking to the sanitizer libs works, but then at a later stage libtool
fails to actually produce the shared libraries and the build fails. This
is fixed by this patch.

Addtionally LD_LIBRARY_PATH has no effect on conftest runs during
configure time, so the rpath needs to be set to the asan library path to
ensure the configure run does not fail due to a missing asan library,
i.e.:

SANS='-fsanitize=memory -fsanitize-recover=all -shared-libsan'
export CC=clang-10
ASANPATH=$(dirname `$CC -print-file-name=libclang_rt.asan-x86_64.so`)
export LDFLAGS="-Wl,-rpath,$ASANPATH $SANS $LDFLAGS"

Change-Id: Ia3644168bfea13bda5e09b8bfe1d2c65abd32ad7
2020-04-11 01:15:40 +02:00
Sylvain Munaut b559a53263 e1d: Initial osmo-e1d support
osmo-e1d is part of the Osmocom 'software defined E1 interface,
which consists of a USB device for the actual E1 hardware interfacing,
and a daemon (osmo-e1d) implementing a libusb-based driver.

This commit adds initial support for talking to osmo-e1d using
the related libosmoe1d library.  You need to use '--enable-e1d'
at configure time to enable it.

Change-Id: Ia0431c124e3b5b4108aee7b109d8c4bb0d8b45d4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-12 14:22:18 +01:00
Harald Welte d4be696bbc Enable DAHDI support by default; require --disable-dahdi otherwise
libosmo-abis was built with DAHDI support, if the related header files
were present at built time, and without if not.  This kind of automagic
enabling/disabling of features is wrong.  Let's require DAHDI support by
default, and force the user to take a conscious decision by using an
explicit --disable-dahdi if he doesn't want it.

At the same time, update debian/control to list dahdi-source as build
dependency.

Change-Id: Id9f7f063e7ca9e3ab4aa96fc93f243caf50fb66a
Closes: OS#4248
2019-12-01 20:03:39 +00:00
Harald Welte 176a1fbab6 Bump version: 0.5.1.20-de57 → 0.6.0
Change-Id: I417065deb06ac7e8b3b8468b88cc803a41098c2d
2019-01-20 09:10:13 +00:00
Pau Espin 026ff4574d Bump version: 0.5.0.10-a210-dirty → 0.5.1
Change-Id: I9a606d5d3f9ce6baf99e69d60529332a460a9504
2018-07-27 18:15:19 +02:00
Pau Espin 7b89f12e66 Bump version: 0.4.0.21-60fd-dirty → 0.5.0
libosmotrau library version in debian package was wrong, fix it while
releasing.

Change-Id: I399618c7353a4150e3d571758b522dd2e9d9724f
2018-05-03 16:12:04 +02:00
Pau Espin 43b5b69bb8 configure.ac: Fix condition check for RTP_SIGNAL_PTR_CAST define
While building libosmo-netif on a system with an old ortp (0.22), it
was seen that warning related to RTP_SIGNAL_PTR_CAST not being correctly
selected were being printed. The compilation didn't fail there as
expected because the issue was being handled as a warning instead of an
error, so the void* ptr case was always being selected.

Change-Id: Ib5e7569e68fdb921c63e0c12e20e73aafbebda46
2018-04-10 18:15:52 +02:00
Neels Hofmeyr bb83e6f7eb configure: add --enable-werror
Provide a sane means of adding the -Werror compiler flag.

Currently, some of our jenkins.sh add -Werror by passing 'CFLAGS="-Werror"',
but that actually *overwrites* all the other CFLAGS we might want to have set.

Maintain these exceptions from -Werror:
a) deprecation (allow upstream to mark deprecation without breaking builds);
b) "#warning" pragmas (allow to remind ourselves of errors without breaking
   builds)

As a last configure step before generating the output files, print the complete
CFLAGS and CPPFLAGS by means of AC_MSG_RESULT.

Change-Id: I20d5f18cf05c9e277d914ada259a95187b73fe39
2018-03-05 20:39:19 +01:00
Neels Hofmeyr 2e05f883f9 add --enable-sanitize config option
Change-Id: I59fea4a7199ca6aa71710d3aca0b25425df7d346
2017-11-17 02:05:35 +01:00
Max e3260722d7 Use release helper from libosmocore
Change-Id: Ifc88e5c942a8b430b2436d429c86560d82984a95
Related: OS#1861
2017-08-08 11:55:31 +00:00
Pau Espin 1307b7aa60 configure.ac: Fix RTP_SIGNAL_PTR_CAST config in FreeBSD build
Move function definition to the first argument of AC_LANG_PROGRAM
(prologue) instead of the second (body). Content of the body is writen
into the main() function of the file being compiled, while prologue is
writen before it.

Compiler from FreeBSD build host doesn't like definitions inside the
main function, it fails with the following error:
conftest.c:28:73: error: function definition is not allowed here

As the compilation test fails, unsigned int is used instead of void*, which
doesn't match the current headers in the current build, and then a
warning (or error with -Werror) is printed.

Change-Id: I83fc3997e5067b499bf43cea4ff953604d6cbeae
2017-07-13 22:15:16 +02:00
Pau Espin 65529bc541 configure.ac: Fix C(PP)FLAGS for BSD build
Issue first found in libosmocore. It seems the BSD build doesn't use
bash which means using += to append to a variable doesn't work
correctly.

Change-Id: Id509351104bc7466114d4b9be450814254110f44
2017-07-05 22:02:56 +02:00
Neels Hofmeyr c633cfbb91 Revert "configure.ac: Use -Werror in C(PP)FLAGS"
As discussed in chat, -Werror should not be enabled by default.
Instead it should be added in our jenkins build scripts.

This reverts commit 7d1f53143e.

Change-Id: Ied6e21b72b24fcb623fd945ed9560b742a8eedf5
2017-06-22 18:44:45 +00:00
Pau Espin 7d1f53143e configure.ac: Use -Werror in C(PP)FLAGS
Change-Id: Ic674bf28d781b9806dc023777e1fea4ee1a0257a
2017-06-22 19:27:16 +02:00
Pau Espin 62eddcdcd8 configure.ac: Use -Wall in C(PP)FLAGS
Change-Id: I5033387e4a4206f7d34d1db3c6ede9255d199941
2017-06-22 19:27:16 +02:00
Pau Espin 05df2d65a7 osmo_ortp.c: Fix warning: check ortp API in rtp_session_signal_connect
Since ortp commit 5ab29c50adc7948b11449e3aeee66010379ff7dc preceeding
ortp 0.24, the API is fixed and requests a pointer instead of an
unsigned long.

As we now require at least ortp 0.22 since libosmo-abis
15d9b7929d, we need to support both old
and new version of the API to continue having support for 0.22 but still
supporting new versions of the library.

Change-Id: I2dbd0498d75160358eca4336850e1a0ad2efdbeb
2017-06-22 19:27:16 +02:00
Harald Welte bf7976c0b0 Fix HAVE_ORTP_LOG_DOMAIN detection on FreeBSD
We need to use the include path[s] resolved by pkg-config for
ortp before trying to compile our test program.  Without this
patch, compilation will fail e.g. on FreeBSD 11.

Change-Id: I0c95e37cc449297389bf31dd9d5dcaa922d75d0c
2017-04-04 14:34:50 +02:00
Pau Espin Pedrol c42bf19cc5 configure: Fix compilation with new libortp
Commit 0c8d9ddaea8c1afdc0e9b8c37a31c9d158e57efd in ortp broke old API:
function ortp_set_log_level_mask requires one new parameter 'domain'.

This commit fixes compilation in my Archlinux box using ortp 1.0.1.

Change-Id: I46e565f1873c7baf3c3b0aafe73951d20ce083b4
2017-03-27 15:21:48 +02:00
Max 8a3be282ab Enable sanitize
Add ./configure option to enable ASAN checks and use it for jenkins
tests. While at it - also move to /bin/sh shebang as we don't use
bashisms anyway.

Change-Id: Ie26e54ab6b850c9adf124a6bc613ec9bc9e8a6e2
2017-02-20 18:24:03 +01:00
Neels Hofmeyr 24796f2147 configure: check for pkg-config presence
Change-Id: If21ff26a836fd91021e0457ae0316be6b29b4577
2016-10-01 00:59:19 +02:00
Neels Hofmeyr f5d28602a7 build: be robust against install-sh files above the root dir
Explicitly set AC_CONFIG_AUX_DIR.

To reproduce the error avoided by this patch:

  rm install-sh        # in case it was already generated.
  touch ../install-sh  # yes, outside this source tree
  autoreconf -fi

This will produce an error like

  ...
  configure.ac:16: error: required file '../ltmain.sh' not found
  configure.ac:5: installing '../missing'
  src/Makefile.am: installing '../depcomp'
  autoreconf: automake failed with exit status: 1

See also automake (vim `which automake`) and look for 'sub locate_aux_dir'.

Change-Id: I5f69112f58b0a8ce0d848b0b6b543500ee63d133
2016-10-01 00:59:19 +02:00
Max 15d9b7929d Bump minimum oRTP version
Require version 0.22.0 which matches Debian stable ATM to simplify
testing and maintenance across all supported BTS models and
corresponding toolchains.

Change-Id: I005d60bb50889edad3e6fc0cd9f7f180aeaf1dab
Fixes: SYS#2569
2016-09-24 16:30:22 +02:00
Harald Welte b37c5d48f0 configure.ac: Add subdir-objects 2015-08-15 10:50:53 +02:00
Holger Hans Peter Freyther e58d33153d ortp: Fix the version check for ORTP by not using the cached result
The second check used the cached result for ORTP. Store the result
in ORTP_VERSION and my system properly detects that it is running
on < 0.21.

The HAVE_ORTP_021 will always be defined so just use #if and not
the #ifdef to fix the build.
2013-10-06 13:37:08 +02:00
Harald Welte 2bfc01dfd8 enable support of libortp >= 0.21, which has an API breakage
in libortp >= 0.21, rtp_session_set_local_addr() has one extra
argument for the RTCP port.
2013-10-06 12:23:35 +02:00
Holger Hans Peter Freyther 5c65e79edc tests: Add boilerplate to be able to have tests in libosmo-abis 2012-10-11 08:18:43 +02:00
Diego Elio Pettenò e5ae7f5217 build: remove checks introduced by autoscan.
Therre is no current use of HAVE_* variables for these checks in the
code, so there is no reason to keep the checks around.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:36 +02:00
Diego Elio Pettenò 6e389a3b2b build: consolidate automake options to configure.ac
Also disable building the gzip distribution since we're building the
bzip2-compressed tarball already.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:36 +02:00
Diego Elio Pettenò 56855350e9 build: build libosmotrau.la in the src directory.
This spares us another recursion, and allows a much higher
parallelisation, since trau is only one source unit and one standalone
library.

Incidentally, also make sure that the version specification for
libosmoabis is applied.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:36 +02:00
Diego Elio Pettenò 05819cebc4 build: avoid using a convenience library for the input subdirectory.
automake is well capable of building sources present in sub-directory
without requiring a recursion, so there is no reason to use a
non-installed library just for the extra files.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:36 +02:00
Diego Elio Pettenò 51f7940d1f build: use nobase_include_HEADERS instead of using recursive Makefiles
This simplifies installation of include files, as make no longer have
to recurse into subdirectories and install each subset of files in
different directories.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:35 +02:00
Diego Elio Pettenò 62f0e0612a build: use LT_INIT([pic-only]) instead of forcing -fPIC in AM_CFLAGS.
Also contextually remove the AC_PROG_LIBTOOL call (which is an
obsolete name for what is now LT_INIT).

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2012-07-01 07:40:35 +02:00
Holger Hans Peter Freyther 584672e8f4 misc: Fix the email address in the configure.ac 2012-03-26 16:36:57 +02:00
Harald Welte 833aa79ffa version 0.13.1 of libortp seems sufficient 2011-10-22 15:57:42 +02:00
Harald Welte 43f4e08841 depend on new libosmocore 0.3.10 (lapd) and increment LIBVERSION 2011-10-10 08:49:01 +02:00
Alexander Huemer 70e04c7ccc request ortp >=0.15.0
build fails with ortp <0.15.0 because of incompatible API.
2011-09-26 17:14:55 +02:00
Harald Welte 41d0d84fd6 add 'libosmotrau' for TRAU/RTP related code
This new library is intended to include everything related to
interfacing actual voice channels either via E1 or via RTP.

The first module in the library is osmo_rtp, based on the ortp library.
2011-09-03 15:33:24 +02:00
Harald Welte 3bc7885539 re-introduce optional build of DAHDI input plugin
We should only build it when the dahdi/user.h file is actually present.
2011-08-24 08:32:38 +02:00
Harald Welte 71d87b2597 talloc: revert to use talloc inside libosmocore
It's not a good idea to confuse the two changes with each other.  Moving the
Abis part into a separate library is independent from the question whether we
have talloc inside libosmocore or use a stand-alone talloc library.
2011-07-18 14:51:16 +02:00
Pablo Neira Ayuso 0b9ed9a389 dahdi: fix driver compilation
Now dahdi driver compiles file. We force the compilation of this
driver, I prefer to avoid condition compilation options that tend
add problems IMO.
2011-07-02 17:25:19 +02:00