From dom@happygiraffe.net  Sun May  4 15:01:04 2003
Return-Path: <dom@happygiraffe.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DA53637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 May 2003 15:01:04 -0700 (PDT)
Received: from happygiraffe.net (happygiraffe.net [81.6.215.59])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 45C5943FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 May 2003 15:01:04 -0700 (PDT)
	(envelope-from dom@happygiraffe.net)
Received: by happygiraffe.net (Postfix, from userid 1001)
	id 54BB95C2E; Sun,  4 May 2003 23:01:02 +0100 (BST)
Message-Id: <20030504220102.54BB95C2E@happygiraffe.net>
Date: Sun,  4 May 2003 23:01:02 +0100 (BST)
From: Dominic Mitchell <dom@happygiraffe.net>
Reply-To: Dominic Mitchell <dom@happygiraffe.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/rc.d/virecover in wrong order
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51767
>Category:       bin
>Synopsis:       /etc/rc.d/virecover in wrong order
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mtm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 04 15:10:00 PDT 2003
>Closed-Date:    Mon May 19 11:14:31 PDT 2003
>Last-Modified:  Mon May 19 11:14:31 PDT 2003
>Originator:     Dominic Mitchell
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ppe.happygiraffe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Sun May 4 13:54:29 BST 2003 root@ppe.happygiraffe.net:/usr/obj/usr/src/sys/PPE i386


>Description:
	I've been running with rcNG for a while, but I've only just
noticed this problem.  When I rebooted last, I got this message:

Recovering vi editor sessions:/usr/libexec/ld-elf.so.1: Shared object "libsasl2.so.2" not found
.

After a little bit of nosing around, I realised that it's because I
have postfix installed as my MTA, linked against the SASL library.  The
thing that came immediately after that error on my boot sequence was:

ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout

The virecover script was trying to send mail, but failing because
postfix couldn't find its libraries yet.

>How-To-Repeat:

* Set up an alternative MTA to the one in the base system.  Ensure that
  it is dynamically linked against something in /usr/local/lib (sasl or
  ldap should do).

* Start editing a file using /usr/bin/vi.

* Kill the vi process from another terminal.

* Reboot the system.

* Watch the errors...

>Fix:

I guess that the virecover script needs to have ldconfig listed as a
depdendency.  I'm not sure whether any other scripts might need this as
well...
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mtm 
State-Changed-When: Sun May 4 18:15:33 PDT 2003 
State-Changed-Why:  
This should already be fixed in rc.d/ldconfig 1.5. Do you have it? 
If the problem persists can you send me the output of 
# rcorder -k FreeBSD -s nostart /etc/rc.d/* 



Responsible-Changed-From-To: freebsd-bugs->mtm 
Responsible-Changed-By: mtm 
Responsible-Changed-When: Sun May 4 18:15:33 PDT 2003 
Responsible-Changed-Why:  
This should already be fixed in rc.d/ldconfig 1.5. Do you have it? 
If the problem persists can you send me the output of 
# rcorder -k FreeBSD -s nostart /etc/rc.d/* 


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

From: Mike Makonnen <mtm@identd.net>
To: dom@happygiraffe.net (Dominic Mitchell)
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/51767: /etc/rc.d/virecover in wrong order
Date: Mon, 5 May 2003 05:47:40 -0400

 On Mon, 5 May 2003 10:27:01 +0100
 dom@happygiraffe.net (Dominic Mitchell) wrote:
 
 > 
 > I do have it, I'm afraid:
 > 
 
 Ok. This should fix it.
 
 
 Index: etc/rc.d/virecover
 ===================================================================
 RCS file: /home/ncvs/src/etc/rc.d/virecover,v
 retrieving revision 1.4
 diff -u -r1.4 virecover
 --- etc/rc.d/virecover	21 Feb 2003 09:37:20 -0000	1.4
 +++ etc/rc.d/virecover	5 May 2003 09:43:13 -0000
 @@ -5,7 +5,7 @@
  #
  
  # PROVIDE: virecover
 -# REQUIRE: mountcritremote
 +# REQUIRE: mountcritremote ldconfig
  # BEFORE:  DAEMON
  # KEYWORD: FreeBSD NetBSD
  #
 
 
 Cheers
 -- 
 Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
 mtm@identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
 mtm@FreeBSD.Org| FreeBSD - The Power To Serve

From: dom@happygiraffe.net (Dominic Mitchell)
To: Mike Makonnen <mtm@identd.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/51767: /etc/rc.d/virecover in wrong order
Date: Mon, 5 May 2003 18:02:03 +0100

 On Mon, May 05, 2003 at 05:47:40AM -0400, Mike Makonnen wrote:
 > On Mon, 5 May 2003 10:27:01 +0100
 > dom@happygiraffe.net (Dominic Mitchell) wrote:
 > 
 > > 
 > > I do have it, I'm afraid:
 > > 
 > 
 > Ok. This should fix it.
 
 Many thanks.  I shall test it on my next reboot!
 
 -Dom
State-Changed-From-To: feedback->closed 
State-Changed-By: mtm 
State-Changed-When: Mon May 19 11:13:27 PDT 2003 
State-Changed-Why:  
This is fixed now. 

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