Hi.
This patch is for libosmo-sccp. Without it the build only works on machines that have the needed headers in the default search path for includes. Otherwise the build fails like this:
/bin/bash ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME="libosmo-sccp" -DPACKAGE_TARNAME="libosmo-sccp" -DPACKAGE_VERSION="0.0.6.3.33-8209" -DPACKAGE_STRING="libosmo-sccp\ 0.0.6.3.33-8209" -DPACKAGE_BUGREPORT="openbsc@lists.osmocom.org" -DPACKAGE_URL="" -DPACKAGE="libosmo-sccp" -DVERSION="0.0.6.3.33-8209" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I../include -I.. -Wall -I/home/blackbit/usr/stow/libosmocore/include/ -g -O2 -MT sua.lo -MD -MP -MF .deps/sua.Tpo -c -o sua.lo sua.c libtool: compile: gcc -DPACKAGE_NAME="libosmo-sccp" -DPACKAGE_TARNAME="libosmo-sccp" -DPACKAGE_VERSION="0.0.6.3.33-8209" "-DPACKAGE_STRING="libosmo-sccp 0.0.6.3.33-8209"" -DPACKAGE_BUGREPORT="openbsc@lists.osmocom.org" -DPACKAGE_URL="" -DPACKAGE="libosmo-sccp" -DVERSION="0.0.6.3.33-8209" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I../include -I.. -Wall -I/home/blackbit/usr/stow/libosmocore/include/ -g -O2 -MT sua.lo -MD -MP -MF .deps/sua.Tpo -c sua.c -fPIC -DPIC -o .libs/sua.o sua.c:32:34: fatal error: osmocom/netif/stream.h: No such file or directory compilation terminated.
Kind regards, -Alex
--- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am index ba55162..238a840 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,5 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir) -AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) +AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMONETIF_CFLAGS)
# Legacy static libs
On Wed, Dec 23, 2015 at 10:28:48PM +0100, Alexander Huemer wrote:
-AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) +AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMONETIF_CFLAGS)
thanks, merged.