Cannot install sysutils/node_exporter

Hi, I tried to upgrade sysutils/node_exporter on 3 different BSD's and it fails with same error on every one of them.

Code:
golang.org/x/oauth2/clientcredentials
github.com/prometheus/client_golang/prometheus/collectors/version
github.com/prometheus/client_golang/prometheus/collectors
github.com/prometheus/client_golang/prometheus/promhttp
github.com/mwitkow/go-conntrack
github.com/prometheus/node_exporter/collector
github.com/prometheus/common/config
github.com/prometheus/exporter-toolkit/web
github.com/prometheus/exporter-toolkit/web/kingpinflag
# github.com/prometheus/node_exporter/collector
In file included from collector/netstat_freebsd.go:34:
/usr/include/netinet/tcp_var.h:538:2: error: type name requires a specifier or qualifier
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |         ^
/usr/include/netinet/tcp_var.h:538:14: error: a parameter list without types is only allowed in a function definition
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |                     ^
/usr/include/netinet/tcp_var.h:538:20: error: expected ';' at end of declaration list
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |                           ^
3 errors generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/node_exporter
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/node_exporter

===>>> make build failed for sysutils/node_exporter
===>>> Aborting update

Os details:
13.5-RELEASE
go124-1.24.5 = up-to-date with index


I tried rebuilding all packages with portmaster, still fails. Any idea would be appreciated.

Thanks
 
thanks nxjoseph .

Code:
PORTNAME=       node_exporter
DISTVERSIONPREFIX=      v
DISTVERSION=    1.9.1
CATEGORIES=     sysutils

Hm, looking into Makefile it seems it wants to pull from Github, and I am behind proxy, this might be an issue...
 
Are you building the port "in-place"? In other words, the old(er) version is still installed? Try deleting that first, then build/install the new version.
 
Hi, doesnt seem to be proxy, cleaned /usr/ports/distfiles and fetched files succesfully with Make fetch, same error.

I deleted old version also, didnt help :/
 
Same error:
Code:
In file included from collector/netstat_freebsd.go:34:
/usr/include/netinet/tcp_var.h:538:2: error: type name requires a specifier or qualifier
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |         ^
/usr/include/netinet/tcp_var.h:538:14: error: a parameter list without types is only allowed in a function definition
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |                     ^
/usr/include/netinet/tcp_var.h:538:20: error: expected ';' at end of declaration list
  538 |         TAILQ_ENTRY(tcptw) tw_2msl;
      |                           ^
3 errors generated.
So it looks like it's something specific to 13.5, 14.3 doesn't seem to have an issue.
 
FYI, I found an older version of port (1.8.2_5), replaced and it compiled and works fine, until fix arrives.
 
Back
Top