On Thu, Nov 19, 2009 at 05:10:12AM +1100, John wrote:
> I am having trouble with installing a package, php5-core for OpenBSD 4.6
> (i386). There is a dependency that cannot be resolved. php5-core
> requires libiconv-1.12, and a package only exists for libiconv-1.13.
> 
> # pkg_add -r php5-core                                                  
> Can't install php5-core-5.2.10: lib not found iconv.6.0
> Dependencies for php5-core-5.2.10 resolve to: libiconv-1.12,
> libxml-2.6.32p3, gettext-0.17p0
> Full dependency tree is libiconv-1.12,libxml-2.6.32p3,gettext-0.17p0
> iconv.6.0: partial match in /usr/local/lib: major=5, minor=0 (bad major)

maybe you have a broken php5-core package in your PKG_PATH?

$ ftp 
ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.6/packages/i386/php5-core-5.2.10.tgz
[...]
$ pkg_info -f ./php5-core-5.2.10.tgz | grep iconv
@depend converters/libiconv:libiconv-*:libiconv-1.13
@wantlib iconv.6.0
[...]
$ ftp ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.6/packages/i386/libiconv-1.13.tgz
[...]
$ pkg_info -f ./libiconv-1.13.tgz | grep \...@lib
@lib lib/libcharset.so.1.0
@lib lib/libiconv.so.6.0

> I've also tried building php from ports with no luck due to a problem
> with one of the patches...
> 
> ===>  Extracting for php5-core-5.2.11
> ===>  Patching for php5-core-5.2.11
> `/usr/ports/obj/php5-core-5.2.11/.prepatch_done' is up to date.
> ===>  Applying distribution patches for php5-core-5.2.11
> Ignoring previously applied (or reversed) patch.
> 2 out of 2 hunks ignored--saving rejects to
> ext/date/lib/parse_date.re.rej
> ***>   patch-ext_date_lib_parse_date_re did not apply cleanly
> Ignoring previously applied (or reversed) patch.
> 1 out of 1 hunks ignored--saving rejects to ext/date/lib/timelib.h.rej
> ***>   patch-ext_date_lib_timelib_h did not apply cleanly
> Ignoring previously applied (or reversed) patch.
> 1 out of 1 hunks ignored--saving rejects to ext/date/php_date.c.rej
> ***>   patch-ext_date_php_date_c did not apply cleanly
> *** Error code 1

all those messages are the same: "previously applied (or reversed) patch".

you need to 'make clean'.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to