Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 23:35:34 -0500 (EST)
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34512: [PATCH] Fix linking errors in deskutils/mrproject
Message-ID:  <200202010435.g114ZYp12637@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

>Number:         34512
>Category:       ports
>Synopsis:       [PATCH] Fix linking errors in deskutils/mrproject
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 31 20:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Joe Marcus Clarke
>Release:        FreeBSD 4.5-RC i386
>Organization:
MarcusCom, Inc.
>Environment:
System: FreeBSD shumai.marcuscom.com 4.5-RC FreeBSD 4.5-RC #0: Fri Jan 25 02:45:22 EST 2002 marcus@shumai.marcuscom.com:/usr/obj/usr/src/sys/SHUMAI i386


	
>Description:
	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.

>How-To-Repeat:
	
>Fix:

Replace files/patch-ltmain.sh with this one.

--- patch-ltmain.sh begins here ---
--- ltmain.sh.orig	Wed Jan 23 04:38:40 2002
+++ ltmain.sh	Thu Jan 31 23:16:55 2002
@@ -1039,6 +1039,7 @@
 
       -module)
 	module=yes
+	build_old_libs=no
 	continue
 	;;
 
@@ -2412,6 +2413,9 @@
 	  *-*-netbsd*)
 	    # Don't link with libc until the a.out ld.so is fixed.
 	    ;;
+	  *-*-freebsd*)
+	    # FreeBSD doesn't need this...
+	    ;;
 	  *)
 	    # Add libc to deplibs on all other systems if necessary.
 	    if test "$build_libtool_need_lc" = "yes"; then
@@ -4179,10 +4183,12 @@
 	fi
 
 	# Install the pseudo-library for information purposes.
+	if /usr/bin/false; then
 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
 	instname="$dir/$name"i
 	$show "$install_prog $instname $destdir/$name"
 	$run eval "$install_prog $instname $destdir/$name" || exit $?
+	fi
 
 	# Maybe install the static library, too.
 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
--- patch-ltmain.sh ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202010435.g114ZYp12637>