Giter Site home page Giter Site logo

Comments (4)

allinurl avatar allinurl commented on September 23, 2024

Thanks for the heads-up! It seems like CentOS 7 might be rolling with different compiler versions and settings. I'll sort that out. Meanwhile, as a quick fix, give this a shot:

# CFLAGS="-std=c99" ./configure --enable-utf8 --enable-geoip=mmdb
# make
...

or you can pass it directly to make:

# make CFLAGS="-std=c99"

from goaccess.

minhluan259 avatar minhluan259 commented on September 23, 2024

@allinurl thank you, it's showing another error:

cc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I./src    -O2 -DSYSCONFDIR=\"/usr/local/etc\" -Wall -Wextra -Wnested-externs -Wformat=2 -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wshadow -Wold-style-definition -std=c99 -MT src/error.o -MD -MP -MF $depbase.Tpo -c -o src/error.o src/error.c &&\
mv -f $depbase.Tpo $depbase.Po
src/error.c: In function 'setup_sigsegv_handler':
src/error.c:141:20: error: storage size of 'act' isn't known
   struct sigaction act;
                    ^
src/error.c:143:3: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration]
   sigemptyset (&act.sa_mask);
   ^
src/error.c:143:3: warning: nested extern declaration of 'sigemptyset' [-Wnested-externs]
src/error.c:144:24: error: 'SA_RESETHAND' undeclared (first use in this function)
   act.sa_flags = (int) SA_RESETHAND;
                        ^
src/error.c:144:24: note: each undeclared identifier is reported only once for each function it appears in
src/error.c:147:3: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration]
   sigaction (SIGSEGV, &act, &old_sigsegv_handler);
   ^
src/error.c:147:3: warning: nested extern declaration of 'sigaction' [-Wnested-externs]
src/error.c:141:20: warning: unused variable 'act' [-Wunused-variable]
   struct sigaction act;

from goaccess.

allinurl avatar allinurl commented on September 23, 2024

I've pushed a commit that's supposed to handle those declarations errors. Could you try building from the development and check if it resolves the issue on your end? Let me know how it goes. Thanks!

from goaccess.

minhluan259 avatar minhluan259 commented on September 23, 2024

Thanks, it's solve the issue.

from goaccess.

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.