Date: Thu, 24 Mar 2022 11:11:29 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262756] net/ntopng: broken ports build due to missing symbols from glib Message-ID: <bug-262756-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262756 Bug ID: 262756 Summary: net/ntopng: broken ports build due to missing symbols from glib Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: madpilot@FreeBSD.org Reporter: franco@opnsense.org Assignee: madpilot@FreeBSD.org Flags: maintainer-feedback?(madpilot@FreeBSD.org) Attachment #232674 maintainer-approval? Flags: Created attachment 232674 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232674&action= =3Dedit glib addition A plain ports tree build in a clean 13-STABLE chroot fails with: clang++ -O2 -pipe -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include=20 -std=3Dc++0x -Wl,-rpath,/usr/local/lib -fstack-protector-strong=20=20 src/AddressResolution.o src/AddressTree.o src/AlertCounter.o=20 src/AlertableEntity.o src/AlertsQueue.o src/AutonomousSystem.o=20 src/AutonomousSystemHash.o src/Bitmap128.o src/Bitmask.o src/Bloom.o=20 src/BroadcastDomains.o src/Check.o src/ChecksLoader.o src/Condvar.o=20 src/ContainerStats.o src/ContinuousPing.o src/ContinuousPingStats.o=20 src/CountriesHash.o src/Country.o src/DB.o src/DSCPStats.o src/DnsStats= .o=20 src/DummyInterface.o src/ElasticSearch.o src/EthStats.o=20 src/ExportInterface.o src/Fingerprint.o src/Flow.o src/FlowAlert.o=20 src/FlowAlertsLoader.o src/FlowCheck.o src/FlowChecksExecutor.o=20 src/FlowChecksLoader.o src/FlowGrouper.o src/FlowHash.o src/FlowRiskAler= ts.o src/FlowStats.o src/FlowTrafficStats.o src/FrequentStringItems.o=20 src/GenericHash.o src/GenericHashEntry.o src/GenericTrafficElement.o=20 src/Geolocation.o src/HTTPserver.o src/HTTPstats.o src/Host.o=20 src/HostAlert.o src/HostAlertableEntity.o src/HostCheck.o=20 src/HostChecksExecutor.o src/HostChecksLoader.o src/HostHash.o=20 src/HostPoolStats.o src/HostPools.o src/HostStats.o src/ICMPinfo.o=20 src/ICMPstats.o src/IEC104Stats.o src/InfluxDBTimeseriesExporter.o=20 src/InterarrivalStats.o src/InterfaceStatsHash.o src/IpAddress.o=20 src/L4Stats.o src/ListeningPorts.o src/LocalHost.o src/LocalHostStats.o= =20 src/LocalTrafficStats.o src/LuaEngine.o src/LuaEngineInterface.o=20 src/LuaEngineNetwork.o src/LuaEngineNtop.o src/MDNS.o src/Mac.o=20 src/MacHash.o src/MacManufacturers.o src/MacStats.o src/MostVisitedList.= o=20 src/Mutex.o src/MySQLDB.o src/NetworkDiscovery.o src/NetworkInterface.o= =20 src/NetworkStats.o src/Ntop.o src/NtopGlobals.o src/ObservationPoint.o=20 src/ObservationPointHash.o src/OperatingSystem.o src/OperatingSystemHash.= o=20 src/OtherAlertableEntity.o src/PF_RINGInterface.o src/PacketDumper.o=20 src/PacketDumperTuntap.o src/PacketStats.o src/Paginator.o src/ParsedFlo= w.o=20 src/ParsedFlowCore.o src/ParsedeBPF.o src/ParserInterface.o=20 src/PartializableFlowTrafficStats.o src/PcapInterface.o=20 src/PeriodicActivities.o src/PeriodicScript.o src/Ping.o src/Prefs.o=20 src/ProtoStats.o src/RRDTimeseriesExporter.o src/RecipientQueues.o=20 src/Recipients.o src/Redis.o src/RemoteHost.o src/RoundTripStats.o=20 src/RwLock.o src/SNMP.o src/SQLiteAlertStore.o src/SQLiteStoreManager.o= =20 src/Score.o src/ScoreStats.o src/SerializableElement.o src/StatsManager.= o=20 src/SyslogCollectorInterface.o src/SyslogDump.o src/SyslogLuaEngine.o=20 src/SyslogParserInterface.o src/SyslogStats.o src/TcpFlowStats.o=20 src/TcpPacketStats.o src/ThreadPool.o src/ThreadedActivity.o=20 src/ThreadedActivityStats.o src/ThroughputStats.o src/TimelineExtract.o=20 src/TimeseriesExporter.o src/Trace.o src/TrafficStats.o src/Utils.o=20 src/VLAN.o src/VLANAddressTree.o src/VLANHash.o src/ViewInterface.o=20 src/ViewScoreStats.o src/VirtualHost.o src/VirtualHostHash.o=20 src/ZCCollectorInterface.o src/ZMQCollectorInterface.o=20 src/ZMQParserInterface.o src/ZMQPublisher.o src/main.o src/nDPIStats.o=20 src/flow_checks/BlacklistedCountry.o src/flow_checks/BlacklistedFlow.o=20 src/flow_checks/BroadcastNonUDPTraffic.o=20 src/flow_checks/DeviceProtocolNotAllowed.o=20 src/flow_checks/ExternalAlertCheck.o src/flow_checks/FlowRisk.o=20 src/flow_checks/IECUnexpectedTypeId.o src/flow_checks/LowGoodputFlow.o=20 src/flow_checks/NotPurged.o src/flow_checks/RemoteAccess.o=20 src/flow_checks/RemoteToLocalInsecureProto.o src/flow_checks/RemoteToRemot= e.o=20 src/flow_checks/TCPNoDataExchanged.o src/flow_checks/TCPZeroWindow.o=20 src/flow_checks/UDPUnidirectional.o src/flow_checks/UnexpectedServer.o=20 src/flow_checks/WebMining.o src/flow_alerts/BlacklistedCountryAlert.o=20 src/flow_alerts/BlacklistedFlowAlert.o=20 src/flow_alerts/BroadcastNonUDPTrafficAlert.o=20 src/flow_alerts/DeviceProtocolNotAllowedAlert.o=20 src/flow_alerts/ElephantFlowAlert.o src/flow_alerts/ExternalAlertCheckAler= t.o=20 src/flow_alerts/FlowRiskBinaryApplicationTransferAlert.o=20 src/flow_alerts/FlowRiskKnownProtocolOnNonStandardPortAlert.o=20 src/flow_alerts/FlowRiskSSHObsoleteClientAlert.o=20 src/flow_alerts/FlowRiskSSHObsoleteServerAlert.o=20 src/flow_alerts/FlowRiskSimpleAlert.o=20 src/flow_alerts/FlowRiskSuspiciousDGADomainAlert.o=20 src/flow_alerts/FlowRiskTLSCertificateSelfSignedAlert.o=20 src/flow_alerts/FlowRiskTLSOldProtocolVersionAlert.o=20 src/flow_alerts/IECInvalidTransitionAlert.o=20 src/flow_alerts/IECUnexpectedTypeIdAlert.o=20 src/flow_alerts/LongLivedFlowAlert.o src/flow_alerts/LowGoodputFlowAlert.o= =20 src/flow_alerts/PeriodicityChangedAlert.o src/flow_alerts/RemoteAccessAler= t.o=20 src/flow_alerts/RemoteToLocalInsecureProtoAlert.o=20 src/flow_alerts/TLSMaliciousSignatureAlert.o=20 src/flow_alerts/UnexpectedServerAlert.o src/host_checks/CountriesContacts.= o=20 src/host_checks/DNSServerContacts.o src/host_checks/DNSTraffic.o=20 src/host_checks/DangerousHost.o src/host_checks/DomainNamesContacts.o=20 src/host_checks/FlowFlood.o src/host_checks/FlowHits.o=20 src/host_checks/ICMPFlood.o src/host_checks/NTPServerContacts.o=20 src/host_checks/NTPTraffic.o src/host_checks/P2PTraffic.o=20 src/host_checks/PktThreshold.o src/host_checks/RemoteConnection.o=20 src/host_checks/SMTPServerContacts.o src/host_checks/SYNFlood.o=20 src/host_checks/SYNScan.o src/host_checks/ScoreThreshold.o=20 src/host_checks/ServerContacts.o src/host_alerts/CountriesContactsAlert.o= =20 src/host_alerts/DNSServerContactsAlert.o src/host_alerts/DNSTrafficAlert.o= =20 src/host_alerts/DangerousHostAlert.o=20 src/host_alerts/DomainNamesContactsAlert.o src/host_alerts/FlowHitsAlert.o= =20 src/host_alerts/NTPServerContactsAlert.o src/host_alerts/NTPTrafficAlert.o= =20 src/host_alerts/P2PTrafficAlert.o src/host_alerts/PktThresholdAlert.o=20 src/host_alerts/RemoteConnectionAlert.o=20 src/host_alerts/SMTPServerContactsAlert.o=20 src/host_alerts/ServerContactsAlert.o -Wall -Wl,-Bstatic -L/usr/local/lib -lndpi -lrrd -lm -lgcrypt -Wl,-Bdynamic -lpcap -llua-5.4 -L/usr/local/lib -lrrd /usr/local/lib/libjson-c.a -lmaxminddb -lsqlite3 /usr/local/lib/mysql/libmysqlclient.a -lexpat -L/usr/local/lib -lssl -lssl -lcrypto -Wl,-rpath,/usr/local/lib -fstack-protector-strong -L/usr/local= /lib -lmaxminddb -lzmq -L/usr/local/lib -lgpg-error -lzmq -lsodium -L/usr/local= /lib -lgcrypt -lldap -llber -lrt -lz -ldl -lcurl /usr/local/lib/libzstd.a -lm -lpthread -o ntopng ld: error: undefined symbol: g_list_append >>> referenced by librrdupd_la-rrd_create.o:(rrd_create) in archive /usr/lo= cal/lib/librrd.a >>> referenced by librrdupd_la-rrd_create.o:(rrd_create_r2) in archive /usr= /local/lib/librrd.a ld: error: undefined symbol: g_list_free_full >>> referenced by librrdupd_la-rrd_create.o:(rrd_create) in archive /usr/lo= cal/lib/librrd.a >>> referenced by librrdupd_la-rrd_create.o:(rrd_create_r2) in archive /usr= /local/lib/librrd.a >>> referenced by librrdupd_la-rrd_create.o:(rrd_create_r2) in archive /usr= /local/lib/librrd.a ld: error: undefined symbol: g_list_length >>> referenced by librrdupd_la-rrd_create.o:(rrd_create) in archive /usr/lo= cal/lib/librrd.a ld: error: undefined symbol: g_regex_new >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a ld: error: undefined symbol: g_match_info_free >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a ld: error: undefined symbol: g_regex_unref >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a ld: error: undefined symbol: g_regex_match >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a ld: error: undefined symbol: g_match_info_fetch_pos >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a >>> referenced by librrdupd_la-rrd_create.o:(parseDS) in archive /usr/local= /lib/librrd.a >>> referenced 2 more times ld: error: undefined symbol: g_tree_new_full >>> referenced by librrdupd_la-rrd_update.o:(rrd_template_update) in archiv= e /usr/local/lib/librrd.a ld: error: undefined symbol: g_tree_lookup >>> referenced by librrdupd_la-rrd_update.o:(rrd_template_update) in archiv= e /usr/local/lib/librrd.a ld: error: undefined symbol: g_tree_insert >>> referenced by librrdupd_la-rrd_update.o:(rrd_template_update) in archiv= e /usr/local/lib/librrd.a clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [Makefile:136: ntopng] Error 1 gmake[1]: Leaving directory '/usr/obj/usr/ports/net/ntopng/work/ntopng-9d82= 383' Attached it is a patch meant as a POC that allows the build to continue. Cheers, Franco --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262756-7788>