OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: Northguy on August 23, 2019, 09:41:12 pm

Title: Cannot 'make' HTOP process viewer
Post by: Northguy on August 23, 2019, 09:41:12 pm
Hi,

I am trying to compile HTOP on my OPNsense installation, but it somehow seems to fail. I used to have HTOP on a previous version 18.x, but after a re-install of the whole system somewhere between 18.x and 19.x HTOP got lost. Now I fail to 'make' HTOP again.

Initially followed https://forum.opnsense.org/index.php?topic=7796.msg35915#msg35915.

When this did not work, searched for clues in https://forum.opnsense.org/index.php?topic=10020.msg45771#msg45771

Cannot get things to work, so any help appreciated. Error log below.

Code: [Select]

root@OPNsense:/usr/ports/sysutils/htop # opnsense-code tools ports
Fetching origin
Already up to date.
Fetching origin
Already up to date.
root@OPNsense:/usr/ports/sysutils/htop # opnsense-code -f src
Cloning into '/usr/src'...
remote: Enumerating objects: 1292, done.
remote: Counting objects: 100% (1292/1292), done.
remote: Compressing objects: 100% (820/820), done.
remote: Total 173060 (delta 575), reused 671 (delta 455), pack-reused 171768
Receiving objects: 100% (173060/173060), 407.22 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (97754/97754), done.
Checking out files: 100% (74065/74065), done.
root@OPNsense:/usr/ports/sysutils/htop # make install
===>   htop-2.2.0_1 depends on package: autoconf>=2.69 - not found
===>   autoconf-2.69_3 depends on executable: gm4 - not found
===>   m4-1.4.18_1,1 depends on executable: makeinfo - not found
===>   texinfo-6.6_2,1 depends on executable: help2man - not found
===>   help2man-1.47.11 depends on executable: gmake - found
===>   help2man-1.47.11 depends on package: perl5>=5.30.r1<5.31 - not found
===>  Configuring for perl5-5.30.0
First let's make sure your kit is complete.  Checking...
Would you like to see the instructions? [n]
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
aix                     greenhills              os400
aix_3                   haiku                   posix-bc
aix_4                   hpux                    qnx
altos486                i386                    riscos
amigaos                 interix                 sco
atheos                  irix_4                  sco_2_3_0
aux_3                   irix_5                  sco_2_3_1
bitrig                  irix_6                  sco_2_3_2
bsdos                   irix_6_0                sco_2_3_3
catamount               irix_6_1                sco_2_3_4
convexos                isc                     solaris_2
cxux                    isc_2                   stellar
cygwin                  linux-android           sunos_4_0
darwin                  linux                   sunos_4_1
dcosx                   lynxos                  super-ux
dec_osf                 midnightbsd             svr4
dos_djgpp               minix                   svr5
dragonfly               mips                    ti1500
dynix                   mirbsd                  ultrix_4
dynixptx                mpc                     umips
epix                    ncr_tower               unicos
esix4                   netbsd                  unicosmk
fps                     newsos4                 unisysdynix
freebsd                 nonstopux               utekv
freemint                openbsd                 uwin
gnu                     opus                    vos
gnukfreebsd             os2
gnuknetbsd              os390
Which of these apply, if any? [freebsd]

Some users have reported that Configure halts when testing for
the O_NONBLOCK symbol with a syntax error.  This is apparently a
sh error.  Rerunning Configure with ksh apparently fixes the
problem.  Try
        ksh Configure [your options]

Operating system name? [freebsd]
Operating system version? [11.2-release-p12-hbsd]
Installation prefix to use? (~name ok) [/usr/local]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr/local]
Getting the current patchlevel...
Build a threading Perl? [y]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/usr/lib /usr/local/lib /usr/lib/clang/6.0.0/lib /usr/lib]
What is the file extension used for shared libraries? [so]
Make shared library basenames unique? [n]
Build Perl for SOCKS? [n]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lpthread -lm -lcrypt -lutil]
What optimizer/debugger flag should be used?
[-O2 -pipe -DHARDENEDBSD -fPIE -fPIC -fstack-protector-all -fno-strict-aliasing ]
Any additional cc flags?
[-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[-pthread -Wl,-E  -fstack-protector-strong -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
Checking to see how big your integers are...
Checking to see if you have long long...
Checking to see how big your long longs are...
Computing filename position in cpp output for #include directives...
<inttypes.h> found.
Checking to see if you have int64_t...
Checking which 64-bit integer type we could use...
We could use 'long' for 64-bit integers.
Try to use maximal 64-bit support, if available? [y]
Checking if your C library has broken 64-bit functions...
Checking for GNU C Library...
Shall I use /usr/bin/nm to extract C symbols from the libraries? [n]
Checking for C++...
Checking to see how big your double precision numbers are...
Checking to see if you have long double...
ldexpl() found.
Checking to see how big your long doubles are...
Checking the kind of long doubles you have...
You have x86 80-bit little endian long doubles.
What is your architecture name [amd64-freebsd]
Add the Perl API version to your archname? [n]
Threads selected.
...setting architecture name to amd64-freebsd-thread.
Multiplicity selected.
...setting architecture name to amd64-freebsd-thread-multi.
This architecture is naturally 64-bit, not changing architecture name.
Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
Use relocatable @INC? [n]
Pathname where the private library files will reside? (~name ok)
[/usr/local/lib/perl5/5.30]
Where do you want to put the public architecture-dependent libraries? (~name ok)
[/usr/local/lib/perl5/5.30/mach]
Other username to test security of setuid scripts with? [none]
I'll assume setuid scripts are *not* secure.
Does your kernel have *secure* setuid scripts? [n]
Installation prefix to use for add-on modules and utilities? (~name ok)
[/usr/local]
Pathname for the site-specific library files? (~name ok)
[/usr/local/lib/perl5/site_perl]
List of earlier versions to include in @INC? [none]
<malloc/malloc.h> NOT found.
<malloc.h> NOT found.
Checking to see how big your pointers are...
Do you wish to wrap malloc calls to protect against potential overflows? [y]
Do you wish to attempt to use the malloc that comes with perl5? [n]
Your system wants malloc to return 'void *', it would seem.
Your system uses void free(), it would seem.
Pathname for the site-specific architecture-dependent library files? (~name ok)
[/usr/local/lib/perl5/site_perl/mach/5.30]
Do you want to configure vendor-specific add-on directories? [n]
Colon-separated list of additional directories for perl to search? [none]
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.
Please report the problem to mat@FreeBSD.org [maintainer] and attach the
"/usr/obj/usr/ports/lang/perl5.30/work/perl-5.30.0/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/lang/perl5.30
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/misc/help2man
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/print/texinfo
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/m4
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/autoconf
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/htop
root@OPNsense:/usr/ports/sysutils/htop #
Title: Re: Cannot 'make' HTOP process viewer
Post by: franco on August 25, 2019, 10:58:07 am
Wait for 19.7.3, Perl 5.30 update current interferes while 5.28 is still installed.


Cheers,
Franco
Title: Re: Cannot 'make' HTOP process viewer
Post by: Northguy on August 25, 2019, 04:58:31 pm
Ok, thanks. Let's see if that will resolve things.