From mdharnois@c1030098-a.wtrlo1.ia.home.com  Sat Jul 28 20:20:03 2001
Return-Path: <mdharnois@c1030098-a.wtrlo1.ia.home.com>
Received: from femail42.sdc1.sfba.home.com (femail42.sdc1.sfba.home.com [24.254.60.36])
	by hub.freebsd.org (Postfix) with ESMTP id 6552E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Jul 2001 20:20:03 -0700 (PDT)
	(envelope-from mdharnois@c1030098-a.wtrlo1.ia.home.com)
Received: from c1030098-a.wtrlo1.ia.home.com ([24.6.200.230])
          by femail42.sdc1.sfba.home.com
          (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP
          id <20010729032003.KNHB29017.femail42.sdc1.sfba.home.com@c1030098-a.wtrlo1.ia.home.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 28 Jul 2001 20:20:03 -0700
Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001)
	id A110514A13; Sat, 28 Jul 2001 22:21:35 -0500 (CDT)
Message-Id: <20010729032135.A110514A13@c1030098-a.wtrlo1.ia.home.com>
Date: Sat, 28 Jul 2001 22:21:35 -0500 (CDT)
From: Michael Harnois <mdharnois@home.com>
Reply-To: Michael Harnois <mdharnois@home.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ethereal fails to build in wiretap
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29291
>Category:       ports
>Synopsis:       ethereal fails to build in wiretap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    billf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 28 20:30:01 PDT 2001
>Closed-Date:    Thu Jan 3 19:53:53 PST 2002
>Last-Modified:  Thu Jan 03 20:08:17 PST 2002
>Originator:     Michael Harnois
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD mharnois.workgroup.net 5.0-CURRENT FreeBSD 5.0-CURRENT #14: Sat Jul 28 18:26:48 CDT 2001 mdharnois@mharnois.workgroup.net:/usr/src/sys/i386/compile/MYKERNEL i386


	
>Description:
wiretap/libwiretap.a(toshiba.o): In function `toshiba_check_file_type':
toshiba.o(.text+0x96): undefined reference to `gzgets'
wiretap/libwiretap.a(toshiba.o): In function `parse_toshiba_rec_hdr':
toshiba.o(.text+0x27f): undefined reference to `gzgets'
toshiba.o(.text+0x314): undefined reference to `gzgets'
wiretap/libwiretap.a(toshiba.o): In function `parse_toshiba_hex_dump':
toshiba.o(.text+0x48a): undefined reference to `gzgets'
rm -f .libs/etherealS.o
gmake[2]: *** [ethereal] Error 1
gmake[2]: Leaving directory `/usr/ports/net/ethereal/work/ethereal-0.8.19'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ethereal/work/ethereal-0.8.19'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/net/ethereal.
	
>How-To-Repeat:

make


>Fix:

	


>Release-Note:
>Audit-Trail:

