| I've pushed a commit. I have no idea why it would link to pthread
here on MinGW and Debian without the call, but it seems to work fine
either way. I'm guessing maybe different versions of gcc deal with
pthread differently? Anyways, could you pull the latest John and give
it a try now?
On Sun, Apr 2, 2017 at 5:54 PM, Steven Yi wrote:
> I think I have found the issue (a missing call to add pthread library
> for linking) but I need to test on Linux. I'll reply shortly after
> testing.
>
> On Sun, Apr 2, 2017 at 4:18 PM, jpff wrote:
>> last night I asked about this which as reappeared
>>
>> ,
>> ......
>> 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 -DHAVE_PTHREAD -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
>>
>> |