Thanks Marcus,

That did it. Don't know what I would do without you!

Jim

-----Original Message----- From: Marcus Müller
Sent: Friday, October 18, 2024 2:03 PM
To: discuss-gnuradio@gnu.org
Subject: Re: Error on trying to install an OOT

Hi!
Sounds like you're in the right place :)

Question: this looks a bit like half a build made with an older version; you need to clean the build/ directory, run `cmake` and `make` again before you can `sudo make install`.

Best,
Marcus

On 18.10.24 02:45, Elmore Family wrote:
I’m not sure this is where I should be asking this question but here goes.
To anyone that is wondering I just upgraded to Bookworm on my Pi and installed GNURadio 3.10.5.1. ( This was the subject of much discussion recently) I am attempting to install an OOT module from my existing project because it does not show in the flowgraph. I assume that I need to perform ‘sudo make install’ to load it into the new GNURadio. Perhaps this is not a correct assumption. However, when I perform the command I get an error which is spelled out in the error log below.
What do I need to do here?
Jim
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/pi/gr-freq/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_15004/fast && /usr/bin/gmake -f CMakeFiles/ cmTC_15004.dir/build.make CMakeFiles/cmTC_15004.dir/build
gmake[1]: Entering directory '/home/pi/gr-freq/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_15004.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -std=gnu11 -o CMakeFiles/cmTC_15004.dir/src.c.o - c /home/pi/gr-freq/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_15004
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_15004.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_15004.dir/src.c.o -o cmTC_15004
/usr/bin/ld: CMakeFiles/cmTC_15004.dir/src.c.o: in function `main':
src.c:(.text+0x40): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x4c): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x58): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text+0x68): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_15004.dir/build.make:106: cmTC_15004] Error 1
gmake[1]: Leaving directory '/home/pi/gr-freq/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_15004/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
   return data;
}
int main(void)
{
   pthread_t thread;
   pthread_create(&thread, NULL, test_func, NULL);
   pthread_detach(thread);
   pthread_cancel(thread);
   pthread_join(thread, NULL);
   pthread_atfork(NULL, NULL, NULL);
   pthread_exit(NULL);
   return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/pi/gr-freq/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_75010/fast && /usr/bin/gmake -f CMakeFiles/ cmTC_75010.dir/build.make CMakeFiles/cmTC_75010.dir/build
gmake[1]: Entering directory '/home/pi/gr-freq/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_75010.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -std=gnu11 -o CMakeFiles/ cmTC_75010.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c
Linking C executable cmTC_75010
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_75010.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_75010.dir/ CheckFunctionExists.c.o -o mTC_75010 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_75010.dir/build.make:106: cmTC_75010] Error 1
gmake[1]: Leaving directory '/home/pi/gr-freq/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_75010/fast] Error 2

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig- email&utm_content=emailclient> Virus-free.www.avg.com <http://www.avg.com/email-signature? utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Reply via email to