From: Scott Renfro <scott@renfro.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: mdharnois@home.com
Subject: Re: ports/29291: ethereal fails to build in wiretap
Date: Sat, 28 Jul 2001 23:37:35 -0700

 Michael Harnois <mdharnois@home.com> wrote:
 >
 > ethereal fails to build in wiretap
 > ...
 >     wiretap/libwiretap.a(toshiba.o): In function `toshiba_check_file_type':
 >     toshiba.o(.text+0x96): undefined reference to `gzgets'
 >     wiretap/libwiretap.a(toshiba.o): In function `parse_toshiba_rec_hdr':
 >     toshiba.o(.text+0x27f): undefined reference to `gzgets'
 >     toshiba.o(.text+0x314): undefined reference to `gzgets'
 >     wiretap/libwiretap.a(toshiba.o): In function `parse_toshiba_hex_dump':
 >     toshiba.o(.text+0x48a): undefined reference to `gzgets'
 >     rm -f .libs/etherealS.o
 
 Hmm.  So either libz isn't being included in the library list or libz
 doesn't exist or doesn't contain the procedure gzgets on -current.
 
 You didn't include the actual command that produced this output, so what
 is the output of the following commands?  (when executed from
 /usr/ports/net/ethereal)
 
   grep lz work/ethereal-0.8.19/wiretap/Makefile
 
   nm -D /usr/lib/libz.so | grep gzgets
 
 Looking at CVS, gzgets is in libz -- even on current -- so that
 shouldn't be the problem; it seems more likely that configure didn't get
 -lz added to LIBS for some reason.
 
 --Scott
 
 -- 
 Scott Renfro <scott@renfro.org>                          +1 650 862 4206
Responsible-Changed-From-To: freebsd-ports->billf 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Sat Aug 18 01:26:52 PDT 2001 
Responsible-Changed-Why:  
over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29291 

From: Scott Renfro <scott@renfro.org>
To: freebsd-gnats-submit@freebsd.org
Cc: Michael Harnois <mdharnois@home.com>
Subject: Re: ports/29291: ethereal fails to build in wiretap
Date: Sat, 18 Aug 2001 10:17:25 -0700

 Please change state to feedback.
 
 In the absence of feedback to the contrary, this appears to be due to a
 misconfiguration on the originator's system.  These same symptoms have
 been reported to the Ethereal maintainers and their feedback is included
 below (rebuild XFree86 after setting HasZlib YES).
 
 --Scott
 
 On Mon, Aug 06, 2001 at 10:06:42PM -0700, Scott Renfro wrote:
 > Replying to my own message...
 > 
 > This same symptom has been tracked down to a second libz installed by
 > XFree86 in /usr/X11R6/lib.  The XFree86 libz, which shouldn't be
 > installed on systems like FreeBSD that already include libz by default,
 > doesn't include gzgets.
 > 
 > If this is the problem with your installation, the right solution (not
 > that this sounds appealing), seems to be rebuilding XFree86 after
 > editing the "config/cf/{platform}.cf" file to #define HasZlib YES rather
 > than NO.  Then XFree86 will not install its own libz, and this problem
 > shouldn't recur with other software looking for libz.
 > 
 > Alternately, you may be able to edit the Ethereal makefiles and/or use
 > LIBRARY_PATH and LD_LIBRARY_PATH to ensure that /usr/lib/libz.so is
 > preferred to /usr/X11R6/lib/libz.so.
 > 
 > There's a thread with more information starting at:
 > 
 >   http://www.ethereal.com/lists/ethereal-users/200108/msg00032.html
 > 
 > hope this helps,
 > --Scott
 > 
 > On Sun, Jul 29, 2001 at 10:14:32AM -0700, Scott Renfro wrote:
 > > On Sun, Jul 29, 2001 at 08:53:12AM -0500, Michael Harnois wrote:
 > > > 
 > > >     >    grep lz work/ethereal-0.8.19/wiretap/Makefile
 > > >  
 > > > LIBS = -lz  -L/usr/local/lib -lglib12
 > > > 
 > > >     >    nm -D /usr/lib/libz.so | grep gzgets
 > > > 
 > > > 00002184 T gzgets
 > > 
 > > Those look ok.  I did some additional checking and if you were missing
 > > -lz in LIBS, there would be errors about many more undefined references
 > > (e.g., gzdopen, gzread, etc.), so I'm not sure why gzgets isn't found.
 > > 
 > > You should forward your report to ethereal-users@ethereal.com and see if
 > > Guy Harris or others have any ideas.  Please include the actual command
 > > that resulted in the error message along with the error messages in that
 > > note (e.g., cc -DINET6 ...)
 > > 
 > > cheers,
 > > --Scott
 
 -- 
 Scott Renfro <scott@renfro.org>
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Thu Jan 3 19:53:53 PST 2002 
State-Changed-Why:  
i can't reproduce this. can you try with the latest ethereal 
(0.9.0) in the ports tree and tell me if its still a problem 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29291 
>Unformatted:
