[CM] snd compilation problems on SGI
ludger brummer
l.brummer@qub.ac.uk
Thu, 6 Mar 2003 20:38:40 -0000
Thanks Bill,
Including your lines made the the configure/gcc version compile.
As well the configure script defined HAVE_SCM_MAKE_REAL properly.
Ludger
Ludger Brummer http://ludi.sumtone.com
Sonic Arts Research Centre Center for Art and Media
Queen's University Belfast Institute for Music and Acoustic
Riddel Hall, Belfast BT7 1NN P.O. Box 6909 . D - 76049 Karlsruhe
Office +44 28 9033 5627 tel.: + 49 721 8100 1600
Germany: Gartenstr. 56 A,76133 Karlsruhe, Germany
mobile +49 160 5300 230 tel.: +49 721 831 6993
Northern Ireland: Flat1 38 Windsor Park, Belfast BT9 6FS
______________________________________________________________________
-----Original Message-----
From: Bill Schottstaedt [mailto:bil@ccrma.Stanford.EDU]
Sent: 06 March 2003 12:56
To: ludger brummer
Cc: cmdist@ccrma.Stanford.EDU
Subject: Re: [CM] snd compilation problems on SGI
> /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).