Date: Sat, 23 Sep 2006 14:20:59 +0100 From: Cian Hughes <cianlists@cian.ws> To: Aragon Gouveia <aragon@phat.za.net> Cc: freebsd-isdn@freebsd.org Subject: Re: chan_capi / liblinuxcapi build error on FreeBSD 6.1-RELEASE Message-ID: <5CF961A5-A728-49AA-8977-EA82872C62F0@cian.ws> In-Reply-To: <20060923093355.GA61816@phat.za.net> References: <20060920141458.GA80499@phat.za.net> <7B6C7213-80F6-42AC-889B-7A795D62124E@cian.ws> <20060921214734.GA28857@phat.za.net> <25C1B701-0BFD-4CE8-86EB-38FC72C0934D@cian.ws> <20060923093355.GA61816@phat.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ok, I presumed you were using Asterisk from ports, either use /usr/=20 ports/net/asterisk or try ftp://ftp.chan-capi.org/chan-capi/=20 chan_capi-0.7.0.tar.gz you'll need to comment out one line about hardware features, =20 somewhere in the source code, I can't remember what it is, but with =20 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 =20 > minor edits > for my bash path (/usr/local/bin/bash). chan_capi is giving me a > compilation error though: > > # gmake C4B=3Dyes > ./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 -=20 > g -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -O1 -=20 > march=3Di386 -Wno-missing-prototypes -Wno-missing-declarations -=20 > 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' =20 > from incompatible pointer type > chan_capi.c:2124: warning: implicit declaration of function =20 > 'ast_codec_pref_set2' > chan_capi.c:2136: error: request for member 'audio_bits' in =20 > something not a structure or union > chan_capi.c:2148: error: request for member 'audio_bits' in =20 > something not a structure or union > gmake: *** [chan_capi.o] Error 1 > > > Thanks! > > > > | By Cian Hughes <cian@cian.ws> > | [ 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=3Dyes; gmake C4B=3Dyes install >> >> Now try starting asterisks, if/when the above fails drop me a mail. >> >> ~Cian Hughes >> -- >> E cian@cian.ws >> 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 <cian@cian.ws> >>> | [ 2006-09-21 23:30 =20 >>> +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 cian@cian.ws >>>> 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 =20 >>>>> ports >>>>> tree on >>>>> a FreeBSD 6.1-RELEASE machine. liblinuxcapi will not build. Here >>>>> is the >>>>> transcript: >>>>> >>>>> --- >>>>> # pwd >>>>> /usr/ports/comms/liblinuxcapi >>>>> # make >>>>> =3D=3D=3D> Vulnerability check disabled, database not found >>>>> =3D=3D=3D> Extracting for liblinuxcapi-cvs-20050201 >>>>> =3D> MD5 Checksum OK for isdn4k-utils-CVS-2005-02-01.tar.bz2. >>>>> =3D> No SHA256 checksum recorded for isdn4k-utils- >>>>> CVS-2005-02-01.tar.bz2. >>>>> =3D=3D=3D> Patching for liblinuxcapi-cvs-20050201 >>>>> =3D=3D=3D> Applying FreeBSD patches for liblinuxcapi-cvs-20050201 >>>>> =3D=3D=3D> liblinuxcapi-cvs-20050201 depends on executable in : =20= >>>>> gmake - >>>>> found >>>>> =3D=3D=3D> Configuring for liblinuxcapi-cvs-20050201 >>>>> configure: WARNING: you should use --build, --host, --target >>>>> configure: error: cannot find sources (capi20.c) in . or .. >>>>> =3D=3D=3D> Script "configure" failed unexpectedly. >>>>> Please report the problem to Jan.Stocker@t-online.de [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 =20 >>>>> going >>>>> into the >>>>> capi20 directory, deleting the configure script and recreating it >>>>> by running >>>>> autoconf259. The build then progresses further, but then =20 >>>>> 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 =20= >>>>> the >>>>> above, >>>>> but is now complaining about libtool: >>>>> >>>>> --- >>>>> config.status: creating Makefile >>>>> =3D=3D=3D> Building for liblinuxcapi-cvs-20050201 >>>>> cd . && aclocal >>>>> aclocal:configure.in:10: warning: macro =01M_PROG_LIBTOOL' not >>>>> found in >>>>> library >>>>> cd . && automake --foreign Makefile >>>>> Makefile.am:8: Libtool library used but =0CIBTOOL' is undefined >>>>> Makefile.am:8: >>>>> Makefile.am:8: The usual way to define =0CIBTOOL' is to add = =01C_PROG_=20 >>>>> LI >>>>> BT >>>>> OOL' >>>>> Makefile.am:8: to =03onfigure.in' and run =01clocal' and =01utoconf'= >>>>> 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 =20 >>>>> issue to >>>>> me... >>>>> >>>>> >>>>> Thanks, >>>>> Aragon >>>>> _______________________________________________ >>>>> freebsd-isdn@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-isdn >>>>> To unsubscribe, send any mail to "freebsd-isdn- >>>>> unsubscribe@freebsd.org" >>>> >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5CF961A5-A728-49AA-8977-EA82872C62F0>