Subject: Re: mail/drac fails to build
To: Charlie Allom <charlie@rubberduck.com>
From: Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp>
List: tech-pkg
Date: 07/19/2003 13:42:22
Hello,

I got the same result. I tried tracking the problem down and saw,

1. In pkgsrc, the environment variable CPP is defined
   as "cpp"(in bsd.buildlink2.mk?).
2. rpcgen tries to find C Preprocessor from the location where $CPP
   variable indicates.
3. When rpcgen is invoked in /usr/pkgsrc/mail/drac/work, it prints
  "cannot find any C preprocessor (cpp)" because /usr/pkgsrc/mail/drac/work/cpp
  doesn't exist.

But I'm not sure what should be fixed. rpcgen? pkgsrc?

At Mon, 14 Jul 2003 17:00:27 +1000,
Charlie Allom <charlie@rubberduck.com> wrote:
> 
> [1  <text/plain; us-ascii (quoted-printable)>]
> Hi,
> 
> what could this be indicative of? This is pkgsrc as of now and i386
> with no /etc/mk.conf weirdness.
> 
> ===> Configuring for drac-1.12
> ===> Building for drac-1.12
> cc -O2 -I/usr/pkg/include -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C   -I/usr/pkkg/include -c testing.c
> rpcgen -I -C drac.x
> cannot find any C preprocessor (cpp)
> cannot find any C preprocessor (cpp)
> cannot find any C preprocessor (cpp)
> cannot find any C preprocessor (cpp)
> cc -O2 -I/usr/pkg/include -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C   -I/usr/pkkg/include -c dracauth.c
> dracauth.c:21: drac.h: No such file or directory
> *** Error code 1
> 
> Stop.
> make: stopped in /home/src/pkgsrc/mail/drac/work
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/pkgsrc/mail/drac
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/pkgsrc/mail/drac
> 
> -- 
>  charlie@rubberduck.com - Melbourne, Australia
>  http://rubberduck.com/~yeled/
>  PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
> [2  <application/pgp-signature (7bit)>]
> 

-----
// Hiramatsu Yoshifumi
// hiramatu@boreas.dti.ne.jp