Csound Csound-dev Csound-tekno Search About

[Cs-dev] Build errors on tests

Date2013-02-12 04:44
FromAndres Cabrera
Subject[Cs-dev] Build errors on tests
AttachmentsNone  None  
HI,

I'm getting these errors when trying to build the tests:

CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function `test_args_required':

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:30: undefined reference to `argsRequired'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:31: undefined reference to `argsRequired'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:32: undefined reference to `argsRequired'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:33: undefined reference to `argsRequired'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:34: undefined reference to `argsRequired'

CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o:/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:35: more undefined references to `argsRequired' follow

CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function `test_split_args':

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:43: undefined reference to `splitArgs'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:48: undefined reference to `mfree'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:50: undefined reference to `splitArgs'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:56: undefined reference to `mfree'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:58: undefined reference to `splitArgs'

/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:64: undefined reference to `mfree'

Any ideas? I've tried adding the c file where the functions are defined, but it complains...

Cheers,
Andrés

Date2013-02-12 11:07
FromSteven Yi
SubjectRe: [Cs-dev] Build errors on tests
Hi Andres,

Unless something changed, it's probably something that works here on
OSX but not on Linux.  I used just extern's to get the functions to
link, but I'm guess it's not enough there.  Let me rewrite that so
that there are function definitions in the headers.  I'll test on
Linux and write back here when complete.

Thanks!
steven

On Tue, Feb 12, 2013 at 4:44 AM, Andres Cabrera  wrote:
> HI,
>
> I'm getting these errors when trying to build the tests:
>
> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
> `test_args_required':
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:30: undefined
> reference to `argsRequired'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:31: undefined
> reference to `argsRequired'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:32: undefined
> reference to `argsRequired'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:33: undefined
> reference to `argsRequired'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:34: undefined
> reference to `argsRequired'
>
> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o:/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:35:
> more undefined references to `argsRequired' follow
>
> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
> `test_split_args':
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:43: undefined
> reference to `splitArgs'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:48: undefined
> reference to `mfree'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:50: undefined
> reference to `splitArgs'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:56: undefined
> reference to `mfree'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:58: undefined
> reference to `splitArgs'
>
> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:64: undefined
> reference to `mfree'
>
> Any ideas? I've tried adding the c file where the functions are defined, but
> it complains...
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-02-12 13:42
FromSteven Yi
SubjectRe: [Cs-dev] Build errors on tests
Hi Andres,

The tests should be fixed up now.  I had to mark some functions as
PUBLIC so that they could be linked to on Linux.  Also, I noticed the
csdtests targets run differently on Linux than they do on Mac (the
output is not being captured from Csound).  I'm not sure what's going
on there, but need to look at a merge issue at the moment.  I'll try
to come back to it later unless someone else gets to it first.

Thanks!
steven

On Tue, Feb 12, 2013 at 11:07 AM, Steven Yi  wrote:
> Hi Andres,
>
> Unless something changed, it's probably something that works here on
> OSX but not on Linux.  I used just extern's to get the functions to
> link, but I'm guess it's not enough there.  Let me rewrite that so
> that there are function definitions in the headers.  I'll test on
> Linux and write back here when complete.
>
> Thanks!
> steven
>
> On Tue, Feb 12, 2013 at 4:44 AM, Andres Cabrera  wrote:
>> HI,
>>
>> I'm getting these errors when trying to build the tests:
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
>> `test_args_required':
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:30: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:31: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:32: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:33: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:34: undefined
>> reference to `argsRequired'
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o:/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:35:
>> more undefined references to `argsRequired' follow
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
>> `test_split_args':
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:43: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:48: undefined
>> reference to `mfree'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:50: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:56: undefined
>> reference to `mfree'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:58: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:64: undefined
>> reference to `mfree'
>>
>> Any ideas? I've tried adding the c file where the functions are defined, but
>> it complains...
>>
>> Cheers,
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-02-13 05:53
FromAndres Cabrera
SubjectRe: [Cs-dev] Build errors on tests
AttachmentsNone  None  

Thanks Steven. Works now.

Cheers,
Andres

On Feb 12, 2013 5:43 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
Hi Andres,

The tests should be fixed up now.  I had to mark some functions as
PUBLIC so that they could be linked to on Linux.  Also, I noticed the
csdtests targets run differently on Linux than they do on Mac (the
output is not being captured from Csound).  I'm not sure what's going
on there, but need to look at a merge issue at the moment.  I'll try
to come back to it later unless someone else gets to it first.

Thanks!
steven

On Tue, Feb 12, 2013 at 11:07 AM, Steven Yi <stevenyi@gmail.com> wrote:
> Hi Andres,
>
> Unless something changed, it's probably something that works here on
> OSX but not on Linux.  I used just extern's to get the functions to
> link, but I'm guess it's not enough there.  Let me rewrite that so
> that there are function definitions in the headers.  I'll test on
> Linux and write back here when complete.
>
> Thanks!
> steven
>
> On Tue, Feb 12, 2013 at 4:44 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
>> HI,
>>
>> I'm getting these errors when trying to build the tests:
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
>> `test_args_required':
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:30: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:31: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:32: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:33: undefined
>> reference to `argsRequired'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:34: undefined
>> reference to `argsRequired'
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o:/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:35:
>> more undefined references to `argsRequired' follow
>>
>> CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function
>> `test_split_args':
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:43: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:48: undefined
>> reference to `mfree'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:50: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:56: undefined
>> reference to `mfree'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:58: undefined
>> reference to `splitArgs'
>>
>> /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:64: undefined
>> reference to `mfree'
>>
>> Any ideas? I've tried adding the c file where the functions are defined, but
>> it complains...
>>
>> Cheers,
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel