[Freeswitch-users] OpenBSD compile problems

Matt Klein mklein at nmedia.net
Wed Apr 18 10:53:24 PDT 2007


Bryan,
      On *BSD, I typically leave off Port Audio since I don't need it. I 
had FreeBSD working with it last year, but...

-m

On Tue, 17 Apr 2007, Bryan Vyhmeister wrote:

> On Apr 17, 2007, at 8:17 PM, Bryan Vyhmeister wrote:
>
>> I am attempting to compile Freeswitch that I just checked out from
>> svn on OpenBSD/macppc 4.1. I am running into this error:
>>
>> Compiling src/switch_ivr_play_say.c ...
>> Compiling src/switch_ivr_menu.c ...
>> Compiling src/switch_ivr.c ...
>> Compiling src/switch_stun.c ...
>> Compiling src/switch_log.c ...
>> src/switch_log.c: In function `log_thread':
>> src/switch_log.c:118: warning: statement with no effect
>> gmake[2]: *** [libfreeswitch_la-switch_log.lo] Error 1
>> Making all in src
>> Making all in mod
>>
>> making all mod_console
>> /usr/local/src/freeswitch.trunk/src/mod/loggers/mod_console
>> gmake[5]: *** No rule to make target `/usr/local/src/
>> freeswitch.trunk/libfreeswitch.la', needed by `mod_console.so'.  Stop.
>> gmake[4]: *** [all] Error 1
>> gmake[3]: *** [mod_console-all] Error 1
>> gmake[2]: *** [all-recursive] Error 1
>> gmake[1]: *** [all-recursive] Error 1
>> gmake: *** [all] Error 2
>>
>>
>> I tried commenting out line 118 from src/switch_log.c and then
>> compiling proceeded to the next error:
>>
>> making all mod_echo
>> /usr/local/src/freeswitch.trunk/src/mod/applications/mod_echo
>> Compiling mod_echo.c...
>> Creating mod_echo.so...
>>
>> making all mod_enum
>> Compiling ../../../../libs/udns/udns_dn.c...
>> Compiling ../../../../libs/udns/udns_dntosp.c...
>> Compiling ../../../../libs/udns/udns_parse.c...
>> Compiling ../../../../libs/udns/udns_misc.c...
>> Compiling ../../../../libs/udns/udns_rr_a.c...
>> ../../../../libs/udns/udns_rr_a.c: In function `dns_parse_a4':
>> ../../../../libs/udns/udns_rr_a.c:83: warning: statement with no
>> effect
>> gmake[5]: *** [../../../../libs/udns/udns_rr_a.o] Error 1
>> gmake[4]: *** [all] Error 1
>> gmake[3]: *** [mod_enum-all] Error 1
>> gmake[2]: *** [all-recursive] Error 1
>> gmake[1]: *** [all-recursive] Error 1
>> gmake: *** [all] Error 2
>>
>>
>> These errors both seem to be related to the warning "statement with
>> no effect." What is the best way to get around this? Thank you.
>
> Well, I commented out this second error and got quite a bit farther.
> The next failure was here:
>
> gcc -c -g -O2 -DPA_BIG_ENDIAN -pthread -I./include -I./src/common -I./
> src/os/unix -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
> DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
> DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
> DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
> DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1 -
> DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_CLOCK_GETTIME=1
> -DHAVE_NANOSLEEP=1 -DPA_USE_OSS=1 -DHAVE_SYS_STAT_H=1 src/hostapi/oss/
> pa_unix_oss.c  -fPIC -DPIC -o src/hostapi/oss/pa_unix_oss.o
> src/hostapi/oss/pa_unix_oss.c:73:49: machine/soundcard.h: No such
> file or directory
> src/hostapi/oss/pa_unix_oss.c: In function `Get_AFMT_S16_NE':
> src/hostapi/oss/pa_unix_oss.c:117: error: `AFMT_S16_LE' undeclared
> (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:117: error: (Each undeclared identifier
> is reported only once
> src/hostapi/oss/pa_unix_oss.c:117: error: for each function it
> appears in.)
> src/hostapi/oss/pa_unix_oss.c:117: error: `AFMT_S16_BE' undeclared
> (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `QueryDirection':
> src/hostapi/oss/pa_unix_oss.c:347: error: `SNDCTL_DSP_CHANNELS'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:377: error: `SNDCTL_DSP_STEREO'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:401: error: `SNDCTL_DSP_SPEED'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `OpenDevices':
> src/hostapi/oss/pa_unix_oss.c:811: error: `PCM_ENABLE_INPUT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:812: error: `SNDCTL_DSP_SETTRIGGER'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:822: error: `PCM_ENABLE_OUTPUT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `Pa2OssFormat':
> src/hostapi/oss/pa_unix_oss.c:916: error: `AFMT_U8' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c:919: error: `AFMT_S8' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `GetAvailableFormats':
> src/hostapi/oss/pa_unix_oss.c:940: error: `SNDCTL_DSP_GETFMTS'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:941: error: `AFMT_U8' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c:943: error: `AFMT_S8' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function
> `PaOssStreamComponent_Configure':
> src/hostapi/oss/pa_unix_oss.c:989: error: syntax error before "bufInfo"
> src/hostapi/oss/pa_unix_oss.c:1021: error: `SNDCTL_DSP_SETFRAGMENT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1029: error: `SNDCTL_DSP_SETFMT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1033: error: `SNDCTL_DSP_CHANNELS'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1038: error: `SNDCTL_DSP_SPEED'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1047: error: `SNDCTL_DSP_GETISPACE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1047: error: `SNDCTL_DSP_GETOSPACE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1047: error: `bufInfo' undeclared
> (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1052: error: `SNDCTL_DSP_GETBLKSIZE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `PaOssStream_Configure':
> src/hostapi/oss/pa_unix_oss.c:1115: error: `SNDCTL_DSP_SETDUPLEX'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `PaOssStream_WaitForFrames':
> src/hostapi/oss/pa_unix_oss.c:1283: error: syntax error before "bufInfo"
> src/hostapi/oss/pa_unix_oss.c:1383: error: `SNDCTL_DSP_GETISPACE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1383: error: `bufInfo' undeclared
> (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1392: error: `SNDCTL_DSP_GETOSPACE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `PaOssStream_Prepare':
> src/hostapi/oss/pa_unix_oss.c:1445: error: `PCM_ENABLE_INPUT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1445: error: `PCM_ENABLE_OUTPUT'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1446: error: `SNDCTL_DSP_SETTRIGGER'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `PaOssStream_Stop':
> src/hostapi/oss/pa_unix_oss.c:1480: error: `SNDCTL_DSP_POST'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `GetStreamTime':
> src/hostapi/oss/pa_unix_oss.c:1803: error: syntax error before "info"
> src/hostapi/oss/pa_unix_oss.c:1807: error: `SNDCTL_DSP_GETOPTR'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1807: error: `info' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c:1813: error: `SNDCTL_DSP_GETIPTR'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `GetStreamReadAvailable':
> src/hostapi/oss/pa_unix_oss.c:1916: error: syntax error before "info"
> src/hostapi/oss/pa_unix_oss.c:1918: error: `SNDCTL_DSP_GETISPACE'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1918: error: `info' undeclared (first
> use in this function)
> src/hostapi/oss/pa_unix_oss.c: In function `GetStreamWriteAvailable':
> src/hostapi/oss/pa_unix_oss.c:1930: error: `SNDCTL_DSP_GETODELAY'
> undeclared (first use in this function)
> gmake[6]: *** [src/hostapi/oss/pa_unix_oss.lo] Error 1
> gmake[5]: *** [../../../../libs/portaudio/lib/libportaudio.la] Error 2
> gmake[4]: *** [all] Error 1
> gmake[3]: *** [mod_portaudio-all] Error 1
> gmake[2]: *** [all-recursive] Error 1
> gmake[1]: *** [all-recursive] Error 1
> gmake: *** [all] Error 2
>
>
> I edited the file libs/portaudio/oss/pa_unix_oss.c and changed line
> 73 to read soundcard.h instead of machine/soundcard.h. This brought
> me along to the next failure:
>
> gcc -c -g -O2 -DPA_BIG_ENDIAN -pthread -I./include -I./src/common -I./
> src/os/unix -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
> DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
> DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
> DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
> DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1 -
> DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_CLOCK_GETTIME=1
> -DHAVE_NANOSLEEP=1 -DPA_USE_OSS=1 -DHAVE_SYS_STAT_H=1 src/hostapi/oss/
> pa_unix_oss.c  -fPIC -DPIC -o src/hostapi/oss/pa_unix_oss.o
> src/hostapi/oss/pa_unix_oss.c: In function `GetStreamWriteAvailable':
> src/hostapi/oss/pa_unix_oss.c:1930: error: `SNDCTL_DSP_GETODELAY'
> undeclared (first use in this function)
> src/hostapi/oss/pa_unix_oss.c:1930: error: (Each undeclared
> identifier is reported only once
> src/hostapi/oss/pa_unix_oss.c:1930: error: for each function it
> appears in.)
> gmake[6]: *** [src/hostapi/oss/pa_unix_oss.lo] Error 1
> gmake[5]: *** [../../../../libs/portaudio/lib/libportaudio.la] Error 2
> gmake[4]: *** [all] Error 1
> gmake[3]: *** [mod_portaudio-all] Error 1
> gmake[2]: *** [all-recursive] Error 1
> gmake[1]: *** [all-recursive] Error 1
> gmake: *** [all] Error 2
>
>
> I am now not sure where to go from here.
>
> Bryan
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>




More information about the FreeSWITCH-users mailing list