[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-bsd
Subject:    Re: [Asterisk-bsd] working to get zaptel-trunk to compile on FreeBSD
From:       Max Khon <fjoe () samodelkin ! net>
Date:       2006-12-07 12:26:30
Message-ID: 20061207122629.GA97852 () samodelkin ! net
[Download RAW message or body]

Hi!

On Wed, Dec 06, 2006 at 02:00:40PM -0500, Paul Belanger wrote:

> I'm working on some patch to atleast get zaptel-trunk to compile on
> FreeBSD 6.1.  Ran into a little problem, and figure I ask the list
> what would be better.
> 
> gcc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DHOTPLUG_FIRMWARE -I. -O4 -g
> -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DHOTPLUG_FIRMWARE   -c -o
> tonezone.o tonezone.c
> tonezone.c: In function `tone_zone_set_zone':
> tonezone.c:307: error: `ENODATA' undeclared (first use in this function)
> tonezone.c:307: error: (Each undeclared identifier is reported only once
> tonezone.c:307: error: for each function it appears in.)
> tonezone.c: In function `tone_zone_play_tone':
> tonezone.c:336: error: `ENODATA' undeclared (first use in this function)
> 
> Currently ENODATA does not exist in the version of errno.h we have on
> FreeBSD (check out http://www.google.ca/search?q=freebsd+ENODATA for
> more info).  I can see 2 options, include into the source of zaptel
> the values of ENODATA, or change the tonezone.c source to use another
> value from errno.h,
> 
> Thoughs?

These errno values are used after ioctl to zaptel kernel device.
You should use whatever value will be used in FreeBSD zaptel kernel driver.

/fjoe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic