Comments (8)
1.7.3 compiles fine here..
what i do is:
git pull
./autogen.sh
./configure --enable-nfprofile --enable-maxmind --enable-readpcap --enable-nfpcapd --enable-sflow
make
sudo make install
sudo ldconfig
whats your configure line?
and do you have /usr/local/etc/nfdump.conf
?
from nfdump.
my configure is a pretty simple --enable-sflow
I've also tried it with no ./configure options, with the same result.
As mentioned v1.7.2 compiles fine.
Does compiling somehow reference the application config (that seems really, really, odd)
I just made another attempt, with the same failure:
make distclean
sh autogen.sh
./configure
make
I'm running it on opensuse leap 15.5 (latest)
It has
automake (GNU automake) 1.15.1
from nfdump.
@fourjay - what OS/version are you using?
from nfdump.
Ahh - sorry, I see - opensuse.
I have no opensuse, but I would expect S_IFREG
should be defined in /usr/include/sys/stat.h
with C standard C99 and later as any other Linux does. Could you check, where opensuse lacks some headers or infos?
from nfdump.
Thank you.
This looks OK (to my untrained eye).
/usr/include/sys/stat.h
exists, and there is a define line for S_IFREG
FWIW glibc is at 2.31
To that end, here are a few more lines preceding the failure.
make[3]: Entering directory '/usr/local/src/nfdump/fortier/src/lib'
depbase=`echo conf/nfconf.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I../include -I../inline -Iconf -Icompress -ggdb -g -O3 -std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -pthread
-MT conf/nfconf.lo -MD -MP -MF $depbase.Tpo -c -o conf/nfconf.lo conf/nfconf.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I../include -I../inline -Iconf -Icompress -ggdb -g -O3 -std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -pthread -MT conf/nfconf.lo -MD -MP -MF con
f/.deps/nfconf.Tpo -c conf/nfconf.c -fPIC -DPIC -o conf/.libs/nfconf.o
Is it possible there's an include that's missing?
from nfdump.
Looking at the working compile on my machine (v1.7.2) it looks like the use of libtool is new for v.1.7.3?
V1.7.2 for the same subdirectory (nfconf)
invokes GCC directly.
depbase=`echo nfconf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I../include -I../lib -DCONFIGDIR=\"/usr/local/etc\" -g -O3 -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -pthread -MT nfconf.o -MD -MP -MF $depbase.Tpo -c -o
nfconf.o nfconf.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo toml.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I../include -I../lib -DCONFIGDIR=\"/usr/local/etc\" -g -O3 -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -pthread -MT toml.o -MD -MP -MF $depbase.Tpo -c -o t
oml.o toml.c &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libconf.a
ar cru libconf.a nfconf.o toml.o
ranlib libconf.a
make[2]: Leaving directory '/usr/local/src/nfdump/fortier/src/conf'
from nfdump.
I installed a virtual opensuse to test. Here is how it works:
CFLAGS='-D__USE_MISC' ./configure ..
or use clang to compile:
sudo zypper install clang
and then a typical ./configure
from nfdump.
Thank you so much. clang worked as expected
from nfdump.
Related Issues (20)
- Can't find ftlib.h durning configure ft2nfdump HOT 2
- RAM consumption HOT 2
- NEL Port Block Allocation / Deallocation Events HOT 1
- Is it possible to know if a flow contained fragmented traffic? HOT 6
- nfdump current (1.7.3) has a bug exporting NSEL (cisco ASA) fw events HOT 3
- when daemonizing, requesting to set uid and gid to some user AND writing PIDfile -> permission denied encountered HOT 4
- feature: it will be very cool if nfcapd switch '-n' allow specifying port to listen to. not globally single '-p' but per-configured exporter HOT 3
- sfcapd -T Extensions 1.6.x missing in 1.7.x HOT 2
- nfprofile: Skip unknown record type 13 (after upgrrading from 1.6.20 to 1.7.3) HOT 8
- Sfcapd not processing netflow... HOT 2
- Include dependencies? HOT 4
- sfcapd not working properly after last commits HOT 4
- GCC14 build failure HOT 5
- nfdump: Skip unknown record type 9 HOT 6
- Troubleshooting NetFlow Data Collection and Router Address Display HOT 4
- Support for NetFlow version 10 HOT 2
- Decreased nfdump performance after upgrading from 1.6.17 HOT 2
- sfcapd not acknowledging -W <Worker> HOT 3
- IPFIX (V10) support for dot1q VLAN IDs HOT 23
- Typo in IPFIX fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfdump.