Re: bin/60642: dtrace(1): doesn't call preprocessor correctly

"Thomas Klausner via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR bin/60642; it has been noted by GNATS.

From: Thomas Klausner <[email protected]>
To: RVP via gnats <[email protected]>
Cc: NetBSD bugtracking <[email protected]>
Subject: Re: bin/60642: dtrace(1): doesn't call preprocessor correctly
Date: Tue, 25 Aug 2026 15:41:40 +0200

 On Tue, Aug 25, 2026 at 01:30:02PM +0100, RVP via gnats wrote:
 >  This is PR bin/58630 (and also toolchain/58682).
 
 Thank you, applied.
 
 >  > I've fixed this problem by removing psinfo.d from the NetBSD base system,
 >  > since it uses `u_int` and `struct proc` but nothing defines it.
 >  >
 >  
 >  Please put that back :)
 
 Done!
 
 >  NetBSD defines an `id_t', like FreeBSD, so you can change that conditional to:
 >  
 >  ```
 >  #elif defined(__FreeBSD__) || defined(__NetBSD__)
 >  ```
 >  
 >  > I assume dtrace should call a c preprocessor to handle this, which
 >  > is why I chose the subject.
 >  >
 >  
 >  Add a `-C' to the dtrace command-line.
 
 Thanks, that does help it progress further, until:
 
 [1/633] Generating 'dix/liblibxserver_dix.a.p/Xserver.o'
 FAILED: [code=1] dix/liblibxserver_dix.a.p/Xserver.o
 /usr/sbin/dtrace -C -G -s ../include/Xserver.d -o dix/liblibxserver_dix.a.p/Xserver.o
 dtrace: failed to link script ../include/Xserver.d: No probe sites found for declared provider
 
 Any ideas about that?
 
 Thanks,
  Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.