allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.6k stars 1.11k forks source link

IIS and Windows How To Guide #1947

Open iamdoubz opened 4 years ago

iamdoubz commented 4 years ago

Install GoAccess on Windows

Why MSYS and not Cygwin? When attempting to compile GoAccess using Cygwin, everything went well.. until moving the created .exe's to another computer that had never had Cygwin. Copying all the required Cygwin .dll's did not help. Copy the entire Cygwin install folder did make it work, but this is not a solution. With MSYS, you only need 4 extra .dll files.

Steps

  1. Install MSYS2
  2. Launch, update pacman -Syu, exit, relaunch
  3. Update any remaining packages with pacman -Su
  4. Download the packages necessary to build GoAccess:
    pacman -S git gcc base-devel ncurses ncurses-devel
  5. Grab the source code git clone https://github.com/allinurl/goaccess.git
  6. cd goaccess
  7. Create config file autoreconf -fi
  8. Configure your build (this will take a while):
    ./configure --enable-utf8
    ### NOTE
    # If you want to build using MaxMind GeoIP, go to step 08
    # If not, go to step 10
  9. Build libmaxminddb from release:
    wget https://github.com/maxmind/libmaxminddb/releases/download/1.4.3/libmaxminddb-1.4.3.tar.gz
    tar -xvf libmaxminddb-1.4.3.tar.gz
    cd libmaxminddb-1.4.3
    ./configure
    make
    make install
  10. Configure for MaxMind GeoIP (this will take a while):
    ./configure --enable-utf8 --enable-geoip=mmdb
  11. make
  12. This will create two files: bin2c.exe and goaccess.exe
  13. In order to use these two files, you will also need 4 dll's from MSYS:
    msys-2.0.dll
    msys-iconv-2.dll
    msys-intl-8.dll
    msys-ncursesw6.dll
  14. For each release, these files will be included.
  15. Find out what kind of format your log file is: visit GoAccess for details
  16. For IIS, you can run this: scripts/iis2goaccess.sh
    # Must run this in either MSYS or Git for Windows
    cat u_ex201019.log | ./iis2goaccess
    # Which will spit out something like:
    %d %t %^ %m %U %^ %^ %^ %h %u %R %s %^ %^ %L
    # OR
    %d %t %^ %^ %m %U %^ %^ %^ %h %u %s %^ %^
    # OR
    %d %t %^ %m %r - %^ - %h %u %s %^ %T
  17. You can also retroactively pass this into your GoAccess call with:
    cat  u_ex* | goaccess --log-format "$(cat u_ex170114.log | ~/goiisformat.sh)" --date-format '%Y-%m-%d' --time-format '%H:%M:%S'

Configurations

You can have configuration files so you do not have long queries in your terminal.

Simple Config file

date-format %Y-%m-%d
time-format %H:%M:%S
log-format %d %t %^ %m %U %^ %^ %^ %h %u %R %s %^ %^ %L

Better Config file

date-format %Y-%m-%d
time-format %H:%M:%S
log-format %d %t %^ %m %U %^ %^ %^ %h %u %R %s %^ %^ %L
##geoip-database GeoLite2-City.mmdb
color-scheme 3
config-dialog false
hl-header true
html-prefs {"theme":"bright","perPage":20,"layout":"horizontal","showTables":true,"visitors":{"plot":{"chartType":"bar"}}}
html-report-title GoAccess Stats
json-pretty-print true
real-os true
agent-list true
output index.html

Windows Task Scheduler

GoAccess has a built in way to auto generate reports through a websocket pointing to your webserver. For windows, this is very difficult. Instead, just create a batch file and schedule it to run every 15 minutes.

Example bat files

Example 1 - Simple

Will find today's date and grab that IIS log file to display.

@echo off
setlocal
set logdir=C:\inetpub\logs\LogFiles\W3SVC3
set wwwdir=C:\inetpub\wwwroot
for /f "tokens=1-4 delims=/-. " %%i in ('date /t') do (call :set_date %%i %%j %%k %%l)
goto :parse
:set_date
if "%1:~0,1%" gtr "9" shift
for /f "skip=1 tokens=2-4 delims=(-)" %%m in ('echo,^|date') do (set %%m=%1&set %%n=%2&set %%o=%3)
goto :eof
:parse
set fsta=u_ex
set fmid=%yy:~0,2%
set fend=%mm%%dd%.log
set fname=%fsta%%fmid%%fend%
goto :goa
:goa
goaccess -f %logdir%\%fname% -p C:\Tools\GoAccess\goa.conf >> nul 2>&1
endlocal

