Bug 34512

Summary: [PATCH] Fix linking errors in deskutils/mrproject
Product: Ports & Packages Reporter: Joe Marcus Clarke <marcus>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-ltmain.sh none

Description Joe Marcus Clarke 2002-02-01 04:40:01 UTC
	MrProject will fail to build on -stable machines with the following error:

cc -O -pipe -I/usr/X11R6/include -Wall -Wunused -o mrproject-engine main.o 
engine.o project.o task-model.o task-manager.o resource-manager.o 
allocation-manager.o -Wl,-E -Wl,-E -Wl,-E  -L/usr/X11R6/lib -L/usr/local/lib 
-lxml -lbonobo -loaf -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lXpm -ljpeg 
-lgnomeui -lart_lgpl -lgdk_imlib -ltiff -lungif -lpng -lz -lSM -lICE -lgtk12 
-lgdk12 -lgmodule12 -lxpg4 -lXext -lX11 -lgnome -lgnomesupport -lintl -lesd 
-laudiofile -lm -lglib12 -lgnomevfs -lgmodule12 -lgthread12 -lglib12 
../project-engine/backends/.libs/libmrproject-file-backend.al 
../util/.libs/libmrproject-util.al ../util/.libs/libmrproject-corba-util.al 
../libmrproject/.libs/libmrproject-interfaces.al -lgal -lgnomeprint 
-lglade-gnome -lglade -lxml -lXpm -ljpeg -lgnomeui -lart_lgpl -lgdk_imlib 
-ltiff -lungif -lpng -lz -lSM -lICE -lgnome -lgnomesupport -lesd -laudiofile 
-lgdk_pixbuf -lgtk12 -lgdk12 -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11 
-lm -lgnomecanvaspixbuf -lgiconv
/usr/local/lib/libgthread12.so: undefined reference to `pthread_getspecific'
/usr/local/lib/libgthread12.so: undefined reference to `pthread_key_create'
/usr/local/lib/libgthread12.so: undefined reference to `pthread_mutex_trylock'
/usr/local/lib/libgthread12.so: undefined reference to `pthread_cond_timedwait'
/usr/local/lib/libgthread12.so: undefined reference to `pthread_setspecific'
gmake[3]: *** [mrproject-engine] Error 1

It worked for me in intial testing, but fails now.  It looks like -pthread
isn't being passed to the linker by libtool.  The attached patch corrects
the problem.

Fix: Replace files/patch-ltmain.sh with this one.
Comment 1 Ade Lovett freebsd_committer freebsd_triage 2002-03-13 00:13:50 UTC
State Changed
From-To: open->closed

This patch appears to have already been applied in a slightly different form. 


Comment 2 Ade Lovett freebsd_committer freebsd_triage 2002-03-13 00:13:50 UTC
Responsible Changed
From-To: freebsd-ports->ade