Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-isdn Digest, Vol 238, Issue 2

0 views
Skip to first unread message

freebsd-is...@freebsd.org

unread,
Jun 26, 2009, 8:00:16 AM6/26/09
to freebs...@freebsd.org
Send freebsd-isdn mailing list submissions to
freebs...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-isdn
or, via email, send a message with subject or body 'help' to
freebsd-is...@freebsd.org

You can reach the person managing the list at
freebsd-i...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-isdn digest..."


Today's Topics:

1. Re: Trying to compile chan_capi (Hans Petter Selasky)
2. Re: Trying to compile chan_capi (Hans Petter Selasky)
3. Re: Trying to compile chan_capi (Willem Jan Withagen)
4. Re: Trying to compile chan_capi (Hans Petter Selasky)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Jun 2009 13:01:12 +0200
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: Trying to compile chan_capi
To: Willem Jan Withagen <w...@digiware.nl>
Cc: freebs...@freebsd.org
Message-ID: <200906251301....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Thursday 25 June 2009 12:33:03 Willem Jan Withagen wrote:
> Hans Petter Selasky wrote:
> > On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote:
> >> /usr/local/include/asterisk/frame.h
> >
> > You need to compile chan_capi from I4B SVN.
>
> You care to elaborate?
> Because I have the idea that I'm following what's on your building
> instructions: -----
> HOW TO INSTALL CHAN_CAPI ON FREEBSD AND NETBSD
> ==============================================
>
> #
> # Dependencies:
> # - Subversion must be installed, see "/usr/ports/devel/subversion"
> # - Asterisk must be installed, see "/usr/ports/net/asterisk"
> #
> #
> # Download the following tarball:
> #
>
> http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_1_6_1.tar.bz2
>
> #
> # Extract it using "tar -jxvf chan_capi_1_6_1.tar.bz2", and run:
> #
>
> cd chan_capi_1_6_1
> gmake all install
>
> #
> # Example configuration files are located at
> # "chan_capi_1_6_1/capi.conf" and
> # "chan_capi_1_6_1/extensions.conf".
> #
>

Those instructions are a little outdated, reminding me that my homepage needs
an update.

svn --username anonsvn --password anonsvn \
checkout svn://svn.turbocat.net/i4b
#
# The following commands will
# install the driver on FreeBSD:
#
cd i4b/trunk/chan_capi
gmake all install


Enjoy!

--HPS

------------------------------

Message: 2
Date: Thu, 25 Jun 2009 13:16:45 +0200
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: Trying to compile chan_capi
To: Willem Jan Withagen <w...@digiware.nl>
Cc: freebs...@freebsd.org
Message-ID: <200906251316....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Thursday 25 June 2009 13:08:32 Willem Jan Withagen wrote:
> Hans Petter Selasky wrote:
> > Those instructions are a little outdated, reminding me that my homepage
> > needs an update.
> >
> > svn --username anonsvn --password anonsvn \
> > checkout svn://svn.turbocat.net/i4b
> > #
> > # The following commands will
> > # install the driver on FreeBSD:
> > #
> > cd i4b/trunk/chan_capi
> > gmake all install
>
> Ouch, how trivial......
>
> Going there, doing that:
>
> 'mmmm, no not really, but closer;
>
> I now get a lot of:
>
> In file included from chan_capi20.h:7,
> from chan_capi.c:77:
> /usr/include/i4b/include/capi20.h:1960:2: error: invalid suffix
> "x__dont_use_bzero__use_memset_instead" on integer constant
> In file included from chan_capi20.h:7,
> from chan_capi.c:77:
> /usr/include/i4b/include/capi20.h: In function 'capi_decode':
> /usr/include/i4b/include/capi20.h:2217: error: expected ';' before string
> constant
> /usr/include/i4b/include/capi20.h:2221:8: error: invalid suffix
> "x__dont_use_bcopy__use_memmove_instead" on integer constant
> (ad infinitum)
>
> Could be because previous attempts have left me with a corrupt set of
> include files? If so how what do I clean up?

You need to install I4B from SVN aswell. See:

http://www.selasky.org/hans_petter/isdn4bsd/

And the SVN lines.

--HPS

------------------------------

Message: 3
Date: Thu, 25 Jun 2009 16:02:21 +0200
From: Willem Jan Withagen <w...@digiware.nl>
Subject: Re: Trying to compile chan_capi
To: Hans Petter Selasky <hsel...@c2i.net>
Cc: freebs...@freebsd.org
Message-ID: <4A43836D...@digiware.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Willem Jan Withagen wrote:
> Hans Petter Selasky wrote:
>> You need to install I4B from SVN aswell. See:
>>
>> http://www.selasky.org/hans_petter/isdn4bsd/
>>
>> And the SVN lines.
>
> That's where I started, but I'm guessing that certain files are now more
> or less corrupted by my tinkering with different tries.
>
> I'll clean out that directory and refetch from SVN

A lot less warnings, but still it nags about
bzero and bcopy
and replace them by memset and memmove.
Which I did with a macro..

Now I run into more serieus incompatibilities:

in chan_capi.c
error = capi20_be_alloc_i4b(&cbe_p);

versus:
/usr/include/i4b/include/capi20.h:capi20_is_installed(void);
/usr/include/i4b/include/capi20.h:#define capi20_isinstalled
capi20_is_installed
/usr/include/i4b/include/capi20.h:#define CAPI20_ISINSTALLED
capi20_is_installed

And that seems like some includes are still out of whack?

So I copied:
cp ../../../i4b/trunk/i4b/src/sys/i4b/include/* /usr/include/i4b/include/

And that leaves me with warnings like:
chan_capi.c:1045:2: warning: #warning "What about cd->next after free?
Currently 'cd' is not freed by cd_free()."
chan_capi.c:4680:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:4845:2: warning: #warning "Cannot do this, because one cannot
lock 'pbx_chan' here!"
chan_capi.c:5372:2: warning: #warning "Maybe cannot write these variables
here! Locking issue!"
chan_capi.c:5383:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:6858:2: warning: #warning "TODO: check for calls that never
received connect_conf;"
/usr/local/include/asterisk/frame.h:648: warning: 'ast_format_rate' defined
but not used

Which I'll consider harmless unless things start crashing on me...

--WjW

------------------------------

Message: 4
Date: Thu, 25 Jun 2009 16:22:42 +0200
From: Hans Petter Selasky <hsel...@c2i.net>
Subject: Re: Trying to compile chan_capi
To: Willem Jan Withagen <w...@digiware.nl>
Cc: freebs...@freebsd.org
Message-ID: <200906251622....@c2i.net>
Content-Type: Text/Plain; charset="iso-8859-1"

On Thursday 25 June 2009 16:02:21 Willem Jan Withagen wrote:
> Willem Jan Withagen wrote:

Hi,

I'm not sure when you last did a svn up, but all the errors you are reporting
have been fixed recently. Maybe you should "svn status" in your tree and
check?

We are currently:

At revision 1156.

--HPS


------------------------------

End of freebsd-isdn Digest, Vol 238, Issue 2
********************************************

0 new messages