Csound Csound-dev Csound-tekno Search About

[Csnd-dev] fails to build

Date2017-04-01 21:44
Fromjpff
Subject[Csnd-dev] fails to build
Something about threads -- no idea what

make[2]: Leaving directory '/home/jpff/csound6'
make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
make[2]: Entering directory '/home/jpff/csound6'
Linking C executable testChannels
cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
/usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64 
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
make[2]: *** [tests/c/testChannels] Error 1
make[2]: Leaving directory '/home/jpff/csound6'
CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
make[1]: Leaving directory '/home/jpff/csound6'
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
birtwistle:~/csound6> 

Date2017-04-01 22:27
FromSteven Yi
SubjectRe: [Csnd-dev] fails to build
Perhaps do a clean and rebuild?  I wonder if any stale object files
might be around (longshot guess).  I'll switch to Linux now to see if
I can reproduce the issue.  (I'm using Debian here though which I
think is what is used on Travis, so I'm guess it might build fine...)

On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
> Something about threads -- no idea what
>
> make[2]: Leaving directory '/home/jpff/csound6'
> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
> make[2]: Entering directory '/home/jpff/csound6'
> Linking C executable testChannels
> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
> make[2]: *** [tests/c/testChannels] Error 1
> make[2]: Leaving directory '/home/jpff/csound6'
> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
> make[1]: Leaving directory '/home/jpff/csound6'
> Makefile:140: recipe for target 'all' failed
> make: *** [all] Error 2
> birtwistle:~/csound6>

Date2017-04-01 22:29
FromVictor Lazzarini
SubjectRe: [Csnd-dev] fails to build
Well, I had to fix a couple of things here on OSX. Seems to be OK 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 1 Apr 2017, at 22:27, Steven Yi  wrote:
> 
> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
> 
> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>> Something about threads -- no idea what
>> 
>> make[2]: Leaving directory '/home/jpff/csound6'
>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>> make[2]: Entering directory '/home/jpff/csound6'
>> Linking C executable testChannels
>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>> make[2]: *** [tests/c/testChannels] Error 1
>> make[2]: Leaving directory '/home/jpff/csound6'
>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>> make[1]: Leaving directory '/home/jpff/csound6'
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>> birtwistle:~/csound6>

Date2017-04-01 22:31
FromVictor Lazzarini
SubjectRe: [Csnd-dev] fails to build
One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
you can review this change, Steven?
========================
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 1 Apr 2017, at 22:27, Steven Yi  wrote:
> 
> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
> 
> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>> Something about threads -- no idea what
>> 
>> make[2]: Leaving directory '/home/jpff/csound6'
>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>> make[2]: Entering directory '/home/jpff/csound6'
>> Linking C executable testChannels
>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>> make[2]: *** [tests/c/testChannels] Error 1
>> make[2]: Leaving directory '/home/jpff/csound6'
>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>> make[1]: Leaving directory '/home/jpff/csound6'
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>> birtwistle:~/csound6>

Date2017-04-01 22:44
FromTarmo Johannes
SubjectRe: [Csnd-dev] fails to build
Hi did just some minute ago a pull from develop branch and it built nicely on 
openSuse Linux

tarmo

On laupäev, 1. aprill 2017 17:27.14 EEST you wrote:
> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
> 
> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
> > Something about threads -- no idea what
> > 
> > make[2]: Leaving directory '/home/jpff/csound6'
> > make -f tests/c/CMakeFiles/testChannels.dir/build.make
> > tests/c/CMakeFiles/testChannels.dir/build make[2]: Entering directory
> > '/home/jpff/csound6'
> > Linking C executable testChannels
> > cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script
> > CMakeFiles/testChannels.dir/link.txt --verbose=1 /usr/bin/cc  
> > -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer
> > -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers
> > -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7
> > -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden
> > -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g   
> > CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic
> > ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm
> > -ldl -lrt -Wl,-rpath,/usr/local/lib64
> > /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld
> > : ../../libcsound64.a(threads.c.o): undefined reference to symbol
> > 'pthread_mutexattr_settype@@GLIBC_2.2.5' /lib64/libpthread.so.0: error
> > adding symbols: DSO missing from command line collect2: error: ld
> > returned 1 exit status
> > tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target
> > 'tests/c/testChannels' failed make[2]: *** [tests/c/testChannels] Error 1
> > make[2]: Leaving directory '/home/jpff/csound6'
> > CMakeFiles/Makefile2:4638: recipe for target
> > 'tests/c/CMakeFiles/testChannels.dir/all' failed make[1]: ***
> > [tests/c/CMakeFiles/testChannels.dir/all] Error 2
> > make[1]: Leaving directory '/home/jpff/csound6'
> > Makefile:140: recipe for target 'all' failed
> > make: *** [all] Error 2
> > birtwistle:~/csound6>

Date2017-04-01 22:46
FromSteven Yi
SubjectRe: [Csnd-dev] fails to build
Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
can get some more info on that.

On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
 wrote:
> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
> you can review this change, Steven?
> ========================
> 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 1 Apr 2017, at 22:27, Steven Yi  wrote:
>>
>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>> might be around (longshot guess).  I'll switch to Linux now to see if
>> I can reproduce the issue.  (I'm using Debian here though which I
>> think is what is used on Travis, so I'm guess it might build fine...)
>>
>> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>>> Something about threads -- no idea what
>>>
>>> make[2]: Leaving directory '/home/jpff/csound6'
>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>> make[2]: Entering directory '/home/jpff/csound6'
>>> Linking C executable testChannels
>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>> collect2: error: ld returned 1 exit status
>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>> make[2]: *** [tests/c/testChannels] Error 1
>>> make[2]: Leaving directory '/home/jpff/csound6'
>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>> make[1]: Leaving directory '/home/jpff/csound6'
>>> Makefile:140: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>> birtwistle:~/csound6>

Date2017-04-01 23:17
FromSteven Yi
SubjectRe: [Csnd-dev] fails to build
I see what happened. I needed to add back including csGblMtx.h, but
more importantly, I had to add HAVE_PTHREAD to the global C compile
flags rather than just for libcsound64.  I committed that change and I
can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.

On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi  wrote:
> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
> can get some more info on that.
>
> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
>  wrote:
>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>> you can review this change, Steven?
>> ========================
>> 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 1 Apr 2017, at 22:27, Steven Yi  wrote:
>>>
>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>> I can reproduce the issue.  (I'm using Debian here though which I
>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>
>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>>>> Something about threads -- no idea what
>>>>
>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>> Linking C executable testChannels
>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>> collect2: error: ld returned 1 exit status
>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>> Makefile:140: recipe for target 'all' failed
>>>> make: *** [all] Error 2
>>>> birtwistle:~/csound6>

Date2017-04-01 23:31
FromVictor Lazzarini
SubjectRe: [Csnd-dev] fails to build
Thanks.
========================
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 1 Apr 2017, at 23:17, Steven Yi  wrote:
> 
> I see what happened. I needed to add back including csGblMtx.h, but
> more importantly, I had to add HAVE_PTHREAD to the global C compile
> flags rather than just for libcsound64.  I committed that change and I
> can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.
> 
> On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi  wrote:
>> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
>> can get some more info on that.
>> 
>> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
>>  wrote:
>>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>>> you can review this change, Steven?
>>> ========================
>>> 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 1 Apr 2017, at 22:27, Steven Yi  wrote:
>>>> 
>>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>>> I can reproduce the issue.  (I'm using Debian here though which I
>>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>> 
>>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>>>>> Something about threads -- no idea what
>>>>> 
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>>> Linking C executable testChannels
>>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>>> collect2: error: ld returned 1 exit status
>>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>>> Makefile:140: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>>> birtwistle:~/csound6>

Date2017-04-02 01:46
FromMichael Gogins
SubjectRe: [Csnd-dev] fails to build
i pulled just now and rebuilt with mingw64 on Windows 8.1 and it built
fine. And it runs.

Best,
Mike

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


On Sun, Apr 2, 2017 at 8:17 AM, Steven Yi  wrote:
> I see what happened. I needed to add back including csGblMtx.h, but
> more importantly, I had to add HAVE_PTHREAD to the global C compile
> flags rather than just for libcsound64.  I committed that change and I
> can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.
>
> On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi  wrote:
>> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
>> can get some more info on that.
>>
>> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
>>  wrote:
>>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>>> you can review this change, Steven?
>>> ========================
>>> 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 1 Apr 2017, at 22:27, Steven Yi  wrote:
>>>>
>>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>>> I can reproduce the issue.  (I'm using Debian here though which I
>>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>>
>>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff  wrote:
>>>>> Something about threads -- no idea what
>>>>>
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>>> Linking C executable testChannels
>>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>>> collect2: error: ld returned 1 exit status
>>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>>> Makefile:140: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>>> birtwistle:~/csound6>