Subject: Re: pkgsrc compilation failure on redhat linux 7.2
To: None <tech-pkg@netbsd.org>
From: Niilo Kajander <nk@atki.net>
List: tech-pkg
Date: 12/18/2002 19:54:33
On Wed, 18 Dec 2002 17:37:15 +0100 (CET)
arnost@arachne.cz wrote:

> Hi!
> 
> i'm trying to compile pkgsrc bootstrapping kit on redhat linux 7.2
> (with last official updates)
> 
> i did:
> 
> CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot; export CVSROOT
> cvs login
> cvs -z5 checkout othersrc/bootstrap-pkgsrc
> cd othersrc/bootstrap-pkgsrc
> ./bootstrap
> 
> after some output there's an error:
> 
> gcc -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H
> "-D_PATH_DEFSYSPATH=\"/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'
> 
> 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.

cc -I. -I. -I.. -I./.. -O1 -march=pentiumpro
-I/usr/pkgsrc/converters/libiconv/work/.buildlink/include
-I/usr/pkgsrc/converters/libiconv/work/.buildlink/include
-DHAVE_CONFIG_H -DLIBDIR=\"/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.

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.