From owner-freebsd-ports@FreeBSD.ORG Wed May 11 23:58:39 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CD8D16A507; Wed, 11 May 2005 23:58:39 +0000 (GMT) Received: from kfs.ru (kfs.kfs.ru [213.132.78.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id D112043D6E; Wed, 11 May 2005 23:58:37 +0000 (GMT) (envelope-from bsam@kfs.ru) Received: from bsam by kfs.ru with local (Exim 4.50 (FreeBSD)) id 1DW163-000HEl-SZ; Thu, 12 May 2005 03:58:35 +0400 To: freebsd-ports@FreeBSD.org From: Boris Samorodov Date: 12 May 2005 03:58:35 +0400 Message-ID: <88615908@serv3.int.kfs.ru> Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: "B.Samorodow" cc: marcus@FreeBSD.org Subject: [patch] ethereal-0.10.11: undefined reference to `.LC771' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 23:58:39 -0000 --=-=-= Hi! The system: ----- $ uname -a FreeBSD serv3.int.kfs.ru 5.4-STABLE FreeBSD 5.4-STABLE #1: Mon May 2 12:33:58 MSD 2005 pika@serv3.int.kfs.ru:/usr/obj/usr/src/sys/SERV1 i386 $ gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 ----- $ cd /usr/ports/net/ethereal $ make WITHOUT_IPV6=YES WITHOUT_SNMP=YES [skip] /bin/sh /usr/local/bin/libtool15 --mode=link --tag=CC cc -D_U_="__attribute__(> thereal.la -lcrypto "-dlopen" self "-dlopen" plugins/acn/> mkdir .libs rm -f .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT creating .libs/etherealS.c (cd .libs && cc -c -fno-builtin "etherealS.c") rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT cc "-D_U_=__attribute__((unused))" -Wall -W -O2 -I/usr/local/include -D_REENTRA> lib -lgtk-x11-2.0 -lgthread-2.0 -ladns -lkrb5 -lasn1 -lroken -lcrypt -lcom_err > epan/.libs/libethereal.so: undefined reference to `.LC771' epan/.libs/libethereal.so: undefined reference to `.LC770' epan/.libs/libethereal.so: undefined reference to `.LC772' *** Error code 1 Stop in /usr/ports/net/ethereal/work/ethereal-0.10.11. *** Error code 1 [skip] Googling shows an error in GCC: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01011.html I found a patch at ethereal ML: http://www.ethereal.com/lists/ethereal-dev/200505/msg00069.html The patch for FreeBSD port is attached. After patching I managed to build and install ethereal. WBR -- bsam --=-=-= Content-Disposition: attachment; filename=eth Content-Description: ethereal-0.10.11.patch diff -ruN ethereal.orig/files/patch-packet-diameter.c ethereal/files/patch-packet-diameter.c --- ethereal.orig/files/patch-packet-diameter.c Thu Jan 1 03:00:00 1970 +++ ethereal/files/patch-packet-diameter.c Thu May 12 03:30:32 2005 @@ -0,0 +1,19 @@ +--- epan/dissectors/packet-diameter.c.orig Thu May 12 03:07:06 2005 ++++ epan/dissectors/packet-diameter.c Thu May 12 02:54:14 2005 +@@ -2022,13 +2022,13 @@ + { "Flags", "diameter.flags", FT_UINT8, BASE_HEX, NULL, 0x0, + "", HFILL }}, + { &hf_diameter_flags_request, +- { "Request", "diameter.flags.request", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_R, ++ { "Request ", "diameter.flags.request", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_R, + "", HFILL }}, + { &hf_diameter_flags_proxyable, +- { "Proxyable", "diameter.flags.proxyable", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_P, ++ { "Proxyable ", "diameter.flags.proxyable", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_P, + "", HFILL }}, + { &hf_diameter_flags_error, +- { "Error","diameter.flags.error", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_E, ++ { "Error ","diameter.flags.error", FT_BOOLEAN, 8, TFS(&flags_set_truth), DIAM_FLAGS_E, + "", HFILL }}, + { &hf_diameter_flags_T, + { "T(Potentially re-transmitted message)","diameter.flags.T", FT_BOOLEAN, 8, TFS(&flags_set_truth),DIAM_FLAGS_T, --=-=-=--