Capi compilation error after latest commits

Patrick Lists <misdn-list-tT6WbRwY5jipaK3yNG/KFWZHpeb/A1Y/@public.gmane.org>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
Hi,

I just updated isdn4k-utils, mISDN, mISDNuser and lcr to latest git and
now have some compilation issues.

First in isdn4k-utils both capi_mod.h capi_debug.h were removed but
mISDNuser does not compile for me without capi_mod.h (see line 15196 of
configure where it checks for capi_mod.h). Commit where it was removed:

http://misdn.eu/?p=isdn4k-utils.git;a=commitdiff;h=b6a9ae07b46f2b89620e7c8d3ce5635be93d8137

So I put back capi_mod.h and capi_debug.h in includeHEADERS in
Makefile.am, autoreconf, configure, make and install and then build
mISDNuser but this fails with the following error:

Making all in capi20/module
make[1]: Entering directory `/home/patrick/mISDNuser.git/capi20/module'
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../include  -I../../include -Wall -Werror  -fno-strict-aliasing
-Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
lib_capi_mod_misdn_la-capi_mod_misdn.lo -MD -MP -MF
.deps/lib_capi_mod_misdn_la-capi_mod_misdn.Tpo -c -o
lib_capi_mod_misdn_la-capi_mod_misdn.lo `test -f 'capi_mod_misdn.c' ||
echo './'`capi_mod_misdn.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include
-I../../include -Wall -Werror -fno-strict-aliasing -Wall -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -MT
lib_capi_mod_misdn_la-capi_mod_misdn.lo -MD -MP -MF
.deps/lib_capi_mod_misdn_la-capi_mod_misdn.Tpo -c capi_mod_misdn.c
-fPIC -DPIC -o .libs/lib_capi_mod_misdn_la-capi_mod_misdn.o
cc1: warnings being treated as errors
capi_mod_misdn.c:539: error: initialization from incompatible pointer type
make[1]: *** [lib_capi_mod_misdn_la-capi_mod_misdn.lo] Error 1
make[1]: Leaving directory `/home/patrick/mISDNuser.git/capi20/module'
make: *** [all-recursive] Error 1

This is an up-to-date CentOS 6.2 x86_64 VM.

Anyone have an idea how to fix this?

Thanks!
Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.