Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2005 19:39:14 +0700
From:      Owen Jeremiah <fowlplay77@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Problem installing asterisk
Message-ID:  <25b28b630510210539h3e639ecdn998c22ffdfbaa121@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 <http://10.9.4.1>;
}

if (upper < 65536) // 10.9.3.3 <http://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 <http://10.9.4.1>;
+
+ // clamp value to upper limit
+ if (len > upper)
+ len =3D upper;
+
+ return len;
}

if (upper < 65536) // 10.9.3.3 <http://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 <http://10.9.3.6>;

- if (SingleBitDecode() =3D=3D 0)
- return MultiBitDecode(14, len) ? 0 : -1; // 10.9.3.7 <http://10.9.3.7>;

- return -1; // 10.9.3.8 <http://10.9.3.8>; unsupported
}


--- 4992,5011 ----
if (IsAtEnd())
return -1;

+ if (SingleBitDecode() =3D=3D 0) {
+ if (!MultiBitDecode(7, len)) // 10.9.3.6 <http://10.9.3.6>;
+ return -1; // 10.9.3.8 <http://10.9.3.8>; unsupported
+ }
+ else if (SingleBitDecode() =3D=3D 0) {
+ if (!MultiBitDecode(14, len)) // 10.9.3.7 <http://10.9.3.7>;
+ return -1; // 10.9.3.8 <http://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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25b28b630510210539h3e639ecdn998c22ffdfbaa121>