Subject: Re: pkgsrc compilation failure on redhat linux 7.2
To: Niilo Kajander <>
From: Chris Pinnock <>
List: tech-pkg
Date: 12/18/2002 21:03:36
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 18, 2002 at 07:54:33PM +0200, Niilo Kajander wrote:
> On Wed, 18 Dec 2002 17:37:15 +0100 (CET)
> wrote:
> >=20
> > gcc -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H
> > "-D_PATH_DEFSYSPATH=3D\"/usr/pkg/share/mk\"" -DMAKE_BOOTSTRAP    -c -o
> > compat.o compat.c
> > compat.c: In function `CompatRunCommand':
> > compat.c:318: incompatible type for argument 1 of `wait'
> >=20
> > can you help me pls?
> I got the same on Debian GNU/Linux both on x86 and on alpha. On
> OpenBSD/i386 it worked fine, some packages got built nicely but
> converters/libiconv didn't.

That is a known problem with Linux (which I really must get around to
looking at).
> cc -I. -I. -I.. -I./.. -O1 -march=3Dpentiumpro
> -I/usr/pkgsrc/converters/libiconv/work/.buildlink/include
> -I/usr/pkgsrc/converters/libiconv/work/.buildlink/include
> -DHAVE_CONFIG_H -DLIBDIR=3D\"/usr/pkg/lib\" -c ./localcharset.c  -fPIC
> -DPIC -o .libs/localcharset.o
> ./localcharset.c: In function `get_charset_aliases':
> ./localcharset.c:115: syntax error before `/'
> *** Error code 1
> The OpenBSD box here is running 3.1-stable as of Sep 15.

There is a problem in buildlink2 which someone is fixing at the moment.

> for some reason openssl's buildlink doesn't have a clue about OpenBSD's
> openssl in base and tries to build openssl from pkgsrc which fails.

Much of pkgsrc is unaware of what is in the "base" of an OS other than
for NetBSD. This is partly due to the fact that OpenBSD support is
relatively new.

best wishes,

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (NetBSD)