Example 2 - All

Will find all IIS log files from this year (will take an incredibly long time)

@echo off
setlocal
set logdir=C:\inetpub\logs\LogFiles\W3SVC3
set wwwdir=C:\inetpub\wwwroot
for /f "tokens=1-4 delims=/-. " %%i in ('date /t') do (call :set_date %%i %%j %%k %%l)
goto :parse
:set_date
if "%1:~0,1%" gtr "9" shift
for /f "skip=1 tokens=2-4 delims=(-)" %%m in ('echo,^|date') do (set %%m=%1&set %%n=%2&set %%o=%3)
goto :eof
:parse
set fsta=u_ex
set fmid=%yy:~0,2%
set fname3=%fsta%%fmid%*.log
goto :goa
:goa
type %logdir%\%fname3% | goaccess -p C:\Tools\GoAccess\goa.conf >> nul 2>&1
endlocal

Miscellaneous

Tests

I used this on a corporate server. Total requests were 5,803,378 over a period of March 01, 2020 - October 20, 2020. It aggregated 235 IIS 8.5 log files totaling ~1.11GB in file size in approximately 12 minutes and 31 seconds. An average of 7,728 lines/second.

Source

Github

Tag cloud

iis, internet information services, windows, microsoft, goaccess, gitea, schedule, task, task scheduler, cmd, batch

allinurl commented 4 years ago

Thanks a lot for sharing this! Certainly very useful.

I'll keep it open for a while.

escoand commented 3 years ago

make without geoip is not working for me:

