Some files in hello_pi have been updated and are downloaded by rpi-update
Running the Makefile for hello_audio using the new files reports a number of duplicate function declarations.
Before using rpi-update I copied hello_pi to another directory. Following the update hello_audio from this directory still compiles, so it sounds like something in hello_pi. However all the other hello programs compile.
There are differences in Makefile.include but copying across the old one seems to make no difference.
Sorry, I'm going to have to leave it to an expert to investigate further
Ken
Error report follows:
COMPILE hello-audio
cc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include/ -I/opt/vc/include/ -I./ -I../libs -g -c audio.c -o audio.o -Wno-deprecated-declarations
cc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include/ -I/opt/vc/include/ -I./ -I../libs -g -c sinewave.c -o sinewave.o -Wno-deprecated-declarations
cc -o hello_audio.bin -Wl,--whole-archive -L/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm ../libs/libilclient.a audio.o sinewave.o -Wl,--no-whole-archive -rdynamic
audio.o: In function `audioplay_create':
/opt/vc/src/hello_pi/hello_audio/audio.c:69: multiple definition of `audioplay_create'
../libs/libilclient.a(audioplay.c.o):audioplay.c:(.text+0x4): first defined here
audio.o: In function `audioplay_delete':
/opt/vc/src/hello_pi/hello_audio/audio.c:202: multiple definition of `audioplay_delete'
../libs/libilclient.a(audioplay.c.o):audioplay.c:(.text+0x34c): first defined here
audio.o: In function `audioplay_get_buffer':
/opt/vc/src/hello_pi/hello_audio/audio.c:226: multiple definition of `audioplay_get_buffer'
../libs/libilclient.a(audioplay.c.o):audioplay.c:(.text+0x3e0): first defined here
audio.o: In function `audioplay_play_buffer':
/opt/vc/src/hello_pi/hello_audio/audio.c:248: multiple definition of `audioplay_play_buffer'
../libs/libilclient.a(audioplay.c.o):audioplay.c:(.text+0x444): first defined here
audio.o: In function `audioplay_get_latency':
/opt/vc/src/hello_pi/hello_audio/audio.c:314: multiple definition of `audioplay_get_latency'
../libs/libilclient.a(audioplay.c.o):audioplay.c:(.text+0x54c): first defined here
collect2: ld returned 1 exit status
make: *** [hello_audio.bin] Error 1
rm sinewave.o audio.o