Re: Capi compilation error after latest commits
Karsten Keil <[email protected]>
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
Am 08.05.2012 10:16, schrieb Karsten Keil:
> Am 08.05.2012 05:01, schrieb Patrick Lists:
>> 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
>
> Yes this move was wrong and need to be reverted.
>
done.
>> 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?
>>
For now use this patch (untested):
diff --git a/capi20/module/capi_mod_misdn.c b/capi20/module/capi_mod_misdn.c
index 5e0b765..9eb0912 100644
--- a/capi20/module/capi_mod_misdn.c
+++ b/capi20/module/capi_mod_misdn.c
@@ -160,9 +160,9 @@ static void misdnWriteCapiTrace(int nSend, unsigned
char *pnBuffer, int nLength,
* \brief Check if misdn interface is available
* \return file descriptor of socket, or error code
*/
-static unsigned misdnIsInstalled(void)
+static int misdnIsInstalled(void)
{
- unsigned nHandle;
+ int nHandle;
nHandle = misdnOpenSocket();
#ifdef MISDND_CAPI_MODULE_DEBUG
>
> Not yet, I do not see the change what could cause this at the moment,
> will have a deeper look today.
> [email protected]
>> https://www.isdn4linux.de/mailman/listinfo/isdn4linux
>>
>>
> >
>
>> Thanks!
>> Patrick
>> _______________________________________________
>> isdn4linux mailing list
>
> _______________________________________________
> isdn4linux mailing list
> [email protected]
> https://www.isdn4linux.de/mailman/listinfo/isdn4linux
>
>