#4 fails to compile

open
nobody
5
2009-12-01
2009-12-01
hazyl
No

gyachi 1.2.2 fails to compile with the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib -I../../client -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT -fpic -FPIC -g -O2 -Wall -Wno-pointer-sign -funsigned-char -MT gyachi-pulseaudio.lo -MD -MP -MF .deps/gyachi-pulseaudio.Tpo -c gyachi-pulseaudio.c -fPIC -DPIC -o .libs/gyachi-pulseaudio.o
gyachi-pulseaudio.c: In function 'pulseaudio_format':
gyachi-pulseaudio.c:66: error: 'PA_SAMPLE_S32LE' undeclared (first use in this function)
gyachi-pulseaudio.c:66: error: (Each undeclared identifier is reported only once
gyachi-pulseaudio.c:66: error: for each function it appears in.)
gyachi-pulseaudio.c:69: error: 'PA_SAMPLE_S32BE' undeclared (first use in this function)
make[3]: *** [gyachi-pulseaudio.lo] Error 1
make[3]: Leaving directory `/tmp1/Software/gyachi-1.2.2/plugins/pulseaudio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp1/Software/gyachi-1.2.2/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp1/Software/gyachi-1.2.2'
make: *** [all] Error 2

Suggestions please.

Discussion

  • hazyl
    hazyl
    2009-12-01

    The issue seems to be the version of PulseAudio. PA_SAMPLE_S32LE and PA_SAMPLE_S32BE are missing from the enumeration pa_sample_format in pulse/sample.h for older versions of PulseAudio.

    Workaround:
    Edit gyachi-1.2.2/plugins/pulseaudio/gyachi-pulseaudio.c and replace "return(PA_SAMPLE_S32LE)" and "return(PA_SAMPLE_S32BE)" with "return(PA_SAMPLE_INVALID)". This will essentially disable 32-bit PCM audio. Now recompile.