From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 14:00:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCA851065676 for ; Wed, 17 Mar 2010 14:00:52 +0000 (UTC) (envelope-from antoniok.spb@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5B78FC2E for ; Wed, 17 Mar 2010 14:00:51 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so535202fga.13 for ; Wed, 17 Mar 2010 07:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=Kr/sATGW29iWAaGxWGqysbMWjVNb1322JpmZacSd6Tk=; b=IbxxLKhzBnFVtrXHuj6kF2Duqz9zQDr/bYKd7DoYn9wpd+d+rKIHmkqZ6szLo9lSWO uEgsFbDoXvb+J1JWWU5G0KKI5DYjdZXhtPEcdYrvQOvJ2u7dbFtjsbzc0yIJLBJmPxvY aay9F/Vrd3RKTdmHK8NuCPtYw9a1RnLLUGROY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=RUdtSZAB5RE8PAknbQe12iX8FE5TQptTBUItiOJJtCxXjgovtks+L4h8IjJplCfGKr 1iT/4Sp6V/blRIPmKoGmtknSkSUIVFjejC6uJ3GBlodlKkFjxDWcZGws0GwlNheJzpY+ MDsZ5xIdCtTM9BDN0kO75zgizMUA5fLrIh8/c= MIME-Version: 1.0 Received: by 10.239.132.5 with SMTP id 5mr1199595hbp.137.1268834451142; Wed, 17 Mar 2010 07:00:51 -0700 (PDT) In-Reply-To: <582dc8b5596996422cbd9c4318c3e26d@asterix.area536.com> References: <3f1c29e71003170623p1211c5cai3cbdf02915d07449@mail.gmail.com> <875e0203536a2f06c37fc8a59156ca30@asterix.area536.com> <3f1c29e71003170644l3102351fy31ab598702175642@mail.gmail.com> <582dc8b5596996422cbd9c4318c3e26d@asterix.area536.com> From: =?UTF-8?B?0JDQvdGC0L7QvSDQmtC70LXRgdGB?= Date: Wed, 17 Mar 2010 17:00:31 +0300 Message-ID: <3f1c29e71003170700u2c2aaab9ve34bca18567135d1@mail.gmail.com> To: "Bas v.d. Wiel" Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: gd errors after rebuilding PHP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 14:00:52 -0000 # ls /usr/local/lib/libpng.so.5 /usr/local/lib/libpng.so.5 # ls /usr/local/etc/rc.d/apache22 /usr/local/etc/rc.d/apache22 # env LD_PRELOAD=3D/usr/local/lib/libpng.so.5 /usr/local/etc/rc.d/apache22 status apache22 is running as pid 21297. # env LD_PRELOAD=3D/usr/local/lib/libpng.so.5 /usr/local/etc/rc.d/apache22 stop Stopping apache22. Waiting for PIDS: 21297. # env LD_PRELOAD=3D/usr/local/lib/libpng.so.5 /usr/local/etc/rc.d/apache22 start Performing sanity check on apache22 configuration: Syntax OK Starting apache22. # But PHP errors are still the same. Should I report this into PR? 2010/3/17 Bas v.d. Wiel > > On Wed, 17 Mar 2010 16:44:43 +0300, =E1=CE=D4=CF=CE =EB=CC=C5=D3=D3 > wrote: > > It doesn't helps me. > > > > Then I try this: > > > > # env LD_PRELOAD=3D/usr/local/lib/libpng.so.5 |grep png > > LD_PRELOAD=3D/usr/local/lib/libpng.so.5 > > # env |grep png > > # > > > > Is it OK that env doesn't save its status (LD_PRELOAD)? > > > > > You should put the whole command on a single line (e-mail cuts off the > lines here): > > #env LD_PRELOAD=3D/usr/local/lib/libpng.so.5 /usr/local/etc/rc.d/apache22 > restart > > In essence you're just restarting Apache in the usual BSD way, but with a= n > ad-hoc added environment variable. The env command doesn't save its > changes, but that is correct behaviour. I haven't tested this with a 'rea= l' > environment variable yet because I decided to roll back the upgrade to wa= it > for the issue to be solved. > > Bas > > --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E1=CE=D4=CF=CE =EB=CC=C5=D3=D3, http://kless.spb.ru/