Csound Csound-dev Csound-tekno Search About

[Csnd] Build error on osx10.13

Date2018-02-08 13:42
Fromrmgls
Subject[Csnd] Build error on osx10.13
Hello  all,

Build  from today git, just now, fails (osx10.13 up-to-date) :


	[ 0%] Building C object CMakeFiles/CsoundLib64.dir/Opcodes/spat3d.c.o ...csound/Opcodes/spat3d.c:665:54: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]     return csound->PerfError(csound, p->h.insdshead, Str("spat3d: not initialised")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...csound/./include/csdl.h:123:17: note: expanded from macro 'Str' #define Str(x) (csound->LocalizeString(x)) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ...csound/Opcodes/spat3d.c:665:54: note: treat the string as an argument to avoid this return csound->PerfError(csound, p->h.insdshead, Str("spat3d: not initialised")); ^ "%s", ...csound/./include/csdl.h:123:17: note: expanded from macro 'Str' #define Str(x) (csound->LocalizeString(x)) ^ ...csound/Opcodes/spat3d.c:786:30: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]                              Str("spat3di: not initialised")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...csound/./include/csdl.h:123:17: note: expanded from macro 'Str' #define Str(x) (csound->LocalizeString(x)) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ...csound/Opcodes/spat3d.c:786:30: note: treat the string as an argument to avoid this Str("spat3di: not initialised")); ^ "%s", ...csound/./include/csdl.h:123:17: note: expanded from macro 'Str' #define Str(x) (csound->LocalizeString(x)) ^ 2 errors generated. make[2]: *** [CMakeFiles/CsoundLib64.dir/Opcodes/spat3d.c.o] Error 1 make[1]: *** [CMakeFiles/CsoundLib64.dir/all] Error 2 make: *** [all] Error 2

Another thing so,
Sorry but I don’t remember how to configure to install on home directory,
I did not  wrote  what had  been said on this topic one month ago.

Thanks,  and best regard.

Raoul
rmgls@orange.fr

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-08 15:29
Fromjpff
SubjectRe: [Csnd] Build error on osx10.13
Looks like a clang oddity.  Nothing wrong with te code

What ersion of te C compiler are you using?

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-08 15:42
FromVictor Lazzarini
SubjectRe: [Csnd] Build error on osx10.13
It happens here if I use gettext. The problem is that Str(x) macro is translated as a function returning char *
and printf etc needs a literal. It’s a bug in the code, I am in the process of fixing.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Feb 2018, at 15:29, jpff  wrote:
> 
> Looks like a clang oddity.  Nothing wrong with te code
> 
> What ersion of te C compiler are you using?
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-08 17:34
FromVictor Lazzarini
SubjectRe: [Csnd] Build error on osx10.13
This should be fixed now.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Feb 2018, at 15:42, Victor Lazzarini  wrote:
> 
> It happens here if I use gettext. The problem is that Str(x) macro is translated as a function returning char *
> and printf etc needs a literal. It’s a bug in the code, I am in the process of fixing.
> 
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 8 Feb 2018, at 15:29, jpff  wrote:
>> 
>> Looks like a clang oddity.  Nothing wrong with te code
>> 
>> What ersion of te C compiler are you using?
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-10 06:26
Fromrmgls
SubjectRe: [Csnd] Build error on osx10.13
Thanks, Victor,
Build fine now.



> On 8 Feb 2018, at 18:34, Victor Lazzarini  wrote:
> 
> This should be fixed now.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 8 Feb 2018, at 15:42, Victor Lazzarini  wrote:
>> 
>> It happens here if I use gettext. The problem is that Str(x) macro is translated as a function returning char *
>> and printf etc needs a literal. It’s a bug in the code, I am in the process of fixing.
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 8 Feb 2018, at 15:29, jpff  wrote:
>>> 
>>> Looks like a clang oddity.  Nothing wrong with te code
>>> 
>>> What ersion of te C compiler are you using?
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>     https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here