On Sun, Dec 26, 2010 at 05:54:23PM +0100, Max Kellermann wrote: > On 2010/12/26 16:02, Ben Kibbey <b...@luxsci.net> wrote: > > --- > > configure.ac | 1 + > > 1 files changed, 1 insertions(+), 0 deletions(-) > > What does this fix?
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/usr/local/etc/mpd.conf"' -I/usr/include/alsa -D_REENTRANT -pthread -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -g -Wall -O2 -MT src/src_mpd-server_socket.o -MD -MP -MF src/.deps/src_mpd-server_socket.Tpo -c -o src/src_mpd-server_socket.o `test -f 'src/server_socket.c' || echo './'`src/server_socket.c In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34, from /usr/include/glib-2.0/glib.h:34, from src/server_socket.h:25, from src/server_socket.c:21: /usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’: /usr/include/glib-2.0/glib/gthread.h:348: warning: cast discards qualifiers from pointer target type src/server_socket.c: In function ‘get_remote_uid’: src/server_socket.c:126: error: storage size of ‘cred’ isn’t known src/server_socket.c:126: warning: unused variable ‘cred’ make[1]: *** [src/src_mpd-server_socket.o] Error 1 #define'ing _GNU_SOURCE fixes it and that autoconf macro does it automatically. -- Ben Kibbey [XMPP: bjk AT thiessen DOT im] - [IRC: (bjk) FreeNode/OFTC] ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team