NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



The following reply was made to PR bin/60642; it has been noted by GNATS.

From: Thomas Klausner <wiz%netbsd.org@localhost>
To: RVP via gnats <gnats-admin%netbsd.org@localhost>
Cc: NetBSD bugtracking <gnats-bugs%netbsd.org@localhost>
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
 



Home | Main Index | Thread Index | Old Index