From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 13:04:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 986C916A41F for ; Fri, 21 Oct 2005 13:04:48 +0000 (GMT) (envelope-from fowlplay77@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31F2043D68 for ; Fri, 21 Oct 2005 13:04:43 +0000 (GMT) (envelope-from fowlplay77@gmail.com) Received: by qproxy.gmail.com with SMTP id p35so539096qbb for ; Fri, 21 Oct 2005 06:04:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=C1ErOnXi+Lscvek/lGc2w5f3NwXGLXu43JBcMsw6FwfVG6pf78U7pzflZRjaCiSJdNd6srG8ODbCLTK/G5x4orJ3pGyx/jJLbBafrEAMLqVgNLfB5mbHWZiy4PGszIaSZqBps2oUkgbHfoa/7nAoiBno1fI3SLVbL13ibn57KU4= Received: by 10.65.148.15 with SMTP id a15mr1946286qbo; Fri, 21 Oct 2005 05:39:14 -0700 (PDT) Received: by 10.65.81.18 with HTTP; Fri, 21 Oct 2005 05:39:14 -0700 (PDT) Message-ID: <25b28b630510210539h3e639ecdn998c22ffdfbaa121@mail.gmail.com> Date: Fri, 21 Oct 2005 19:39:14 +0700 From: Owen Jeremiah To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problem installing asterisk 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: Fri, 21 Oct 2005 13:04:48 -0000 I'm a newbie at FreeBSD, been using MS products all my life. Being an enlighten one (:P), trying to learn how to use FreeBSD. Got this problem when trying to install asterisk from ports: =3D=3D=3D> asterisk-1.0.9_2 depends on executable: mpg123 - found =3D=3D=3D> asterisk-1.0.9_2 depends on file: /nonexistent - not found =3D=3D=3D> Verifying build for /nonexistent in /usr/ports/devel/pwlib =3D=3D=3D> Vulnerability check disabled, database not found =3D=3D=3D> Extracting for pwlib-1.5.2,1 =3D> Checksum OK for pwlib_1.5.2.tar.gz. =3D=3D=3D> Patching for pwlib-1.5.2,1 =3D=3D=3D> Applying FreeBSD patches for pwlib-1.5.2,1 3 out of 3 hunks failed--saving rejects to src/ptclib/asner.cxx.rej =3D> Patch patch-src::ptclib::asner.cxx failed to apply cleanly. =3D> Patch(es) patch-configurein patch-make-common.mak patch-makefile patch-src-ptclib-ansper.cxx applied cleanly. *** Error code 1 Stop in /usr/ports/devel/pwlib. *** Error code 1 Stop in /usr/ports/net/asterisk. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Doing cat asner.cxx.rej returns as follow: *************** *** 4926,4931 **** return -1; value +=3D lower; return 0; } --- 4926,4936 ---- return -1; value +=3D lower; + + // clamp value to upper limit + if (value > upper) + value =3D upper; + return 0; } *************** *** 4970,4976 **** unsigned base; if (!MultiBitDecode(CountBits(upper - lower + 1), base)) return -1; - return lower + base; // 10.9.4.1 } if (upper < 65536) // 10.9.3.3 --- 4975,4987 ---- unsigned base; if (!MultiBitDecode(CountBits(upper - lower + 1), base)) return -1; + len =3D lower + base; // 10.9.4.1 + + // clamp value to upper limit + if (len > upper) + len =3D upper; + + return len; } if (upper < 65536) // 10.9.3.3 *************** *** 4981,4993 **** if (IsAtEnd()) return -1; - if (SingleBitDecode() =3D=3D 0) - return MultiBitDecode(7, len) ? 0 : -1; // 10.9.3.6 - if (SingleBitDecode() =3D=3D 0) - return MultiBitDecode(14, len) ? 0 : -1; // 10.9.3.7 - return -1; // 10.9.3.8 unsupported } --- 4992,5011 ---- if (IsAtEnd()) return -1; + if (SingleBitDecode() =3D=3D 0) { + if (!MultiBitDecode(7, len)) // 10.9.3.6 + return -1; // 10.9.3.8 unsupported + } + else if (SingleBitDecode() =3D=3D 0) { + if (!MultiBitDecode(14, len)) // 10.9.3.7 + return -1; // 10.9.3.8 unsupported + } + // clamp value to upper limit + if (len > upper) + len =3D upper; + return 0; } Anybody can tell me how to resolve this problem? Running on FreeBSD 5.4-stable. -- Yours sincerely, Owen Jeremiah