[CM] snd compilation problems on SGI

Bill Schottstaedt bil@ccrma.Stanford.EDU
Thu, 6 Mar 2003 04:55:59 -0800


> /usr/include/nl_types.h:300: warning: `MALLOC' redefined
> sndlib.h:352: warning: this is the location of the previous definition

This is caused by the SGI gettext support -- !%@#$#%@. Here's a quick
workaround -- in snd-utils.c at line 95, change the langinfo business to:

#if HAVE_LANGINFO_DECIMAL_POINT || HAVE_LANGINFO_RADIXCHAR
#undef MALLOC
#include <langinfo.h>
#undef MALLOC
#define MALLOC malloc
#endif

I'll try to add a check for this to the configure process.


> "vct.c", line 303: error(1119): return value type does not match the function type
>    return(C_TO_XEN_DOUBLE(v->data[loc]));

Did configure define HAVE_SCM_MAKE_REAL?  (I'm guessing that it didn't
for some reason, but that in guile 1.5.4 scm_makdbl has been removed,
so the compiler is assuming it returns an int).