From owner-freebsd-questions@FreeBSD.ORG Sun Oct 16 08:05:47 2011 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 3CD00106566B for ; Sun, 16 Oct 2011 08:05:47 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id C27938FC16 for ; Sun, 16 Oct 2011 08:05:46 +0000 (UTC) Received: by eyd10 with SMTP id 10so2750728eyd.13 for ; Sun, 16 Oct 2011 01:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ySlqRyL9RJBXt2Yw07DFJlz5XGFK6s4PXA7dedFYhb0=; b=OFdRcZLmf04uhH9euGMGbO9C7vgSNh3l0gxY+lQ++mOia01hQ5X6Fb8iKVy8Oa33qE FsgUyXmDe3yuwvoiUi4gvzea6Qm3TV1P0IpErIbFc1yTg483MwTI+WJivIamB1u/P7ri 1+wGa/sNIzD1dYYRQubEWPPCF0KVeDo/vOvhI= Received: by 10.213.15.16 with SMTP id i16mr615168eba.30.1318752345629; Sun, 16 Oct 2011 01:05:45 -0700 (PDT) Received: from [192.168.1.13] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id o4sm18703500eeb.0.2011.10.16.01.05.44 (version=SSLv3 cipher=OTHER); Sun, 16 Oct 2011 01:05:44 -0700 (PDT) Message-ID: <4E9A9054.80700@gmail.com> Date: Sun, 16 Oct 2011 10:05:40 +0200 From: johan Hendriks User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Drew Tomlinson , freebsd-questions@freebsd.org References: <4E9A4AF4.7090608@mykitchentable.net> In-Reply-To: <4E9A4AF4.7090608@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: How To Fix "Use of assignment to $[ is deprecated" 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: Sun, 16 Oct 2011 08:05:47 -0000 Op 16-10-11 05:09, Drew Tomlinson schreef: > Somehow while trying to upgrade my ports, I got things out of whack. > The final straw was that perl got upgraded from 5.8.9 to 5.12.4. I've > read the notes in UPDATING but they are not helping my situation. > Finally, I just decided that a "portupgrade -af" would be in my best > interest. However now portupgrade complains that "Makefile possibly > broken" and then give this more relevant error: > > Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. > > This seems to be the case for just about any port I try and fix. I > think this file is part of apache22 so I attempted to rebuild it. It > compiles fine but fails on the install portion with this output: > > ---> Installing the new version via the port > ===> Installing for apache-2.2.21 > ===> apache-2.2.21 depends on file: /usr/local/bin/perl5.12.4 - found > ===> apache-2.2.21 depends on shared library: expat.6 - found > ===> apache-2.2.21 depends on shared library: apr-1 - found > ===> apache-2.2.21 depends on shared library: pcre.0 - found > ===> apache-2.2.21 depends on shared library: iconv.3 - found > ===> Generating temporary packing list > Making install in srclib > Making install in os > Making install in unix > Making install in server > Making install in mpm > Making install in prefork > find: /usr/local/include/apr-1/apr.h: No such file or directory > ... > > And then includes "No such file or directory" for 2-3 screens of files. > > How can I fix my system? > > Thanks, > > Drew > I have had this on some systems also. Deinstall apache22 and your apr program. pkg_delete apache22 and pkg_delete apr-your-version. Then install apache22 again. cd /usr/local/www/apache22 make install clean It should install your apache22 and the corensponding and working apr version. regards Johan Hendriks