Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound build broken on Windows BADLY

Date2014-01-28 23:20
FromMichael Gogins
Subject[Cs-dev] Csound build broken on Windows BADLY
AttachmentsNone  None  
Many errors similar to the following.

It is possible these errors would not have occurred, or would be easier to fix, if Csound developers avoided macros like the plague they are.

It it some irrational prejudice, do you think, that the people who write avionics software and medical software follow guidelines that forbid macros except for preventing multiple inclusions of header files?

This has something to do with using libintl, I think.

In file included from C:/Users/mike/csound-csound6-git/./include/csound.h:202:0,
                 from C:/Users/mike/csound-csound6-git/./include/csound_type_system.h:31,
                 from C:/Users/mike/csound-csound6-git/./include/csoundCore.h:36,
                 from c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:20:
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c: In function 'sliderTable_i8':
C:/Users/mike/csound-csound6-git/./include/text.h:116:16: error: expected ')' before 'csoundLocalizeString'
 #define Str(x) csoundLocalizeString(x)
                ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:67:25: note: in expansion of macro 'Str'
                         Str("illegal control number at position n.%d"), \
                         ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:175:5: note: in expansion of macro 'SLIDER_I_TABLE_INIT'
     SLIDER_I_TABLE_INIT(p,8);
     ^
C:/Users/mike/csound-csound6-git/./include/text.h:116:16: error: too few arguments to function 'libintl_snprintf'
 #define Str(x) csoundLocalizeString(x)
                ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:67:25: note: in expansion of macro 'Str'
                         Str("illegal control number at position n.%d"), \
                         ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:175:5: note: in expansion of macro 'SLIDER_I_TABLE_INIT'
     SLIDER_I_TABLE_INIT(p,8);
     ^
In file included from C:/Users/mike/csound-csound6-git/./include/text.h:112:0,
                 from C:/Users/mike/csound-csound6-git/./include/csound.h:202,
                 from C:/Users/mike/csound-csound6-git/./include/csound_type_system.h:31,
                 from C:/Users/mike/csound-csound6-git/./include/csoundCore.h:36,
                 from c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:20:
D:/msys/local/include/libintl.h:375:18: note: declared here
 #define snprintf libintl_snprintf
                  ^
D:/msys/local/include/libintl.h:376:12: note: in expansion of macro 'snprintf'
 extern int snprintf (char *, size_t, const char *, ...);
            ^
In file included from C:/Users/mike/csound-csound6-git/./include/csound.h:202:0,
                 from C:/Users/mike/csound-csound6-git/./include/csound_type_system.h:31,
                 from C:/Users/mike/csound-csound6-git/./include/csoundCore.h:36,
                 from c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:20:
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c: In function 'sliderTable_i16':
C:/Users/mike/csound-csound6-git/./include/text.h:116:16: error: expected ')' before 'csoundLocalizeString'
 #define Str(x) csoundLocalizeString(x)
                ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:67:25: note: in expansion of macro 'Str'
                         Str("illegal control number at position n.%d"), \
                         ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:197:5: note: in expansion of macro 'SLIDER_I_TABLE_INIT'
     SLIDER_I_TABLE_INIT(p,16);
     ^
C:/Users/mike/csound-csound6-git/./include/text.h:116:16: error: too few arguments to function 'libintl_snprintf'
 #define Str(x) csoundLocalizeString(x)
                ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:67:25: note: in expansion of macro 'Str'
                         Str("illegal control number at position n.%d"), \
                         ^
c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:197:5: note: in expansion of macro 'SLIDER_I_TABLE_INIT'
     SLIDER_I_TABLE_INIT(p,16);
     ^
In file included from C:/Users/mike/csound-csound6-git/./include/text.h:112:0,
                 from C:/Users/mike/csound-csound6-git/./include/csound.h:202,
                 from C:/Users/mike/csound-csound6-git/./include/csound_type_system.h:31,
                 from C:/Users/mike/csound-csound6-git/./include/csoundCore.h:36,
                 from c:/Users/mike/csound-csound6-git/Opcodes/gab/sliderTable.c:20:
D:/msys/local/include/libintl.h:375:18: note: declared here
 #define snprintf libintl_snprintf

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2014-01-29 07:25
Fromjpff
SubjectRe: [Cs-dev] Csound build broken on Windows BADLY
my fault -- cheked in code I had not checked



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-29 08:04
Fromjpff
SubjectRe: [Cs-dev] Csound build broken on Windows BADLY
Nothing to do with macros; a simple case of missing , either on account of 
my wearing keyboard or my negligence
==John ff

PS All checked in now -- may still be a few errors and I have not finished



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-29 12:56
FromMichael Gogins
SubjectRe: [Cs-dev] Csound build broken on Windows BADLY
AttachmentsNone  None  
Much better, thank you, but still not there:

Linking C shared module ../py.dll
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj): In function `format_call_statement2':
c:/Users/mike/csound-csound6-git/Opcodes/py/pythonopcodes.c:57: undefined reference to `strlcat'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj): In function `format_call_statement':
c:/Users/mike/csound-csound6-git/Opcodes/py/pythonopcodes.c:77: undefined reference to `strlcat'
collect2.exe: error: ld returned 1 exit status
Opcodes/CMakeFiles/py.dir/build.make:90: recipe for target `py.dll' failed
make[2]: *** [py.dll] Error 1
CMakeFiles/Makefile2:755: recipe for target `Opcodes/CMakeFiles/py.dir/all' failed
make[1]: *** [Opcodes/CMakeFiles/py.dir/all] Error 2
Makefile:146: recipe for target `all' failed
make: *** [all] Error 2

Best,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Jan 29, 2014 at 3:04 AM, jpff <jpff@codemist.co.uk> wrote:
Nothing to do with macros; a simple case of missing , either on account of
my wearing keyboard or my negligence
==John ff

PS All checked in now -- may still be a few errors and I have not finished



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-01-29 13:20
Fromjpff
SubjectRe: [Cs-dev] Csound build broken on Windows BADLY
strlcat is defined in str_ops.c but perhaps it ought to be elsewhere?



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-29 14:20
FromMichael Gogins
SubjectRe: [Cs-dev] Csound build broken on Windows BADLY
AttachmentsNone  None  
Is str_ops.c included in the Windows build of the Csound library?

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Jan 29, 2014 at 8:20 AM, jpff <jpff@codemist.co.uk> wrote:
strlcat is defined in str_ops.c but perhaps it ought to be elsewhere?



------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel