FAQ  •  Register  •  Login

Your installed dtrace doesn't support the -h switch

<<

eewiz

User avatar

Streaming enthusiast

Posts: 22

Joined: Sat Mar 05, 2016 8:59 am

Post Sun May 07, 2023 2:10 pm

Your installed dtrace doesn't support the -h switch

On trueNAS 13.1 I did: portmaster /usr/ports/net/serviio
Serviio replied:
.....
Support DTrace if available? [y]
Where is the dtrace executable? (~name ok) [/usr/sbin/dtrace]

*** Configure: Fatal Error: /usr/sbin/dtrace doesn't support -h flag
***
*** Your installed dtrace doesn't support the -h switch to compile a D
*** program into a C header. Can't continue.

===> Script "Configure" failed unexpectedly.


I then do: root@r13-1:/usr/ports/ports-mgmt/portmaster # dtrace --help
dtrace: illegal option -- -
Usage: dtrace [-32|-64] [-aACeFGhHlqSvVwZ] [-b bufsz] [-c cmd] [-D name[=def]]
[-I path] [-L path] [-o output] [-p pid] [-s script] [-U name]
[-x opt[=val]] [-X a|c|s|t]

[-P provider [[ predicate ] action ]]
[-m [ provider: ] module [[ predicate ] action ]]
[-f [[ provider: ] module: ] func [[ predicate ] action ]]
[-n [[[ provider: ] module: ] func: ] name [[ predicate ] action ]]
[-i probe-id [[ predicate ] action ]] [ args ... ]

predicate -> '/' D-expression '/'
action -> '{' D-statements '}'

-32 generate 32-bit D programs and ELF files
-64 generate 64-bit D programs and ELF files

-a claim anonymous tracing state
-A generate driver.conf(4) directives for anonymous tracing
-b set trace buffer size
-c run specified command and exit upon its completion
-C run cpp(1) preprocessor on script files
-D define symbol when invoking preprocessor
-e exit after compiling request but prior to enabling probes
-f enable or list probes matching the specified function name
-F coalesce trace output by function
-G generate an ELF file containing embedded dtrace program
-h generate a header file with definitions for static probes
-H print included files when invoking preprocessor
-i enable or list probes matching the specified probe id
-I add include directory to preprocessor search path
-l list probes matching specified criteria
-L add library directory to library search path
-m enable or list probes matching the specified module name
-n enable or list probes matching the specified probe name
-o set output file
-p grab specified process-ID and cache its symbol tables
-P enable or list probes matching the specified provider name
-q set quiet mode (only output explicitly traced data)
-s enable or list probes according to the specified D script
-S print D compiler intermediate code
-U undefine symbol when invoking preprocessor
-v set verbose mode (report stability attributes, arguments)
-V report DTrace API version
-w permit destructive actions
-x enable or modify compiler and tracing options
-X specify ISO C conformance settings for preprocessor
-Z permit probe descriptions that match zero probes
root@r13-1:/usr/ports/ports-mgmt/portmaster #

As can be seen above, dtrace does support the -h switch.

I found dtrace in: /usr/sbin
root@r13-1:/usr/ports/ports-mgmt/portmaster # cd /usr/sbin
root@r13-1:/usr/sbin # ls -l
-r-xr-xr-x 1 root wheel 38656 May 12 2022 dtrace

Please help me understand what is causing this error.

Thank You
<<

n3mmr

DLNA master

Posts: 376

Joined: Tue Jun 15, 2010 8:01 am

Post Tue May 09, 2023 1:56 pm

Re: Your installed dtrace doesn't support the -h switch

Log in to the Serviio jail.
do

(your prompt)# cd /usr/ports/ports-mgmt/portmaster

and then do

(your prompt)# which dtrace
(your prompt)# dtrace -h

So far I haven't tried 2.3, I run 2.1.
But I'll get back when I have tried 2.3 in a separate Base Jail in TrueNAS-13.0-U4. Might be more than a day, but pls be patient.

Us TrueNAS users need to stick together, being a rare species!
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

eewiz

User avatar

Streaming enthusiast

Posts: 22

Joined: Sat Mar 05, 2016 8:59 am

Post Tue May 09, 2023 2:46 pm

Re: Your installed dtrace doesn't support the -h switch

Hello,

As of 2023-05-07, perl5.32 and tcl86 from the ports collection are defective.

In a brand new jail, do:
portsnap fetch
portsnap extract
cd /usr/ports/ports-mgmt/portmaster
make install clean
portmaster /usr/ports/lang/perl5.32

You get this error.
Support DTrace if available? [y]
Where is the dtrace executable? (~name ok) [/usr/sbin/dtrace]

*** Configure: Fatal Error: /usr/sbin/dtrace doesn't support -h flag
***
*** Your installed dtrace doesn't support the -h switch to compile a D
*** program into a C header. Can't continue.

===> Script "Configure" failed unexpectedly.
===>>> Aborting update

Then do:
portmaster /usr/ports/lang/tcl86

You get this error:
===> Building for tcl86-8.6.13
/usr/sbin/dtrace -h -o tclDTrace.h -s /usr/ports/lang/tcl86/work/tcl8.6.13/generic/tclDTrace.d
dtrace: failed to compile script /usr/ports/lang/tcl86/work/tcl8.6.13/generic/tclDTrace.d: "/usr/lib/dtrace/ipfw.d", line 1: syntax error near "in_addr_t"
*** [tclDTrace.h] Error code 1

===> Compilation failed unexpectedly.
Stop.

Serviio from the ports collection tries to install perl5.32 and tcl86 from the ports collection.
Those two fail so the Serviio install fails.

To fix the issue do:
pkg update
pkg upgrade
pkg install perl5-5.32.1_3
pkg install tcl86-8.6.13
Once the precompiled perl5-5.32.1_3 and tcl86-8.6.13 are installed from the packages collection.
Then doing, "portmaster /usr/ports/net/serviio" will work O.K.

About 2.5 hours later I have a working Serviio.

Stick together? So true.

All for now
<<

n3mmr

DLNA master

Posts: 376

Joined: Tue Jun 15, 2010 8:01 am

Post Tue May 09, 2023 3:56 pm

Re: Your installed dtrace doesn't support the -h switch

having tried installing serviio in fbsd13.2, I think 13.2 is flawed, somehow.

I'll try 13.1 instead!
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

n3mmr

DLNA master

Posts: 376

Joined: Tue Jun 15, 2010 8:01 am

Post Wed May 10, 2023 9:03 am

Re: Your installed dtrace doesn't support the -h switch

eewiz wrote:Hello,

.........

<lots of things>...
.........

Serviio from the ports collection tries to install perl5.32 and tcl86 from the ports collection.
Those two fail so the Serviio install fails.

To fix the issue do:
pkg update
pkg upgrade
pkg install perl5-5.32.1_3
pkg install tcl86-8.6.13
Once the precompiled perl5-5.32.1_3 and tcl86-8.6.13 are installed from the packages collection.
Then doing, "portmaster /usr/ports/net/serviio" will work O.K.

About 2.5 hours later I have a working Serviio.

Stick together? So true.

All for now


Thanks!
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 14 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.