Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2003 02:29:05 -0500
From:      Jeremy Messenger <mezz7@cox.net>
To:        "Vladimir B. Grebenschikov" <vova@sw.ru>
Cc:        gnome <freebsd-gnome@FreeBSD.org>
Subject:   Re: Gnome-2.4 (with marcus repository): Weather applet crashes on startup
Message-ID:  <oprv1oervp8ckrg5@smtp.central.cox.net>
In-Reply-To: <1064473006.836.43.camel@localhost>
References:  <1064473006.836.43.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
------------NuONmnX6jxhvDpyLDgMeuy
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: 8bit

On Thu, 25 Sep 2003 10:56:47 +0400, Vladimir B. Grebenschikov <vova@sw.ru> 
wrote:

>
> Hi
>
> Weather applet crashes on startup:
> (Segmentation fault)
>
<snip>

I get the same crash and I have a solution, good thing that I remember.. 
:-)

Here's an attach of patch-ltmain.sh and put it in the 
x11/gnomeapplets2/files/, then rebuild and reinstall it. I just tested it 
and it works fine.

Cheers,
Mezz


-- 
bsdforums.org 's moderator, mezz.
------------NuONmnX6jxhvDpyLDgMeuy
Content-Disposition: attachment; filename=patch-ltmain.sh
Content-Type: text/plain; name=patch-ltmain.sh
Content-Transfer-Encoding: 8bit

--- ltmain.sh.orig	Thu Sep 25 02:10:43 2003
+++ ltmain.sh	Thu Sep 25 02:16:02 2003
@@ -1277,7 +1277,7 @@
 	  esac
 	elif test "X$arg" = "X-lc_r"; then
 	 case $host in
-	 *-*-openbsd* | *-*-freebsd*)
+	 *-*-openbsd* | *-*-freebsd4*)
 	   # Do not include libc_r directly, use -pthread flag.
 	   continue
 	   ;;
@@ -1287,8 +1287,16 @@
 	continue
 	;;
 
+      -pthread)
+	compile_command="$compile_command -pthread"
+	finalize_command="$finalize_command -pthread"
+	compiler_flags="$compiler_flags -pthread"
+	continue
+	;;
+
       -module)
 	module=yes
+	build_old_libs=no
 	continue
 	;;
 
@@ -3114,7 +3122,10 @@
 	    ;;
 	  *-*-openbsd* | *-*-freebsd*)
 	    # Do not include libc due to us having libc/libc_r.
-	    test "X$arg" = "X-lc" && continue
+	    #test "X$arg" = "X-lc" && continue
+	    ;;
+	  *-*-freebsd*)
+	    # FreeBSD doesn't need this...
 	    ;;
  	  *)
 	    # Add libc to deplibs on all other systems if necessary.
@@ -5425,10 +5436,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"

------------NuONmnX6jxhvDpyLDgMeuy--



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