bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #13413] pthread link failure on freebsd 5.3


From: David Ayers
Subject: [bug #13413] pthread link failure on freebsd 5.3
Date: Tue, 12 Jul 2005 11:11:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1

Follow-up Comment #9, bug #13413 (project gnustep):

It is actually unclear to me why -base should try to work with pthreads
directly.  I would expect it to strictly work with the objc_thread functions. 
I believe the reason why it happens to work most of the time is because objc
is commonly configured to use pthreads.    But maybe we need to work around
some issues...

But the issue seems to lay in the fact that on FreeBSD the prefered way that
our configure script wants to link in the pthread library is -pthread (instead
of -lpthread or lcpthread which are only fallbacks in configure.ac).  So
-make's config.make contains:
  objc_threaded:=-pthread
which is added to AUXILIARY_OBJC_LIBS but this is later filtered through
Intstance/<projecttype>.make:

LIBRARIES_DEPEND_UPON += $(filter-out -l$(LIBRARY_NAME_WITHOUT_LIB), \
... $(AUXILIARY_OBJC_LIBS) ...

OK, so much for the linking... I'll leave it up to the -make maintainers and
maybe some FreeBSD user feedback about the merits of using -pthread vs.
-lpthread and whether we need special handling for -pthread or whether we need
to fix our configure script.

I'll try to look at the runtime issue now...


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13413>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]