Skip to content

Instantly share code, notes, and snippets.

@avilleret
Created January 29, 2020 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avilleret/19bfb74c84cc49b27bd8610545748044 to your computer and use it in GitHub Desktop.
Save avilleret/19bfb74c84cc49b27bd8610545748044 to your computer and use it in GitHub Desktop.
pd~ for Max build log
mbp-makula:pd~ antoine$ gcc -DMSP -o pd~.o pd~.c -I/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers -I/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/msp-includes -I${PWD}/../../src
pd~.c:46:9: warning: 'getbytes' macro redefined [-Wmacro-redefined]
#define getbytes t_getbytes
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_proto.h:296:9: note: previous definition is
here
#define getbytes(size) ((char *)sysmem_newptr((t_ptr_size)(size)))
^
pd~.c:47:9: warning: 'freebytes' macro redefined [-Wmacro-redefined]
#define freebytes t_freebytes
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_proto.h:297:9: note: previous definition is
here
#define freebytes(p,size) sysmem_freeptr((char *)(p))
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:81:9: warning: 'MAXPDSTRING' macro redefined [-Wmacro-redefined]
#define MAXPDSTRING 1000 /* use this for anything you want */
^
pd~.c:50:9: note: previous definition is here
#define MAXPDSTRING 4096
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:110:24: error: typedef redefinition with different types
('long' vs 't_ptr_int' (aka 'long long'))
typedef PD_LONGINTTYPE t_int; /* pointer-size integer */
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/max_types.h:102:19: note: previous definition is
here
typedef t_ptr_int t_int; ///< an integer @ingroup misc
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:112:22: error: typedef redefinition with different types ('float' vs 'double')
typedef PD_FLOATTYPE t_floatarg; /* float type for function calls */
^
pd~.c:43:16: note: previous definition is here
typedef double t_floatarg;
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:119:3: error: typedef redefinition with different types
('struct _symbol' vs 'struct symbol')
} t_symbol;
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:43:3: note: previous definition is
here
} t_symbol;
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:155:15: error: redefinition of 'word'
typedef union word
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:215:7: note: previous definition is
here
union word
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:168:5: error: redefinition of enumerator 'A_FLOAT'
A_FLOAT,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:187:2: note: previous definition is
here
A_FLOAT, ///< 32-bit float
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:169:5: error: redefinition of enumerator 'A_SYM'
A_SYMBOL,
^
pd~.c:45:18: note: expanded from macro 'A_SYMBOL'
#define A_SYMBOL A_SYM
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:188:2: note: previous definition is
here
A_SYM, ///< t_symbol pointer
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:171:5: error: redefinition of enumerator 'A_SEMI'
A_SEMI,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:195:2: note: previous definition is
here
A_SEMI, ///< semicolon
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:172:5: error: redefinition of enumerator 'A_COMMA'
A_COMMA,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:196:2: note: previous definition is
here
A_COMMA, ///< comma
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:173:5: error: redefinition of enumerator 'A_DEFFLOAT'
A_DEFFLOAT,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:191:2: note: previous definition is
here
A_DEFFLOAT, ///< float, but defaults to zero
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:174:5: error: redefinition of enumerator 'A_DEFSYM'
A_DEFSYM,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:192:2: note: previous definition is
here
A_DEFSYM, ///< symbol, defaults to ""
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:175:5: error: redefinition of enumerator 'A_DOLLAR'
A_DOLLAR,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:197:2: note: previous definition is
here
A_DOLLAR, ///< dollar
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:176:5: error: redefinition of enumerator 'A_DOLLSYM'
A_DOLLSYM,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:198:2: note: previous definition is
here
A_DOLLSYM, ///< dollar
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:177:5: error: redefinition of enumerator 'A_GIMME'
A_GIMME,
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:193:2: note: previous definition is
here
A_GIMME, ///< request that args be passed as an array, the routine will check the types itself.
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:178:5: error: redefinition of enumerator 'A_CANT'
A_CANT
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:194:2: note: previous definition is
here
A_CANT, ///< cannot typecheck args
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:187:3: error: typedef redefinition with different types
('struct _atom' vs 'struct atom')
} t_atom;
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:231:3: note: previous definition is
here
} t_atom;
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:249:22: error: typedef redefinition with different types
('struct _text' vs 'struct object')
typedef struct _text t_object;
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:117:3: note: previous definition is
here
} t_object;
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:279:16: error: conflicting types for 'getfn'
EXTERN t_gotfn getfn(const t_pd *x, t_symbol *s);
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_proto.h:1675:8: note: previous declaration
is here
method getfn(t_object *op, t_symbol *msg);
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:280:16: error: conflicting types for 'zgetfn'
EXTERN t_gotfn zgetfn(const t_pd *x, t_symbol *s);
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_proto.h:1699:8: note: previous declaration
is here
method zgetfn(t_object *op, t_symbol *msg);
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:288:9: warning: 'mess0' macro redefined [-Wmacro-redefined]
#define mess0(x, s) ((*getfn((x), (s)))((x)))
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:270:9: note: previous definition is
here
#define mess0 OB_MESS0
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:290:9: warning: 'mess1' macro redefined [-Wmacro-redefined]
#define mess1(x, s, a) ((*(t_gotfn1)getfn((x), (s)))((x), (a)))
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:272:9: note: previous definition is
here
#define mess1 OB_MESS1
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:292:9: warning: 'mess2' macro redefined [-Wmacro-redefined]
#define mess2(x, s, a,b) ((*(t_gotfn2)getfn((x), (s)))((x), (a),(b)))
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:274:9: note: previous definition is
here
#define mess2 OB_MESS2
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:294:9: warning: 'mess3' macro redefined [-Wmacro-redefined]
#define mess3(x, s, a,b,c) ((*(t_gotfn3)getfn((x), (s)))((x), (a),(b),(c)))
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:275:9: note: previous definition is
here
#define mess3(x, y, z1,z2,z3) (*(getfn((struct object *)x, y)))(x, z1,z2,z3)
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:297:9: warning: 'mess4' macro redefined [-Wmacro-redefined]
#define mess4(x, s, a,b,c,d) \
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:276:9: note: previous definition is
here
#define mess4(x, y, z1,z2,z3,z4) (*(getfn((struct object *)x, y)))(x, z1,z2,z3,z4)
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:301:9: warning: 'mess5' macro redefined [-Wmacro-redefined]
#define mess5(x, s, a,b,c,d,e) \
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/max-includes/ext_mess.h:277:9: note: previous definition is
here
#define mess5(x, y, z1,z2,z3,z4,z5) (*(getfn((struct object *)x, y)))(x, z1,z2,z3,z4,z5)
^
In file included from pd~.c:104:
In file included from ./binarymsg.c:2:
/Users/antoine/dev/pd/pure-data/extra/pd~/../../src/m_pd.h:308:14: error: conflicting types for 't_getbytes'
EXTERN void *getbytes(size_t nbytes);
^
pd~.c:46:18: note: expanded from macro 'getbytes'
#define getbytes t_getbytes
^
/Users/antoine/dev/voxelstrack2/3rdparty/libossia/3rdparty/max-sdk/source/c74support/msp-includes/z_dsp.h:351:7: note: previous declaration is
here
void *t_getbytes(long size);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
9 warnings and 20 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment