Csound Csound-dev Csound-tekno Search About

[Csnd]

Date2010-03-07 12:34
Frommenno
Subject[Csnd]
Hi,

when building from CVS i get this error:

Opcodes/jacko.cpp: In member function ‘int JackAudioIn::init(CSOUND*)’:
Opcodes/jacko.cpp:389: error: ‘sprintf’ is not a member of ‘std’
Opcodes/jacko.cpp: In member function ‘int JackAudioOut::init(CSOUND*)’:
Opcodes/jacko.cpp:462: error: ‘sprintf’ is not a member of ‘std’
Opcodes/jacko.cpp: In member function ‘int JackMidiOut::init(CSOUND*)’:
Opcodes/jacko.cpp:547: error: ‘sprintf’ is not a member of ‘std’
Opcodes/jacko.cpp: In member function ‘int JackNoteOut::init(CSOUND*)’:
Opcodes/jacko.cpp:659: error: ‘sprintf’ is not a member of ‘std’
scons: *** [Opcodes/jacko.os] Error 1
scons: building terminated because of errors.


These are the options i use with scons:

scons buildDSSI=1 buildImageOpcodes=1 buildInterfaces=1 buildJavaWrapper=1
buildNewParser=1 buildPythonOpcodes=1 buildUtilities=1 buildVirtual=1
Lib64=0 useDouble=1 usePortAudio=1 usePortMidi=1 useFLTK=1 Word64=1
buildStkOpcodes=1 buildPythonWrapper=1 generatePdf=1 buildStkOpcodes=1
useJack=0

My system is UbuntuStudio9.10.
Any help is appriciated,

Menno

-- 
View this message in context: http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27811083.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-07 20:37
FromAlan Peter Fitch
Subject[Csnd]
On 07/03/10 12:34, menno wrote:
> 
> Hi,
> 
> when building from CVS i get this error:
> 
> Opcodes/jacko.cpp: In member function ‘int JackAudioIn::init(CSOUND*)’:
> Opcodes/jacko.cpp:389: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackAudioOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:462: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackMidiOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:547: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackNoteOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:659: error: ‘sprintf’ is not a member of ‘std’
> scons: *** [Opcodes/jacko.os] Error 1
> scons: building terminated because of errors.
> 
> 
> These are the options i use with scons:
> 
> scons buildDSSI=1 buildImageOpcodes=1 buildInterfaces=1 buildJavaWrapper=1
> buildNewParser=1 buildPythonOpcodes=1 buildUtilities=1 buildVirtual=1
> Lib64=0 useDouble=1 usePortAudio=1 usePortMidi=1 useFLTK=1 Word64=1
> buildStkOpcodes=1 buildPythonWrapper=1 generatePdf=1 buildStkOpcodes=1
> useJack=0
> 
> My system is UbuntuStudio9.10.
> Any help is appriciated,
> 
> Menno
> 

This is a feature of improvements to the inclusion of header files in
gcc 4.3/4.4. Some header files that were incorrectly included by other
header files are no longer included.

It will require changes to the source code to fix.

I guess that the file jacko.cpp needs to have

#include 

added to it.

If there is a line

using namespace std;

then that is the only change you would have to make.

If using namespace std; is not present, then you would need to prefix
each call to sprintf with std::, e.g.

std::sprintf(...

That should get you going, but of course the real answer is to test the
CVS build with gcc 4.4 and correct the source files in CVS,

regards
Alan

Date2010-03-08 09:54
Frommenno
Subject[Csnd]
Thank you Alan Peter, but this is something i do not understand for years to
come :)
I will go back to an earlier backup from UbuntuStudio and try to build
Csound from CVS again...

but thanks for your answer

Menno

Alan Peter Fitch wrote:
> 
> On 07/03/10 12:34, menno wrote:
>> 
>> Hi,
>> 
>> when building from CVS i get this error:
>> 
>> Opcodes/jacko.cpp: In member function ‘int JackAudioIn::init(CSOUND*)’:
>> Opcodes/jacko.cpp:389: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackAudioOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:462: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackMidiOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:547: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackNoteOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:659: error: ‘sprintf’ is not a member of ‘std’
>> scons: *** [Opcodes/jacko.os] Error 1
>> scons: building terminated because of errors.
>> 
>> 
>> These are the options i use with scons:
>> 
>> scons buildDSSI=1 buildImageOpcodes=1 buildInterfaces=1
>> buildJavaWrapper=1
>> buildNewParser=1 buildPythonOpcodes=1 buildUtilities=1 buildVirtual=1
>> Lib64=0 useDouble=1 usePortAudio=1 usePortMidi=1 useFLTK=1 Word64=1
>> buildStkOpcodes=1 buildPythonWrapper=1 generatePdf=1 buildStkOpcodes=1
>> useJack=0
>> 
>> My system is UbuntuStudio9.10.
>> Any help is appriciated,
>> 
>> Menno
>> 
> 
> This is a feature of improvements to the inclusion of header files in
> gcc 4.3/4.4. Some header files that were incorrectly included by other
> header files are no longer included.
> 
> It will require changes to the source code to fix.
> 
> I guess that the file jacko.cpp needs to have
> 
> #include 
> 
> added to it.
> 
> If there is a line
> 
> using namespace std;
> 
> then that is the only change you would have to make.
> 
> If using namespace std; is not present, then you would need to prefix
> each call to sprintf with std::, e.g.
> 
> std::sprintf(...
> 
> That should get you going, but of course the real answer is to test the
> CVS build with gcc 4.4 and correct the source files in CVS,
> 
> regards
> Alan
> 
> -- 
> Alan Fitch
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27819121.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-08 12:30
FromFelipe Sateler
Subject[Csnd]
Should the jack opcodes be built when one specifies useJack=0? I
figure they shouldn't...

On Sun, Mar 7, 2010 at 09:34, menno  wrote:
>
> Hi,
>
> when building from CVS i get this error:
>
> Opcodes/jacko.cpp: In member function ‘int JackAudioIn::init(CSOUND*)’:
> Opcodes/jacko.cpp:389: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackAudioOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:462: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackMidiOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:547: error: ‘sprintf’ is not a member of ‘std’
> Opcodes/jacko.cpp: In member function ‘int JackNoteOut::init(CSOUND*)’:
> Opcodes/jacko.cpp:659: error: ‘sprintf’ is not a member of ‘std’
> scons: *** [Opcodes/jacko.os] Error 1
> scons: building terminated because of errors.
>
>
> These are the options i use with scons:
>
> scons buildDSSI=1 buildImageOpcodes=1 buildInterfaces=1 buildJavaWrapper=1
> buildNewParser=1 buildPythonOpcodes=1 buildUtilities=1 buildVirtual=1
> Lib64=0 useDouble=1 usePortAudio=1 usePortMidi=1 useFLTK=1 Word64=1
> buildStkOpcodes=1 buildPythonWrapper=1 generatePdf=1 buildStkOpcodes=1
> useJack=0
>
> My system is UbuntuStudio9.10.
> Any help is appriciated,
>
> Menno
>
> --
> View this message in context: http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27811083.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Saludos,
Felipe Sateler


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-08 15:22
Frommenno
Subject[Csnd]
No i do not need Jack to be build but it keeps on bugging me with this error.
So i turn the option off but the error persists.

Menno

Felipe Sateler wrote:
> 
> Should the jack opcodes be built when one specifies useJack=0? I
> figure they shouldn't...
> 
> On Sun, Mar 7, 2010 at 09:34, menno  wrote:
>>
>> Hi,
>>
>> when building from CVS i get this error:
>>
>> Opcodes/jacko.cpp: In member function ‘int JackAudioIn::init(CSOUND*)’:
>> Opcodes/jacko.cpp:389: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackAudioOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:462: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackMidiOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:547: error: ‘sprintf’ is not a member of ‘std’
>> Opcodes/jacko.cpp: In member function ‘int JackNoteOut::init(CSOUND*)’:
>> Opcodes/jacko.cpp:659: error: ‘sprintf’ is not a member of ‘std’
>> scons: *** [Opcodes/jacko.os] Error 1
>> scons: building terminated because of errors.
>>
>>
>> These are the options i use with scons:
>>
>> scons buildDSSI=1 buildImageOpcodes=1 buildInterfaces=1
>> buildJavaWrapper=1
>> buildNewParser=1 buildPythonOpcodes=1 buildUtilities=1 buildVirtual=1
>> Lib64=0 useDouble=1 usePortAudio=1 usePortMidi=1 useFLTK=1 Word64=1
>> buildStkOpcodes=1 buildPythonWrapper=1 generatePdf=1 buildStkOpcodes=1
>> useJack=0
>>
>> My system is UbuntuStudio9.10.
>> Any help is appriciated,
>>
>> Menno
>>
>> --
>> View this message in context:
>> http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27811083.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
> 
> 
> 
> -- 
> 
> Saludos,
> Felipe Sateler
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27820907.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-08 17:31
Fromjpff@cs.bath.ac.uk
Subject[Csnd]
>
> No i do not need Jack to be build but it keeps on bugging me with this
> error.
> So i turn the option off but the error persists.
>
> Menno

Seems to be changed in the CVS now

==John ff



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-03-08 17:37
Fromjpff@cs.bath.ac.uk
Subject[Csnd]
PS: It fails to build for me too.

>>
>> No i do not need Jack to be build but it keeps on bugging me with this
>> error.
>> So i turn the option off but the error persists.
>>
>> Menno
>
> Seems to be changed in the CVS now
>
> ==John ff
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-03-08 18:46
FromAlan Peter Fitch
Subject[Csnd]
On 08/03/10 17:37, jpff@cs.bath.ac.uk wrote:
> PS: It fails to build for me too.
> 
>>>
>>> No i do not need Jack to be build but it keeps on bugging me with this
>>> error.
>>> So i turn the option off but the error persists.
>>>
>>> Menno
>>
>> Seems to be changed in the CVS now
>>
>> ==John ff
>>
> 
> 
> 

John,

 if you're willing to let me have developer access, I know how to fix it
(I've fixed it on another project that started failing when gcc 4.4 came
out)

regards
Alan

Date2010-03-08 23:39
FromFelipe Sateler
Subject[Csnd]
Fixed on CVS now. I also disabled the building of the jack opcodes if
useJack=0 is specified.

On Mon, Mar 8, 2010 at 14:37,   wrote:
> PS: It fails to build for me too.
>
>>>
>>> No i do not need Jack to be build but it keeps on bugging me with this
>>> error.
>>> So i turn the option off but the error persists.
>>>
>>> Menno
>>
>> Seems to be changed in the CVS now
>>
>> ==John ff
>>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Saludos,
Felipe Sateler


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-09 00:51
FromFelipe Sateler
Subject[Csnd]
Ehm, actually some CVS oddity made me fail to realise John had already
fixed the usejack=0 issue.

On Mon, Mar 8, 2010 at 20:39, Felipe Sateler  wrote:
> Fixed on CVS now. I also disabled the building of the jack opcodes if
> useJack=0 is specified.
>
> On Mon, Mar 8, 2010 at 14:37,   wrote:
>> PS: It fails to build for me too.
>>
>>>>
>>>> No i do not need Jack to be build but it keeps on bugging me with this
>>>> error.
>>>> So i turn the option off but the error persists.
>>>>
>>>> Menno
>>>
>>> Seems to be changed in the CVS now
>>>
>>> ==John ff
>>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
>
> --
>
> Saludos,
> Felipe Sateler
>



-- 

Saludos,
Felipe Sateler


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-03-09 08:27
Frommenno
Subject[Csnd]
It builds now :)
thanks everybody

Menno


Felipe Sateler wrote:
> 
> Ehm, actually some CVS oddity made me fail to realise John had already
> fixed the usejack=0 issue.
> 
> On Mon, Mar 8, 2010 at 20:39, Felipe Sateler  wrote:
>> Fixed on CVS now. I also disabled the building of the jack opcodes if
>> useJack=0 is specified.
>>
>> On Mon, Mar 8, 2010 at 14:37,   wrote:
>>> PS: It fails to build for me too.
>>>
>>>>>
>>>>> No i do not need Jack to be build but it keeps on bugging me with this
>>>>> error.
>>>>> So i turn the option off but the error persists.
>>>>>
>>>>> Menno
>>>>
>>>> Seems to be changed in the CVS now
>>>>
>>>> ==John ff
>>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>>
>> --
>>
>> Saludos,
>> Felipe Sateler
>>
> 
> 
> 
> -- 
> 
> Saludos,
> Felipe Sateler
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/error%3A-%E2%80%98sprintf%E2%80%99-tp27811083p27832677.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"