Subject: Re: BUILD_DEPENDS still working...
To: Ben Collver <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 03/30/2005 15:33:21
On Wed, 30 Mar 2005, Ben Collver wrote:

> that BUILD_DEPENDS is still supposed to work.  Would you do me a favor
> and verify whether rtf-tools will build on your system?  I have two
> reports of the problem described in pkg/29815, but I have not been able
> to duplicate the problem on my own.

I found the problem. See below.

Many lines like:

cc -o rtfdiag diag-unix.o diag-writer.o -O    -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib .././lib-unix/librtf-unix.a .././lib/librtf.a -ltokenscan
gcc: .././lib/librtf.a: No such file or directory
*** Error code 1

(but build continues and errors later again.)

install fails with:

 install -c -s -o root -g wheel -m 555
 stat: No such file or directory
 *** Error code 1

First error is:

cc -c -O   -I. -I.././h -I/usr/pkg/include  -DSTDARGS
-D'STRING_H=<string.h>'  reader.c
reader.c:57: tokenscan.h: No such file or directory

I found the problem.

The wrapper/buildlink3 framework hides headers -- so only the buildlinked
wrappers and symlinks are seen.

Before your package was not using buildlink3 so, the libts provided
library and headers were not hidden.

Now that buildlink3 is the default, they are now hidden.

The fix is to add
and use it:
.include "../../devel/libts/"

I made this fix and it works for me. May I commit it for you?

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links