[Mono-bugs] [Bug 74632][Maj] New - FreeBSD 5.4 links multiply in trunk svn

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 16 Apr 2005 08:09:42 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by flashdict@gmail.com.


--- shadow/74632	2005-04-16 08:09:42.000000000 -0400
+++ shadow/74632.tmp.22525	2005-04-16 08:09:42.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 74632
+Product: Mono Tasks
+Version: 0%
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Build
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: flashdict@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: FreeBSD 5.4 links multiply in trunk svn
+Well, we finally have a FreeBSD tester over on the bsd# mailing list who
+can use Svn, and he has run a successful build on 5.4, a critical test
+which I was unable to perform, as I run 6.0 here.  Sigaltstack works, and
+all of the tests pass.  See:
+Unfortunately, a small problem has turned up with stock FreeBSD.  The mono
+executable is being linked against two pthread libraries, libpthread and
+libthr, in spite of my attempts to link only against libthr.  This is due
+to the pkg-config --libs gthread-2.0 test which is run in configure, and
+which returns -lpthread -pthread.
+Other discussion on the list have convinced me that the FreeBSD world is
+not ready at this time (there are some politics involved) to link
+unconditionally against libthr, instead of libpthread.  Feh.  Therefore, I
+will attach a patch to this bug to revert back to -lpthread only for
+With the new sigaltstack enabled by default for freebsd, either library
+works ok, but due to the pkg-config test, both libraries are currently
+being linked which causes crashes.  Rather than hack around pkg-config,
+those who wish to use libthr can use the FreeBSD libmap.conf utility, to
+remap the library dynamically.
+Watch for patch soon, and thanks.