cc -O2 -DSYSCONFDIR=\"/mingw64/etc\" -Wall -Wextra -Wnested-externs -Wformat=2 -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 -pthread   -o goaccess.exe src/base64.o src/browsers.o src/color.o src/commons.o src/csv.o src/error.o src/gdashboard.o src/gdns.o src/gholder.o src/gkhash.o src/gmenu.o src/goaccess.o src/gslist.o src/gstorage.o src/gwsocket.o src/json.o src/opesys.o src/options.o src/output.o src/parser.o src/pdjson.o src/settings.o src/sort.o src/tpl.o src/ui.o src/util.o src/websocket.o src/xmalloc.o src/sha1.o src/win/mmap.o    -lncursesw -lpthread -lintl -lintl
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x260): undefined reference to `libintl_fprintf'
src/commons.o:commons.c:(.text+0x260): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x2a2): undefined reference to `libintl_fprintf'
src/commons.o:commons.c:(.text+0x2a2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x306): undefined reference to `libintl_fprintf'
src/commons.o:commons.c:(.text+0x306): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x33b): undefined reference to `libintl_fprintf'
src/commons.o:commons.c:(.text+0x33b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x350): undefined reference to `libintl_fprintf'
src/commons.o:commons.c:(.text+0x350): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/commons.o:commons.c:(.text+0x365): more undefined references to `libintl_fprintf' follow
src/commons.o:commons.c:(.text+0x365): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
src/commons.o:commons.c:(.text+0x21e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
src/commons.o:commons.c:(.text+0x2d7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
src/commons.o:commons.c:(.text+0x380): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
src/csv.o:csv.c:(.text+0x23): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_fprintf'
src/csv.o:csv.c:(.text+0x40): additional relocation overflows omitted from the output
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/error.o:error.c:(.text+0x36f): undefined reference to `libintl_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/error.o:error.c:(.text+0x3bf): undefined reference to `libintl_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/error.o:error.c:(.text+0x412): undefined reference to `libintl_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/error.o:error.c:(.text+0x44f): undefined reference to `libintl_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x8b3): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x8e3): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x12b8): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x12e8): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x1356): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x13a9): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x2160): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdashboard.o:gdashboard.c:(.text+0x2187): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x5af): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x5de): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x5f3): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x61e): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x633): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gdns.o:gdns.c:(.text+0x648): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gmenu.o:gmenu.c:(.text+0x8c): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/gmenu.o:gmenu.c:(.text+0xaf): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0x108): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0x134): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0x869): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0x87e): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0xd84): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0xdac): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0xdc1): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text+0xdec): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x149b): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x16ba): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x16e2): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x16f7): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x1722): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x1737): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/goaccess.o:goaccess.c:(.text.startup+0x174c): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x35): undefined reference to `libintl_vsnprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0xa2): undefined reference to `libintl_vsprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0xe8): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x117): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x12c): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x157): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x16c): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x181): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x451): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x27c9): undefined reference to `libintl_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2c1e): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2c76): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2ca5): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2cba): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2ce5): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/json.o:json.c:(.text+0x2d0c): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/options.o:options.c:(.text+0x1d): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/options.o:options.c:(.text+0x3f): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/options.o:options.c:(.text+0x81): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/options.o:options.c:(.text+0x15a1): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/options.o:options.c:(.text+0x15b7): undefined reference to `__printf__'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x15ba): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x15c9): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x15ef): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x1658): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x1674): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/output.o:output.c:(.text+0x1690): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x1a3e): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x1a65): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x1a83): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x1aa6): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x27f5): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x2818): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x29c3): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x329e): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x32b6): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x32ce): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x32e6): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x3308): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/parser.o:parser.c:(.text+0x3320): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x76f): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x78f): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x990): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x9c4): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x9d9): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0xa04): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0xa1c): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0xa31): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x1443): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x1466): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x14dc): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x150a): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x1538): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x1564): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x15ac): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x15db): more undefined references to `libintl_snprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x167e): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x16a6): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x16bb): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x16e6): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x16fb): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/settings.o:settings.c:(.text+0x1710): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xaee): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xb0a): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xca8): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xd30): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xd5d): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xd72): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xd9d): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xdc4): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xdd9): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xec3): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xee4): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0xf31): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x10b6): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x10e5): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x11b3): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x11cc): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x12b1): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x12de): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x14b8): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x14d8): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x21ee): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x2529): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x2558): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x256d): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x2598): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x25ad): undefined reference to `libintl_fprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/ui.o:ui.c:(.text+0x25c2): more undefined references to `libintl_fprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x825): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x84c): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x89f): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x8ca): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x105a): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x108d): more undefined references to `libintl_snprintf' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x137b): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x13b8): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x13db): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x141a): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x143d): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x147f): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x14a9): undefined reference to `libintl_sprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x1751): undefined reference to `libintl_snprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: src/util.o:util.c:(.text+0x1774): undefined reference to `libintl_sprintf'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:702: goaccess.exe] Error 1
make[2]: Leaving directory '/.../goaccess'
make[1]: *** [Makefile:839: all-recursive] Error 1
make[1]: Leaving directory '/.../goaccess'
make: *** [Makefile:532: all] Error 2
iamdoubz commented 3 years ago

You need to install the libintl package. Just use pacman -S libintl should do it. Then try again.

escoand commented 3 years ago

It's already installed. But as you can see it gets defined but not used in Makefile:

$ grep -i intl Makefile
        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
INTLLIBS = /mingw64/lib/libintl.dll.a -L/mingw64/lib
INTL_MACOSX_LIBS =
LIBINTL = /mingw64/lib/libintl.dll.a -L/mingw64/lib
LIBS = -lncursesw -lpthread -lintl -lintl
LTLIBINTL = -L/mingw64/lib -lintl -R/mingw64/lib

When adding it manually this error is gone

goaccess$(EXEEXT): $(goaccess_OBJECTS) $(goaccess_DEPENDENCIES) $(EXTRA_goaccess_DEPENDENCIES)
        @rm -f goaccess$(EXEEXT)
        $(AM_V_CCLD)$(LINK) $(goaccess_OBJECTS) $(goaccess_LDADD) $(LIBINTL) $(LIBS)

but others occur

cc -O2 -DSYSCONFDIR=\"/mingw64/etc\" -Wall -Wextra -Wnested-externs -Wformat=2 -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 -pthread   -o goaccess.exe src/base64.o src/browsers.o src/color.o src/commons.o src/csv.o src/error.o src/gdashboard.o src/gdns.o src/gholder.o src/gkhash.o src/gmenu.o src/goaccess.o src/gslist.o src/gstorage.o src/gwsocket.o src/json.o src/opesys.o src/options.o src/output.o src/parser.o src/pdjson.o src/settings.o src/sort.o src/tpl.o src/ui.o src/util.o src/websocket.o src/xmalloc.o src/sha1.o src/win/mmap.o    /mingw64/lib/libintl.dll.a -L/mingw64/lib -lncursesw -lpthread -lintl -lintl
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_color.o):(.text+0x310): undefined reference to `__mingw_vsscanf'
/mingw64/lib/libncursesw.a(lib_color.o):(.text+0x310): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__mingw_vsscanf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_color.o):(.text+0x8b6): undefined reference to `__imp__assert'
/mingw64/lib/libncursesw.a(lib_color.o):(.text+0x8b6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x19): undefined reference to `__mingw_vfprintf'
/mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x19): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x98): undefined reference to `__imp___acrt_iob_func'
/mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x98): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x113): undefined reference to `__imp___acrt_iob_func'
/mingw64/lib/libncursesw.a(lib_initscr.o):(.text+0x113): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x3c7): undefined reference to `__imp___acrt_iob_func'
/mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x3c7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x3e4): undefined reference to `__imp___acrt_iob_func'
/mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x3e4): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x406): undefined reference to `__imp__assert'
/mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x406): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x436): undefined reference to `__imp__assert'
/mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x436): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x456): undefined reference to `__imp__assert'
/mingw64/lib/libncursesw.a(lib_newterm.o):(.text+0x456): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_set_term.o):(.text+0xc0): undefined reference to `__mingw_vsscanf'
/mingw64/lib/libncursesw.a(lib_set_term.o):(.text+0xc0): additional relocation overflows omitted from the output
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_set_term.o):(.text+0x758): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_set_term.o):(.text+0xe90): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_set_term.o):(.text+0x1026): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_slk.o):(.text+0x255): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_slk.o):(.text+0x496): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_window.o):(.text+0xd): more undefined references to `__imp__assert' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(safe_sprintf.o):(.text+0x84): undefined reference to `__mingw_vsnprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x19): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x4d): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x246): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x300): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x381): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x391): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x3f1): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(comp_error.o):(.text+0x401): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(doalloc.o):(.text+0x4a): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(getenv_num.o):(.text+0x20): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x19): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x20e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x733): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x765): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x79d): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_setup.o):(.text+0x7b7): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_tparm.o):(.text+0x19): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_tputs.o):(.text+0x37): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_tputs.o):(.text+0xe0): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_tputs.o):(.text+0x12f): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_tputs.o):(.text+0x2dd): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(read_entry.o):(.text+0x1e9): undefined reference to `__mingw_vsprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_driver.o):(.text+0xb6): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x226): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x29b): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x2df): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x616): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x64f): more undefined references to `__imp__assert' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x246b): undefined reference to `stricmp'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x250e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x262e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x26f4): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x27be): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x2ab4): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(win_driver.o):(.text+0x2ae6): more undefined references to `__imp__assert' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x95a): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xa08): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xa56): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xa86): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xadc): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xb1e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0xbb6): more undefined references to `__imp__assert' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x17e2): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x18a7): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1a30): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1c19): undefined reference to `__mingw_vfprintf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1e2e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1e88): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1f28): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1f76): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1f9d): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1fc1): undefined reference to `__imp___acrt_iob_func'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x1fe8): more undefined references to `__imp___acrt_iob_func' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x2044): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x2150): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x221e): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x2289): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x2345): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x23bc): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x23c3): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tinfo_driver.o):(.text+0x2406): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(tty_update.o):(.text+0xa9fe): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_print.o):(.text+0x13): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(access.o):(.text+0x15b): undefined reference to `__imp__errno'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(access.o):(.text+0x24b): undefined reference to `__imp__stat64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(access.o):(.text+0x27b): undefined reference to `__imp__stat64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(db_iterator.o):(.text+0xea): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(db_iterator.o):(.text+0x666): undefined reference to `__imp__stat64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(db_iterator.o):(.text+0x727): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(lib_twait.o):(.text+0xd): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(hardscroll.o):(.text+0x228): undefined reference to `__imp__assert'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /mingw64/lib/libncursesw.a(hardscroll.o):(.text+0x24d): undefined reference to `__imp__assert'
collect2: error: ld returned 1 exit status
iamdoubz commented 3 years ago

What is funny is that I just tried to recompile with the newest goaccess and I cannot get it to compile either. I have a different reason than above. I also cannot compile libmaxminddb v1.5.0 nor v1.4.3. hmmmmm

allinurl commented 3 years ago

@iamdoubz are you getting a specific error message?

iamdoubz commented 3 years ago

@allinurl I'll check again today, but I'm 99% positive I need to reinstall MYSYS2.

marcohald commented 2 years ago

Step 4 was not enough for the dependencies I installed the missing ones with: pacman -S autotools libintl gettext-devel

allinurl commented 2 years ago

@marcohald Thanks for sharing that. For reference, a note on this can be found under the installation instructions.