Subject: Re: Re[2]: php4 with recode support
To: None <netbsd-users@rmroppert.de>
From: Tobias Nygren <tnn@NetBSD.org>
List: pkgsrc-users
Date: 07/05/2007 19:49:20
On Thu, 5 Jul 2007 18:46:19 +0200
netbsd-users@rmroppert.de wrote:

> Hello,
>=20
> Am Donnerstag, 5. Juli 2007 um 18:19 schrieben Sie:
>=20
> > On Thu, 5 Jul 2007 17:52:43 +0200
> > netbsd-users@rmroppert.de wrote:
> >> how do i compile php4 with recode support?
> >>=20
> >> with-recode=3D[DIR] in Makefile did not work
> >>=20
> >>   checking for recode support... yes
> >>   configure: error: Can not find recode.h anywhere under /usr/pkg/incl=
ude  /usr/local /usr /opt
> >>=20
> >> but there is recode.h  in /usr/pkg/include.
> >>=20
> >> Thanks and best regards
> >> Reinhold
>=20
> > Beside the CONFIGURE_ARGS you also need this line in your Makefile:
> > .include "../../converters/recode/buildlink3.mk"
> > -T
>=20
> thank you.
> Now i have done this, but it does not work. It=B4s the same error.

My apologies. The lines ...

CONFIGURE_ARGS+=3D        --with-recode=3D${BUILDLINK_PREFIX.recode}
.include "../../converters/recode/buildlink3.mk"

... _should_ have been everything needed. Unfortunately, this looks
like breakage in the recode package:

Checking for recode support... yes
checking for recode_format_table in -lrecode... no
configure: error: I cannot link librecode (-L/usr/pkg/lib -lrecode). Is
it installed?

From config.log:

int main() {
recode_format_table()
; return 0; }
configure:81698: cc -o conftest -O2 -I/usr/include -I/usr/pkg/include
-I/usr/inc lude -I/usr/pkg/include -I/usr/pkg/include -Wl,-E -L/usr/lib
-Wl,-R/usr/lib -L/u sr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-L/usr/pkg/lib conftest.c -lssl -lc rypto -lm  -lrecode 1>&5
/tmp/pkgsrc-obj/www/php4/work/.buildlink/lib/librecode.so: undefined
reference to `error'

This is due to a bug in the recode package; it doesn't link properly.
I will look at it later ...

-Tobias