Bug 101458 - libgthread-2.0 in glib-2 needs >pthread_getschedparam but can't find it
Summary: libgthread-2.0 in glib-2 needs >pthread_getschedparam but can't find it
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 07:50 UTC by Andrew Reilly
Modified: 2006-12-20 21:24 UTC (History)
0 users

See Also:


Attachments
vim.diff (627 bytes, patch)
2006-08-06 18:43 UTC, Jeremy Messenger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Reilly 2006-08-06 07:50:13 UTC
	
	gvim has been working nicely for a while (in GTK2
	guise), but just now I tried mousing: File:open and
	clicking on the "open file" icon, and both caused an
	immediate crash, with the following message to stdout:
	/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam"

Fix: 

Don't know.  This is the first time that I saw a glib2
	problem with threads like this.  I don't even know which
	of the three thread library options it is using (the
	default.)

	I have rebuilt kernel+world since doing the portupgrade,
	which I guess could have bumped a system library version
	somehow.  I'll do another cvsup/portupgrade -frR glib-2
	(which will probably rebuild everything!) and see what
	happens.
How-To-Repeat: 	Build ports/editors/vim from 2006/08/01 00:43:51, with
	make flag: -DWITH_GTK2.  See that it works nicely until
	you open a file with the GUI.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-06 11:21:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2006-08-06 18:38:18 UTC
Responsible Changed
From-To: gnome->obrien

It is VIM bug, it needs to add ${PTHREAD_LIBS}, redirect this PR to obrien.
Comment 3 Jeremy Messenger 2006-08-06 18:43:27 UTC
Try this patch in attach that should fix VIM with GTK2.

Cheers,
Mezz


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia@FreeBSD.org
Comment 4 Andrew Reilly 2006-08-07 11:04:30 UTC
Hi Jeremy,

On Sun, 06 Aug 2006 12:43:27 -0500
"Jeremy Messenger" <mezz7@cox.net> wrote:

> Try this patch in attach that should fix VIM with GTK2.

Thanks for that.  Seems to have worked nicely.

Cheers,

-- 
Andrew
Comment 5 Jeremy Messenger freebsd_committer freebsd_triage 2006-12-20 21:23:39 UTC
State Changed
From-To: open->closed

It has been fixed, so make sure you have cairo-1.2.6_1 or above. ahze has 
added -pthread in cairo's pc file that should fix several of ports.