[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.

http://bugzilla.ximian.com/show_bug.cgi?id=74632

--- 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   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Build
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: flashdict@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FreeBSD 5.4 links multiply in trunk svn
+
+Hi.  
+
+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:
+
+http://forge.novell.com/modules/xfmod/maillist/archbrowse.php/bsd-sharp-list/2005-April/000225.html?id=1498&prjname=bsd-sharp&mlname=list
+
+
+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
+freebsd5|6*.  
+
+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.