Re: chan_capi / liblinuxcapi build error on FreeBSD 6.1-RELEASE

Cian Hughes <[email protected]>
Newsgroups gmane.os.freebsd.devel.isdn
Message-ID <[email protected]>
Ok, I presumed you were using Asterisk from ports, either use /usr/ 
ports/net/asterisk or try ftp://ftp.chan-capi.org/chan-capi/ 
chan_capi-0.7.0.tar.gz
you'll need to comment out one line about hardware features,  
somewhere in the source code, I can't remember what it is, but with  
it in there it refuses to compile against c4b.

~Cian

On 23 Sep 2006, at 10:33, Aragon Gouveia wrote:

> Hi Cian,
>
> I've tried them.  capi20 compiled and installed with just some  
> minor edits
> for my bash path (/usr/local/bin/bash).  chan_capi is giving me a
> compilation error though:
>
> # gmake C4B=yes
> ./create_config.sh "/usr/local/include"
> Checking Asterisk version... 1.2.12.1
>  * no stringfield in ast_channel
>  * no data on 'indicate'
> config.h complete.
> gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations - 
> g  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE  -O1 - 
> march=i386  -Wno-missing-prototypes -Wno-missing-declarations - 
> DCRYPTO   -c -o chan_capi.o chan_capi.c
> chan_capi.c: In function 'capi_new':
> chan_capi.c:2123: warning: passing arg 1 of 'ast_codec_pref_init'  
> from incompatible pointer type
> chan_capi.c:2124: warning: implicit declaration of function  
> 'ast_codec_pref_set2'
> chan_capi.c:2136: error: request for member 'audio_bits' in  
> something not a structure or union
> chan_capi.c:2148: error: request for member 'audio_bits' in  
> something not a structure or union
> gmake: *** [chan_capi.o] Error 1
>
>
> Thanks!
>
>
>
> | By Cian Hughes <[email protected]>
> |                                          [ 2006-09-22 09:28 +0200 ]
>> Ok, here are some hackish instructions to tie you over until I sort
>> out something better...
>> 1. Install c4b 1.1.1
>> 2. Install Asterisk
>> 3 Download the contents of http://cian.ws/~cian/isdn/
>> 4 extract them
>> 5. cd capi20-cian; gmake; gmake install
>> 6. cd ../chan_capi*; gmake C4B=yes; gmake C4B=yes install
>>
>> Now try starting asterisks, if/when the above fails drop me a mail.
>>
>> ~Cian Hughes
>> --
>> E  [email protected]
>> M +353-86-8465317
>> P +353-1-4991205
>>
>>
>> On 21 Sep 2006, at 22:47, Aragon Gouveia wrote:
>>
>>> Excellent!  After loosing hope this has really lifted me. Very much
>>> looking forward to seeing your work! :)
>>>
>>>
>>> Thanks,
>>> Aragon
>>>
>>>
>>>
>>> | By Cian Hughes <[email protected]>
>>> |                                          [ 2006-09-21 23:30  
>>> +0200 ]
>>>> I managed to build an updated liblinuxcapi and chan_capi, will post
>>>> details as soon as I get a chance. I've found his version to be
>>>> broken.
>>>> ~Cian Hughes
>>>> --
>>>> E  [email protected]
>>>> M +353-86-8465317
>>>> P +353-1-4991205
>>>>
>>>>
>>>> On 20 Sep 2006, at 15:14, Aragon Gouveia wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I've tried mailing Jan Stocker about this, but so far no response.
>>>>> I was
>>>>> hoping someone else might have had this problem and could help me
>>>>> fix it.
>>>>>
>>>>> I have Jan's chan_capi and liblinuxcapi ports installed in my  
>>>>> ports
>>>>> tree on
>>>>> a FreeBSD 6.1-RELEASE machine.  liblinuxcapi will not build.  Here
>>>>> is the
>>>>> transcript:
>>>>>
>>>>> ---
>>>>> # pwd
>>>>> /usr/ports/comms/liblinuxcapi
>>>>> # make
>>>>> ===>  Vulnerability check disabled, database not found
>>>>> ===>  Extracting for liblinuxcapi-cvs-20050201
>>>>> => MD5 Checksum OK for isdn4k-utils-CVS-2005-02-01.tar.bz2.
>>>>> => No SHA256 checksum recorded for isdn4k-utils-
>>>>> CVS-2005-02-01.tar.bz2.
>>>>> ===>  Patching for liblinuxcapi-cvs-20050201
>>>>> ===>  Applying FreeBSD patches for liblinuxcapi-cvs-20050201
>>>>> ===>   liblinuxcapi-cvs-20050201 depends on executable in :  
>>>>> gmake -
>>>>> found
>>>>> ===>  Configuring for liblinuxcapi-cvs-20050201
>>>>> configure: WARNING: you should use --build, --host, --target
>>>>> configure: error: cannot find sources (capi20.c) in . or ..
>>>>> ===>  Script "configure" failed unexpectedly.
>>>>> Please report the problem to [email protected] [maintainer]
>>>>> and attach the
>>>>> "/usr/ports/comms/liblinuxcapi/work/isdn4k-utils-CVS-2005-02-01/
>>>>> capi20/config.log"
>>>>> including the output of the failure of your make command. Also, it
>>>>> might be
>>>>> a good idea to provide an overview of all packages installed on
>>>>> your system
>>>>> (e.g. an ls /var/db/pkg).
>>>>> *** Error code 1
>>>>>
>>>>> Stop in /usr/ports/comms/liblinuxcapi.
>>>>> ---
>>>>>
>>>>> I think the problem is automake/autoconf related.  I've tried  
>>>>> going
>>>>> into the
>>>>> capi20 directory, deleting the configure script and recreating it
>>>>> by running
>>>>> autoconf259.  The build then progresses further, but then  
>>>>> configure
>>>>> can't
>>>>> find automake, autoheader, aclocal, and autoconf.  I have autoconf
>>>>> 2.59 and
>>>>> automake 1.9 installed on this machine and have tried creating
>>>>> symlinks to
>>>>> the versioned binaries in /usr/local/bin.  Configure then finds  
>>>>> the
>>>>> above,
>>>>> but is now complaining about libtool:
>>>>>
>>>>> ---
>>>>> config.status: creating Makefile
>>>>> ===>  Building for liblinuxcapi-cvs-20050201
>>>>> cd . && aclocal
>>>>> aclocal:configure.in:10: warning: macro M_PROG_LIBTOOL' not
>>>>> found in
>>>>> library
>>>>> cd . && automake --foreign Makefile
>>>>> Makefile.am:8: Libtool library used but IBTOOL' is undefined
>>>>> Makefile.am:8:
>>>>> Makefile.am:8: The usual way to define IBTOOL' is to add C_PROG_ 
>>>>> LI
>>>>> BT
>>>>> OOL'
>>>>> Makefile.am:8: to onfigure.in' and run clocal' and utoconf'
>>>>> again.
>>>>> Makefile.am: required file ./compile' not found
>>>>> gmake: *** [Makefile.in] Error 1
>>>>> *** Error code 2
>>>>> ---
>>>>>
>>>>> I'm in a bit over my head here, hence the random hacks at a fix.
>>>>> Can anyone
>>>>> help me with this please?  Looks like a library dependancy  
>>>>> issue to
>>>>> me...
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Aragon
>>>>> _______________________________________________
>>>>> [email protected] mailing list
>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-isdn
>>>>> To unsubscribe, send any mail to "freebsd-isdn-
>>>>> [email protected]"
>>>>
>>

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isdn
To unsubscribe, send any mail to "[email protected]"
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.