[Csnd] Build error on osx10.13

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Build error on osx10.13

rmgls
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
[hidden email]

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Build error on osx10.13

jpff
Looks like a clang oddity.  Nothing wrong with te code

What ersion of te C compiler are you using?

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Build error on osx10.13

Victor Lazzarini-2
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 <[hidden email]> wrote:
>
> Looks like a clang oddity.  Nothing wrong with te code
>
> What ersion of te C compiler are you using?
>
> Csound mailing list
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Build error on osx10.13

Victor Lazzarini-2
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 <[hidden email]> 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 <[hidden email]> wrote:
>>
>> Looks like a clang oddity.  Nothing wrong with te code
>>
>> What ersion of te C compiler are you using?
>>
>> Csound mailing list
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Build error on osx10.13

rmgls
Thanks, Victor,
Build fine now.



> On 8 Feb 2018, at 18:34, Victor Lazzarini <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
>>>
>>> Looks like a clang oddity.  Nothing wrong with te code
>>>
>>> What ersion of te C compiler are you using?
>>>
>>> Csound mailing list
>>> [hidden email]
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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