From andy@CRWdog.demon.co.uk  Sat May 18 10:58:24 2002
Return-Path: <andy@CRWdog.demon.co.uk>
Received: from CRWdog.demon.co.uk (p69-199.acedsl.com [66.114.69.199])
	by hub.freebsd.org (Postfix) with ESMTP
	id 3BBB437B409; Sat, 18 May 2002 10:58:23 -0700 (PDT)
Received: by CRWdog.demon.co.uk (Postfix, from userid 1001)
	id 4D5103E5B; Sat, 18 May 2002 03:43:09 -0400 (EDT)
Message-Id: <20020518074309.4D5103E5B@CRWdog.demon.co.uk>
Date: Sat, 18 May 2002 03:43:09 -0400 (EDT)
From: Andy Sparrow <spadger@best.com>
Reply-To: Andy Sparrow <spadger@best.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: billf@FreeBSD.org
Subject: Makefile typo? Ethereal build fails with missing libsnmp.so.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38249
>Category:       ports
>Synopsis:       Makefile typo? Ethereal build fails with missing libsnmp.so.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 18 11:00:02 PDT 2002
>Closed-Date:    Sun May 19 21:40:04 PDT 2002
>Last-Modified:  Sun May 19 21:40:04 PDT 2002
>Originator:     Andy Sparrow
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
Not Really
>Environment:

System: FreeBSD omni.geek4food.org 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #80: Wed May 15 21:29:02 EDT 2002 root@omni.geek4food.org:/usr/src/sys/compile/tureg i386

>Description:

Just cleaned out my system and rebuilt a whole bunch of stuff.

Thus, a lot of it was being built directly as a result of make dependancies.

I noted that ethereal failed to build, because it was lacking
'libsnmp.so.4', despite it having done a make in <PORTSDIR>/net/net-snmp,
as specified in the LIB_DEPENDS.

On looking at net-snmp/pkg-plist , it became clear that it doesn't
build or install any such library, and that the LIB_DEPENDS should
probably be for net/net-snmp4 instead.

Fixing this manually allows ethereal to complile/link/install. Also:

andy@omni[155]-> pkg_info -W /usr/local/lib/libsnmp.so.4
/usr/local/lib/libsnmp.so.4 was installed by package ucd-snmp-4.2.5

>How-To-Repeat:

Start with 4.5-RC2 and XFree86-4 port from that epoch, cvsup to May
16th, trash most of your ports trying to get around the XFree
lib/install error already reported by several people, delete vast
swathes of stuff on about the 5th iteration (some with rm, some
with pkg_delete and some with portupgrade) and start re-building.

With a lot of ports thus gone, you can discover some interesting
things.

>Fix:

Works for me:

--- Makefile.orig       Sat May 18 03:20:10 2002
+++ Makefile    Sat May 18 03:27:07 2002
@@ -18,7 +18,7 @@
 MAINTAINER=    billf@FreeBSD.org
 
 .if !defined(WITHOUT_SNMP)
-LIB_DEPENDS=   snmp.4:${PORTSDIR}/net/net-snmp
+LIB_DEPENDS=   snmp.4:${PORTSDIR}/net/net-snmp4
 .endif
 
 .if !defined(WITHOUT_X11)



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Sun May 19 21:39:36 PDT 2002 
State-Changed-Why:  
I fixed dependency.  Please re-cvsup and try again. 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38249 
>Unformatted:
