Giter Club home page Giter Club logo

Comments (8)

thezoggy avatar thezoggy commented on June 20, 2024

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.

fourjay avatar fourjay commented on June 20, 2024

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.

phaag avatar phaag commented on June 20, 2024

@fourjay - what OS/version are you using?

from nfdump.

phaag avatar phaag commented on June 20, 2024

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.

fourjay avatar fourjay commented on June 20, 2024

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.

fourjay avatar fourjay commented on June 20, 2024

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.

phaag avatar phaag commented on June 20, 2024

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.

fourjay avatar fourjay commented on June 20, 2024

Thank you so much. clang worked as expected

from nfdump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.