[PATCH] fix build without mISDN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

carcelle carcellelist at free.fr
Wed Feb 29 16:03:43 UTC 2012


Dear Alexander, Andreas, Sylvain,

still experiencing problems building without misdn : i have corrected my typo
error and use the last patch from alexander but still errors at compilation :

/usr/src/lcr# make
make  all-am
make[1]: Entering directory `/usr/src/lcr'
gcc        -Wall -DCONFIG_DATA="\"/usr/local/lcr\""
-DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"
/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\"" -D_GNU_SOURCE
-g -O2 -fPIC -c b
channel.c -o bchannel.po   
bchannel.c:26:27: error: mISDN/mISDNif.h: No such file or directory
bchannel.c:28:31: error: mISDN/mISDNcompat.h: No such file or directory
bchannel.c:29: error: 'MISDN_AF_ISDN' undeclared here (not in a function)
bchannel.c:30:24: error: mISDN/q931.h: No such file or directory
...

my best,

xavier.


On Wed, Feb 29, 2012 at 02:54:22PM +0100, Alexander Huemer wrote:
> ---
>  appbridge.cpp |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/appbridge.cpp b/appbridge.cpp
> index efad0d9..7309c80 100644
> --- a/appbridge.cpp
> +++ b/appbridge.cpp
> @@ -152,9 +152,9 @@ fail:
>  	} else
>  #endif
>  	{
> +		char *ifname = interface_out->name;
>  #ifdef WITH_MISDN
>  		struct mISDNport *mISDNport;
> -		char *ifname = interface_out->name;
>  		int channel = 0;
>  		struct admin_list *admin;
>  		int earlyb;
> @@ -199,7 +199,7 @@ fail:
>  		add_trace("interface", NULL, "%s", ifname);
>  		end_trace();
>  		cause = 31;
> -		goto fail
> +		goto fail;
>  #endif
>  	}
>  	if (!port)
> -- 
> 1.7.2.5
> 
> 




More information about the OpenBSC mailing list