Hello,First, this is not a nice fix. I am also not sure why the error happens in the first place. I assume Apple deprecated some stuff in 10.6 + x86_64.
This is the error:gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -D_REENTRANT -I/opt/local/ include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/ include -DSYSTEM_CONFIG_FILE_LOCATION='"/usr/local/etc/mpd.conf"' -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/ include -Wall -Wextra -Wno-deprecated-declarations -Wmissing- prototypes -Wdeclaration-after-statement -Wshadow -Wpointer-arith - Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -g -O2 -I/ opt/local/include -MT src_mpd-osx_plugin.o -MD -MP -MF .deps/src_mpd- osx_plugin.Tpo -c -o src_mpd-osx_plugin.o `test -f 'src/output/ osx_plugin.c' || echo './'`src/output/osx_plugin.c
src/output/osx_plugin.c: In function ‘osx_output_close’:src/output/osx_plugin.c:109: warning: implicit declaration of function ‘CloseComponent’
src/output/osx_plugin.c: In function ‘osx_output_open’:src/output/osx_plugin.c:165: error: ‘ComponentDescription’ undeclared (first use in this function) src/output/osx_plugin.c:165: error: (Each undeclared identifier is reported only once
src/output/osx_plugin.c:165: error: for each function it appears in.) src/output/osx_plugin.c:165: error: expected ‘;’ before ‘desc’src/output/osx_plugin.c:166: error: ‘Component’ undeclared (first use in this function)
src/output/osx_plugin.c:166: error: expected ‘;’ before ‘comp’src/output/osx_plugin.c:167: warning: ISO C90 forbids mixed declarations and code src/output/osx_plugin.c:170: error: ‘ComponentResult’ undeclared (first use in this function)
src/output/osx_plugin.c:170: error: expected ‘;’ before ‘result’src/output/osx_plugin.c:175: error: ‘desc’ undeclared (first use in this function) src/output/osx_plugin.c:181: error: ‘comp’ undeclared (first use in this function) src/output/osx_plugin.c:181: warning: implicit declaration of function ‘FindNextComponent’ src/output/osx_plugin.c:188: warning: implicit declaration of function ‘OpenAComponent’ src/output/osx_plugin.c:192: warning: implicit declaration of function ‘GetMacOSStatusCommentString’ src/output/osx_plugin.c:192: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’ src/output/osx_plugin.c:201: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’ src/output/osx_plugin.c:208: error: ‘result’ undeclared (first use in this function) src/output/osx_plugin.c:258: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
make[1]: *** [src_mpd-osx_plugin.o] Error 1 make: *** [all] Error 2My patch simply uses the 10.5 SDK if compiling on 10.6 Snow Leopard - which is installed by default if you install XCode 3.2 that comes with Snow Leopard. The reason this is not a nice fix is, of course, that this doesn't fix the problem. It just "postpones" it to the next release of MacOS X. But, some people may need it, and its better than nothing.
Patch is attached.
mpd.10.6.compile.hack.diff
Description: Binary data
I am no longer subscribed to this mailing list, so if there are any questions, please CC me.
Patrik Weiskircher
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team