[Asterisk-bsd] working to get zaptel-trunk to compile on FreeBSD 6.1

Max Khon fjoe at samodelkin.net
Thu Dec 7 05:26:30 MST 2006


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


More information about the Asterisk-BSD mailing list