Bug 294500 - net-mgmt/netxms Fix fallout and take maintainership
Summary: net-mgmt/netxms Fix fallout and take maintainership
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-14 01:42 UTC by dnpowers@me.com
Modified: 2026-04-27 00:25 UTC (History)
2 users (show)

See Also:


Attachments
Patch to fix fallout and take maintainership (2.08 KB, patch)
2026-04-14 01:42 UTC, dnpowers@me.com
no flags Details | Diff
Patch update to 6.1.1 and take maintanership (89.82 KB, patch)
2026-04-18 00:34 UTC, dnpowers@me.com
no flags Details | Diff
Fresh patch update --->> 6.1.1 (90.43 KB, patch)
2026-04-21 14:54 UTC, dnpowers@me.com
no flags Details | Diff
Additional patch to fix build on i386 (2.02 KB, patch)
2026-04-22 05:38 UTC, dnpowers@me.com
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dnpowers@me.com 2026-04-14 01:42:06 UTC
Created attachment 269743 [details]
Patch to fix fallout and take maintainership

net/mousquitto introduced sqlite dependency in efa9bc2ac8292ad8765c10477794165f32967c40
Resulting in USE_INTERNAL_SQLITE retrning false.
net-mgmt/netxms is no longer installing and linking to internal sqlite
Upstream documentation indicates that sqlite is not for production use
https://www.netxms.org/documentation/adminguide/installation.html
Comment 1 dnpowers@me.com 2026-04-14 01:45:10 UTC
Patch addresses https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293484
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-04-14 02:08:32 UTC
Many new versions have appeared: https://netxms.com/release-notes/
Comment 3 dnpowers@me.com 2026-04-14 02:11:28 UTC
Understood,
My intent is to provide a quick resolution to the existing issue.
Working on putting together a patch to upgrade.
Comment 4 dnpowers@me.com 2026-04-18 00:34:33 UTC
Created attachment 269888 [details]
Patch update to 6.1.1 and take maintanership

Attahced patch update to 6.1.1
Let me know if I need to open a new bug to reflect that.
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2026-04-21 12:33:55 UTC
Looks reasonable, thank you for stepping up.
Comment 6 Robert Clausecker freebsd_committer freebsd_triage 2026-04-21 12:35:14 UTC
Please rebase the patch upon the current main as it does not apply as is.
Comment 7 dnpowers@me.com 2026-04-21 14:54:53 UTC
Created attachment 269979 [details]
Fresh patch update --->> 6.1.1

Fresh ports tree, fresh patch
Passes poudriere testport
Comment 8 Robert Clausecker freebsd_committer freebsd_triage 2026-04-21 15:57:32 UTC
(In reply to dnpowers@me.com from comment #7)

Thanks.

Build fails on i386 FreeBSD 15:

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I../../../../build -DLIBICONV_PLUG -isy
stem /usr/local/include -D_THREAD_SAFE -Wformat -Wno-unused-result -Wno-format-truncation -Wunused-but-set-variable -Wu
nused-variable -Wunused-value -Werror=return-type -fvisibility=hidden -I/usr/local/include -DUNICODE -DPREFIX=L\"/usr/l
ocal\" -DDATADIR=L\"/usr/local/share/netxms\" -DBINDIR=L\"/usr/local/bin\" -DLIBDIR=L\"/usr/local/lib\" -DPKGLIBDIR=L\"
/usr/local/lib/netxms\" -DSTATEDIR=L\"/var/lib/netxms\" -DSYSCONFDIR=L\"/usr/local/etc\" -DNETXMS_JAR_VERSION=L\"6.1-SN
APSHOT\" -DNDEBUG -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -
DLIBICONV_PLUG -isystem /usr/local/include -std=c++17 -Wreorder -Waddress -Wnon-pod-varargs -Wdeprecated-copy -fno-exce
ptions -fno-rtti -fvisibility-inlines-hidden -MT freebsd_la-system.lo -MD -MP -MF .deps/freebsd_la-system.Tpo -c system
.cpp  -fPIC -DPIC -o .libs/freebsd_la-system.o
proc.cpp:389:17: error: call to member function 'set' is ambiguous
  389 |          value->set(5, procs[i].ki_rusage.ru_stime.tv_sec * 1000 + procs[i].ki_rusage.ru_stime.tv_usec / 1000);
      |          ~~~~~~~^~~
../../../../include/nms_util.h:4510:9: note: candidate function
 4510 |    void set(int col, int32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4511:9: note: candidate function
 4511 |    void set(int col, uint32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4512:9: note: candidate function
 4512 |    void set(int col, double value, int digits = 6) { setAt(getNumRows() - 1, col, value, digits); }
      |         ^
../../../../include/nms_util.h:4513:9: note: candidate function
 4513 |    void set(int col, int64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4514:9: note: candidate function
 4514 |    void set(int col, uint64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
proc.cpp:390:17: error: call to member function 'set' is ambiguous
  390 |          value->set(6, procs[i].ki_rusage.ru_utime.tv_sec * 1000 + procs[i].ki_rusage.ru_utime.tv_usec / 1000);
      |          ~~~~~~~^~~
../../../../include/nms_util.h:4510:9: note: candidate function
 4510 |    void set(int col, int32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4511:9: note: candidate function
 4511 |    void set(int col, uint32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4512:9: note: candidate function
 4512 |    void set(int col, double value, int digits = 6) { setAt(getNumRows() - 1, col, value, digits); }
      |         ^
../../../../include/nms_util.h:4513:9: note: candidate function
 4513 |    void set(int col, int64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4514:9: note: candidate function
 4514 |    void set(int col, uint64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
proc.cpp:394:17: error: call to member function 'set' is ambiguous
  394 |          value->set(10, procs[i].ki_rusage.ru_minflt + procs[i].ki_rusage.ru_majflt);
      |          ~~~~~~~^~~
../../../../include/nms_util.h:4510:9: note: candidate function
 4510 |    void set(int col, int32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4511:9: note: candidate function
 4511 |    void set(int col, uint32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4512:9: note: candidate function
 4512 |    void set(int col, double value, int digits = 6) { setAt(getNumRows() - 1, col, value, digits); }
      |         ^
../../../../include/nms_util.h:4513:9: note: candidate function
 4513 |    void set(int col, int64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4514:9: note: candidate function
 4514 |    void set(int col, uint64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
3 errors generated.
gmake[5]: *** [Makefile:640: freebsd_la-proc.lo] Error 1

Please check.  If this build problem cannot be fixed it's not a dealbreaker, but it would be nice to see it addressed.
Comment 9 dnpowers@me.com 2026-04-21 16:37:14 UTC
I don't see an i386 release for 15.
Are you refering to 14.x?
I may have had the misudnerstanding that 32 bit support was depreciated.
Comment 10 Robert Clausecker freebsd_committer freebsd_triage 2026-04-21 16:45:13 UTC
(In reply to dnpowers@me.com from comment #9)

i386 is no longer supported for the kernel, but we still support it for the userland (e.g. for wine).  That said, the same failure appears on 14.3 and on 13.5.
Comment 11 Robert Clausecker freebsd_committer freebsd_triage 2026-04-21 16:50:15 UTC
Same error on armv7 FreeBSD 15:

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I../../../../build -DLIBICONV_PLUG -isystem /usr/local/include -D_THREAD_SAFE -Wformat -Wno-unused-result -Wno-format-truncation -Wunused-but-set-variable -Wunused-variable -Wunused-value -Werror=return-type -fvisibility=hidden -I/usr/local/include -DUNICODE -DPREFIX=L\"/usr/local\" -DDATADIR=L\"/usr/local/share/netxms\" -DBINDIR=L\"/usr/local/bin\" -DLIBDIR=L\"/usr/local/lib\" -DPKGLIBDIR=L\"/usr/local/lib/netxms\" -DSTATEDIR=L\"/var/lib/netxms\" -DSYSCONFDIR=L\"/usr/local/etc\" -DNETXMS_JAR_VERSION=L\"6.1-SNAPSHOT\" -DNDEBUG -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -std=c++17 -Wreorder -Waddress -Wnon-pod-varargs -Wdeprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -MT freebsd_la-proc.lo -MD -MP -MF .deps/freebsd_la-proc.Tpo -c proc.cpp  -fPIC -DPIC -o .libs/freebsd_la-proc.o
proc.cpp:394:17: error: call to member function 'set' is ambiguous
  394 |          value->set(10, procs[i].ki_rusage.ru_minflt + procs[i].ki_rusage.ru_majflt);
      |          ~~~~~~~^~~
../../../../include/nms_util.h:4510:9: note: candidate function
 4510 |    void set(int col, int32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4511:9: note: candidate function
 4511 |    void set(int col, uint32_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4512:9: note: candidate function
 4512 |    void set(int col, double value, int digits = 6) { setAt(getNumRows() - 1, col, value, digits); }
      |         ^
../../../../include/nms_util.h:4513:9: note: candidate function
 4513 |    void set(int col, int64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
../../../../include/nms_util.h:4514:9: note: candidate function
 4514 |    void set(int col, uint64_t value) { setAt(getNumRows() - 1, col, value); }
      |         ^
1 error generated.
Comment 12 dnpowers@me.com 2026-04-22 05:38:36 UTC
Created attachment 269988 [details]
Additional patch to fix build on i386

Passes testport on 14.4-RELEASE i386 as well as 15.0-RELEASE amd64
Comment 13 commit-hook freebsd_committer freebsd_triage 2026-04-27 00:06:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d913a8f821cc6652b023eb2bdda2e4df4b0ce550

commit d913a8f821cc6652b023eb2bdda2e4df4b0ce550
Author:     David Powers <dnpowers@me.com>
AuthorDate: 2026-04-21 14:21:21 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-04-27 00:01:02 +0000

    net-mgmt/netxms: Update to 6.1.1 and take maintainership

    Changelog: https://netxms.com/release-notes/

    PR:             293484, 294500

 net-mgmt/netxms/Makefile                           |   30 +-
 net-mgmt/netxms/distinfo                           |    8 +-
 .../files/patch-contrib_netxmsd.conf-dist (new)    |   11 +
 ...atch-src_agent_subagents_freebsd_proc.cpp (new) |   18 +
 net-mgmt/netxms/pkg-plist                          | 1856 +++++++++++---------
 5 files changed, 1095 insertions(+), 828 deletions(-)
Comment 14 Robert Clausecker freebsd_committer freebsd_triage 2026-04-27 00:25:12 UTC
Thank you for your submission.