Frederick Wheelock
2002-Nov-06 20:43 UTC
[vorbis-dev] Compiling ogg123 under powerpc-apple-darwin6.1
Running gcc3 and running into a syntax error in ogg123's buffer.c : ... gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_CURL=1 -DHAVE_PTHREAD=1 -DHAVE_ALLOCA=1 -DHAVE_ATEXIT=1 -I../include -I../intl -fno-common -O4 -Wall -fsigned-char -ffast-math -c buffer.c buffer.c:76: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:84: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:92: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:193: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:199: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:208: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:215: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:219: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:261: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:268: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:287: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:309: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:317: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:317: undefined type, found `DEBUG' buffer.c:318: syntax error, missing `;' after `buf' buffer.c:323: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:326: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:333: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:433: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:448: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:459: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:473: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:488: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:500: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:518: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:530: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:536: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:570: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:580: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:587: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:602: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:733: only 1 arg to macro 'DEBUG' (2 expected) buffer.c:750: only 1 arg to macro 'DEBUG' (2 expected) cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[1]: *** [buffer.o] Error 1 make: *** [all-recursive] Error 1 ... I'm not real good at C programming. Thanks in advance for your help. Fred <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Monty
2002-Nov-27 23:18 UTC
[vorbis-dev] Re: Compiling ogg123 under powerpc-apple-darwin6.1
On Wed, Nov 06, 2002 at 11:43:21PM -0500, Frederick Wheelock wrote:> Running gcc3 and running into a syntax error in ogg123's buffer.c : > ... > buffer.c:76: only 1 arg to macro 'DEBUG' (2 expected)[...] Especially confusing as buffer.c does not use the DEBUG macro anywhere. I expect that the the problem is likely a bug in the automake system... But I donlt know that for certain. I'll forward this to the development list. Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Thursday, November 7, 2002, at 04:43 am, Frederick Wheelock wrote:> buffer.c:76: only 1 arg to macro 'DEBUG' (2 expected)Looks like your gcc doesn't support variable numbers of arguments to macros. As it says in the definition: /* Special debugging code. THIS IS NOT PORTABLE! */ Probably the best fix is to rewrite this as a function. In the meantime is there a switch that turns this on in gcc3? (or something we're doing to turn it off?) -r --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.