From andrew@amy.ugh.net.au  Wed May 11 13:43:25 2005
Return-Path: <andrew@amy.ugh.net.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id E2FEE16A4CE; Wed, 11 May 2005 13:43:25 +0000 (GMT)
Received: from amy.ugh.net.au (paivi.ugh.net.au [82.152.227.101])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 0F75543D2F; Wed, 11 May 2005 13:43:24 +0000 (GMT)
	(envelope-from andrew@amy.ugh.net.au)
Received: from amy.local (localhost [127.0.0.1])
	by amy.local (8.13.3/8.13.1) with ESMTP id j4AHc4o5015813;
	Tue, 10 May 2005 18:38:04 +0100 (BST)
	(envelope-from andrew@amy.local)
Received: (from andrew@localhost)
	by amy.local (8.13.3/8.13.1/Submit) id j4AHc3UU015812;
	Tue, 10 May 2005 18:38:03 +0100 (BST)
	(envelope-from andrew)
Message-Id: <200505101738.j4AHc3UU015812@amy.local>
Date: Tue, 10 May 2005 18:38:03 +0100 (BST)
From: Andrew <andrew@ugh.net.au>
Reply-To: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc: marcus@freebsd.org
Subject: net/ethereal fails to link
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80896
>Category:       ports
>Synopsis:       net/ethereal fails to link
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    marcus
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 11 13:50:02 GMT 2005
>Closed-Date:    Wed May 11 14:43:16 GMT 2005
>Last-Modified:  Thu May 12 01:28:55 GMT 2005
>Originator:     Andrew
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
UgH!
>Environment:
System: FreeBSD amy.local 5.4-STABLE FreeBSD 5.4-STABLE #3: Tue May 10 09:40:01 BST 2005 andrew@amy.local:/usr/obj/usr/src/sys/AMY i386

cvsuped today from cvsup2.uk.

>Description:

The net/ethereal port fails to link.

gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -O2 -pipe -I/usr/local/include -D_REENTRANT -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/lib/include -DINET6 -O2 -pipe -Dfreebsd5 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.6/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -I. -I/usr/local/include -I/usr/include -o .libs/ethereal pcap-util-unix.o capture_stop_conditions.o capture_ui_utils.o cfile.o clopts_common.o conditions.o disabled_protos.o packet-range.o pcap-util.o print.o ps.o ringbuffer.o timestats.o util.o version_info.o alert_box.o capture.o capture_opts.o capture_sync.o capture_loop.o color_filters.o file.o file!
 set.o filters.o g711.o merge.o proto_hier_stats.o summary.o -rpath=/usr/lib:/usr/local/lib .libs/etherealS.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--export-dynamic  -L/usr/local/lib -L/usr/local/lib/lib -L/usr/lib gtk/libui.a wiretap/.libs/libwiretap.so epan/.libs/libethereal.so -lglib-2.0 -liconv -lgmodule-2.0 -lnetsnmp -lm -lkvm -ldevstat -lwrap -lpcap -pthread -L/usr/X11R6/lib -lgtk-x11-2.0 -lgthread-2.0 -ladns -lkrb5 -lasn1 -lroken -lcrypt -lcom_err -lcrypto -lz -lpcre -Wl,--rpath -Wl,/usr/X11R6/lib
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

>How-To-Repeat:

cd /usr/ports/net/ethereal && make

>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->marcus 
Responsible-Changed-By: pav 
Responsible-Changed-When: Wed May 11 14:33:11 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80896 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Wed May 11 14:42:27 GMT 2005 
State-Changed-Why:  
You're using unsupported CFLAGS (-O2).  Note: ethereal links fine for me 
on 5.4 assuming I use the standard CFLAGS. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80896 

From: Andrew <andrew@ugh.net.au>
To: Joe Marcus Clarke <marcus@FreeBSD.org>
Cc: freebsd-ports-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/80896: net/ethereal fails to link
Date: Thu, 12 May 2005 02:04:18 +0100

 On 11/05/2005, at 3:43 PM, Joe Marcus Clarke wrote:
 
 > You're using unsupported CFLAGS (-O2).  Note: ethereal links fine for 
 > me
 > on 5.4 assuming I use the standard CFLAGS.
 
 Just in case anyone else hits the same issue...configure in ethereal 
 was picking up -O2 from net-snmp-config. net-snmp-config is a shell 
 script so you can easily change all -O2 -> -O regardless of how 
 net-snmp was built.
 
 Thanks,
 
 Andrew
 
>Unformatted:
