Author Topic: hamlibs 1.2.8 Or 1.2.9 Same Error.  (Read 916 times)

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
hamlibs 1.2.8 Or 1.2.9 Same Error.
« on: August 31, 2009, 07:58:11 PM »
Anyone have any experience with pthread_create?  I do have libpthread-stubs installed.
Quote
ps.o sprintflst.o -Wl,--export-dynamic  ../src/.libs/libhamlib.so ../lib/.libs/libmisc.a -ldl -lm
rigctld.o: In function `main':
rigctld.c:(.text+0xb25): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[1]: *** [rigctld] Error 1
make[1]: Leaving directory `/home/joe/src/rpm/BUILD/hamlib-1.2.8/tests'

It's in the tests, so it seems it builds but fails a test.  I found it in rigctld.c and in rigctld.o but haven't overcome the problem.  I could disable the test, but that would probably be counterproductive.

Oh wow, I think I have just walked through the door to the dependency nightmare I've always heard about, but never truly experienced, until today.  No, pthread is not a dependency, but thinking if I update that, I might overcome the error.  What a maze that place is.

Jahshaka is on the back burner for now.  Weekends only, due to other apparent unresolvable issues related to the deps.
« Last Edit: August 31, 2009, 09:00:07 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: hamlibs 1.2.8 Or 1.2.9 Same Error.
« Reply #1 on: August 31, 2009, 09:34:14 PM »
Quote
undefined reference to `pthread_create'

Do you have a reference to pthread_create in your spec file?

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: hamlibs 1.2.8 Or 1.2.9 Same Error.
« Reply #2 on: August 31, 2009, 09:35:39 PM »
Nope, it's in two of the test files in the source:  rigctld.c and in rigctld.o

And I have googled it, and researched it, extensively, for about 4 hours now, without any good results that work.
« Last Edit: August 31, 2009, 09:37:26 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System