Problem installing asterisk

Owen Jeremiah fowlplay77 at gmail.com
Fri Oct 21 06:04:48 PDT 2005


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:

===> asterisk-1.0.9_2 depends on executable: mpg123 - found
===> asterisk-1.0.9_2 depends on file: /nonexistent - not found
===> Verifying build for /nonexistent in /usr/ports/devel/pwlib
===> Vulnerability check disabled, database not found
===> Extracting for pwlib-1.5.2,1
=> Checksum OK for pwlib_1.5.2.tar.gz.
===> Patching for pwlib-1.5.2,1
===> Applying FreeBSD patches for pwlib-1.5.2,1
3 out of 3 hunks failed--saving rejects to src/ptclib/asner.cxx.rej
=> Patch patch-src::ptclib::asner.cxx failed to apply cleanly.
=> 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.


===========================================

Doing cat asner.cxx.rej returns as follow:

***************
*** 4926,4931 ****
return -1;

value += lower;
return 0;
}

--- 4926,4936 ----
return -1;

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

if (upper < 65536) // 10.9.3.3 <http://10.9.3.3>
***************
*** 4981,4993 ****
if (IsAtEnd())
return -1;

- if (SingleBitDecode() == 0)
- return MultiBitDecode(7, len) ? 0 : -1; // 10.9.3.6 <http://10.9.3.6>

- if (SingleBitDecode() == 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() == 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() == 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 = upper;

+ return 0;
}




Anybody can tell me how to resolve this problem?

Running on FreeBSD 5.4-stable.

--
Yours sincerely,
Owen Jeremiah


More information about the freebsd-questions mailing list