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

freebsd-isdn Digest, Vol 238, Issue 1

0 views
Skip to first unread message

freebsd-is...@freebsd.org

unread,
Jun 25, 2009, 8:00:17 AM6/25/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. Trying to compile chan_capi (Willem Jan Withagen)
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 (Willem Jan Withagen)
5. Re: Trying to compile chan_capi (Willem Jan Withagen)


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

Message: 1
Date: Thu, 25 Jun 2009 09:35:13 +0200
From: Willem Jan Withagen <w...@digiware.nl>
Subject: Trying to compile chan_capi
To: is...@freebsd.org
Message-ID: <4A4328B1...@digiware.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I'm trying to get Asterisk working on my FreeBSD server.

I've installed ISDN4BSD on an 7.2-RELEASE kernel, and it recognises the card
real nice.

Further installed asterisk16 and subversion (and some more) from packages.

So then

But compiling it fails horribly.
It just looks like the compiler has an of day...
(gcc version 4.2.1 20070719 [FreeBSD])

Any hints on getting CAPI to compile?


Thanx,
--WjW

Asterbsd# cd chan_capi_1_6_1
Asterbsd# gmake all |& less
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g
-I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE
-O6 -march=i386 -Wformat -DASTERISKVERSION=\"\" -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
In file included from chan_capi.c:34:
/usr/local/include/asterisk/frame.h:647: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int'
In file included from /usr/local/include/asterisk/channel.h:126,
from chan_capi.c:35:
/usr/local/include/asterisk/abstract_jb.h:97: error: expected
specifier-qualifier-list before 'FILE'
In file included from /usr/local/include/asterisk/utils.h:26,
from /usr/local/include/asterisk/config.h:30,
from /usr/local/include/asterisk/channel.h:143,
from chan_capi.c:35:
/usr/local/include/asterisk/network.h:55:2: error: #error "don't know how to
handle network functions here."
In file included from /usr/local/include/asterisk/utils.h:26,
from /usr/local/include/asterisk/config.h:30,
from /usr/local/include/asterisk/channel.h:143,
from chan_capi.c:35:
/usr/local/include/asterisk/network.h:59: warning: 'struct in_addr' declared
inside parameter list
/usr/local/include/asterisk/network.h:59: warning: its scope is only this
definition or declaration, which is probably not what you want
/usr/local/include/asterisk/network.h:80: warning: 'struct in_addr' declared
inside parameter list
/usr/local/include/asterisk/network.h:88: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int'
In file included from /usr/local/include/asterisk/config.h:30,
from /usr/local/include/asterisk/channel.h:143,
from chan_capi.c:35:
/usr/local/include/asterisk/utils.h:209: error: field 'hp' has incomplete type
/usr/local/include/asterisk/utils.h:266: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'void'
/usr/local/include/asterisk/utils.h:279: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'void'
/usr/local/include/asterisk/utils.h:292: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'void'
/usr/local/include/asterisk/utils.h:305: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'void'
/usr/local/include/asterisk/utils.h:346: error: expected ')' before '*' token
/usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_malloc'
/usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_malloc'
/usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_calloc'
/usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_calloc'
/usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_realloc'
/usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_realloc'
/usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_strdup'
/usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_strdup'
/usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_strndup'
/usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';',
'asm' or '__attribute__' before '_ast_strndup'
/usr/local/include/asterisk/utils.h:588: error: expected declaration
specifiers or '...' before 'va_list'
/usr/local/include/asterisk/utils.h:588: error: expected declaration
specifiers or '...' before 'va_list'
/usr/local/include/asterisk/utils.h: In function '_ast_vasprintf':
/usr/local/include/asterisk/utils.h:588: warning: implicit declaration of
function 'vasprintf'
/usr/local/include/asterisk/utils.h:588: error: 'ap' undeclared (first use
in this function)
/usr/local/include/asterisk/utils.h:588: error: (Each undeclared identifier
is reported only once
/usr/local/include/asterisk/utils.h:588: error: for each function it appears
in.)
In file included from /usr/local/include/asterisk/strings.h:30,
from /usr/local/include/asterisk/utils.h:676,

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

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

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.

--HPS


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

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

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".
#

----

--WjW


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

Message: 4
Date: Thu, 25 Jun 2009 13:08:32 +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: <4A435AB0...@digiware.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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?

--WjW


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

Message: 5
Date: Thu, 25 Jun 2009 13:27:42 +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: <4A435F2E...@digiware.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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

--WjW


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

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

0 new messages