Makefile:167: recipe for target 'third_party/Csocket/Csocket.h' failed #446

Closed
opened 2026-10-05 04:21:26 +02:00 by adam · 8 comments
Owner

Seems the following code is missing some double quotes on line 167 in Makefile.in.

@echo It looks like git submodules are not initialized. Run: git submodule update --init --recursive

Seems the following code is missing some double quotes on line 167 in Makefile.in. @echo It looks like git submodules are not initialized. Run: git submodule update --init --recursive <!-- github-sync-id:53444488 -->
adam closed this issue 2026-10-05 04:21:26 +02:00
Author
Owner

Failed how? It's not supposed to run git for you

Failed how? It's not supposed to run git for you <!-- github-comment-id:68779303 -->
Author
Owner

I install ZNC through archlinux and pacaur.
Using a GIT version of the package https://aur.archlinux.org/packages/znc-git/

I install ZNC through archlinux and pacaur. Using a GIT version of the package https://aur.archlinux.org/packages/znc-git/ <!-- github-comment-id:68779603 -->
Author
Owner

May you paste what exactly did you see? Why do you think it failed?

May you paste what exactly did you see? Why do you think it failed? <!-- github-comment-id:68779683 -->
Author
Owner

`--> pacaur -S znc-git (01-05 21:57)
:: Package(s) znc-git not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages (1): znc-git-latest

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: View znc-git PKGBUILD? [Y/n] n
:: View znc.install script? [Y/n] n
[sudo] password for schwick:
==> Making package: znc-git 1:1.0.82.gf2e8738-3 (Mon Jan 5 21:57:43 CET 2015)
==> Retrieving sources...
-> Cloning znc-git git repo...
Cloning into bare repository '/tmp/pacaurtmp-schwick/znc-git/znc-git'...
remote: Counting objects: 22940, done.
remote: Compressing objects: 100% (1458/1458), done.
remote: Total 22940 (delta 1296), reused 1515 (delta 707)
Receiving objects: 100% (22940/22940), 13.16 MiB | 2.55 MiB/s, done.
Resolving deltas: 100% (13870/13870), done.
Checking connectivity... done.
==> Validating source files with md5sums...
znc-git ... Skipped
==> Extracting sources...
-> Creating working copy of znc git repo...
Cloning into 'znc-git'...
done.
==> Starting pkgver()...
==> Updated version: znc-git 1:1.2.526.gce1543c-1
==> Sources are ready.
:: Building znc-git package(s)...
==> Making package: znc-git 1:1.2.526.gce1543c-1 (Mon Jan 5 21:57:52 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing src/ tree
==> Starting build()...
Running 'aclocal -I m4 -Wall'
Running 'autoheader -Wall'
Running 'autoconf -Wall'
Running 'automake --add-missing -Wall'
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:41: installing './config.guess'
configure.ac:41: installing './config.sub'
configure.ac:38: installing './install-sh'
automake: error: no 'Makefile.am' found for any configure output
(Yes, automake is supposed to fail, ignore that)

You may now run ./configure.
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... yes
checking for a BSD-compatible install... /bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for git... /bin/git
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether compiler predefines _FORTIFY_SOURCE... yes
checking for getopt_long in -lgnugetopt... no
checking for lstat... yes
checking for getopt_long... yes
checking for getpassphrase... no
checking for library containing dlopen... -ldl
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether getaddrinfo() supports AI_ADDRCONFIG... yes
checking for openssl... yes
checking whether openssl is usable... yes
checking whether zlib is usable... yes
checking for icu... yes
checking for SWIG >= 3.0.0... /bin/swig
configure: Following SWIG versions are found: 3.0.2
checking for perl... /bin/perl
checking for perl_alloc in -lperl... yes
checking for python... yes
checking for Py_Initialize... yes
checking for perl... (cached) /bin/perl
checking for sasl_server_init in -lsasl2... yes
checking for /usr/lib/tclConfig.sh... yes
checking modtcl flags... -I/usr/include -L/usr/lib -ltcl8.6
checking for Tcl_CreateInterp... yes
checking for GNU make... /bin/make
configure: creating ./config.status
config.status: creating Makefile
config.status: creating znc-buildmod
config.status: creating man/Makefile
config.status: creating znc.pc
config.status: creating znc-uninstalled.pc
config.status: creating modules/Makefile
config.status: creating include/znc/zncconfig.h

ZNC 1.5.0 configured

prefix: /usr
debug: no
ipv6: yes
openssl: yes
dns: threads
perl: yes
python: yes
swig: yes
cyrus: yes
tcl: yes
charset: yes
zlib: yes
run from src: no

Now you can run "make" to compile ZNC
Packing man page znc.1.gz...
Packing man page znc-buildmod.1.gz...
It looks like git submodules are not initialized. Run: git submodule update --init --recursive
Makefile:167: recipe for target 'third_party/Csocket/Csocket.h' failed
make: *** [third_party/Csocket/Csocket.h] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: znc-git cleaned

`--> pacaur -S znc-git (01-05 21:57) :: Package(s) znc-git not found in repositories, trying AUR... :: resolving dependencies... :: looking for inter-conflicts... AUR Packages (1): znc-git-latest :: Proceed with installation? [Y/n] y :: Retrieving package(s)... :: View znc-git PKGBUILD? [Y/n] n :: View znc.install script? [Y/n] n [sudo] password for schwick: ==> Making package: znc-git 1:1.0.82.gf2e8738-3 (Mon Jan 5 21:57:43 CET 2015) ==> Retrieving sources... -> Cloning znc-git git repo... Cloning into bare repository '/tmp/pacaurtmp-schwick/znc-git/znc-git'... remote: Counting objects: 22940, done. remote: Compressing objects: 100% (1458/1458), done. remote: Total 22940 (delta 1296), reused 1515 (delta 707) Receiving objects: 100% (22940/22940), 13.16 MiB | 2.55 MiB/s, done. Resolving deltas: 100% (13870/13870), done. Checking connectivity... done. ==> Validating source files with md5sums... znc-git ... Skipped ==> Extracting sources... -> Creating working copy of znc git repo... Cloning into 'znc-git'... done. ==> Starting pkgver()... ==> Updated version: znc-git 1:1.2.526.gce1543c-1 ==> Sources are ready. :: Building znc-git package(s)... ==> Making package: znc-git 1:1.2.526.gce1543c-1 (Mon Jan 5 21:57:52 CET 2015) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing src/ tree ==> Starting build()... Running 'aclocal -I m4 -Wall' Running 'autoheader -Wall' Running 'autoconf -Wall' Running 'automake --add-missing -Wall' configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) configure.ac:41: installing './config.guess' configure.ac:41: installing './config.sub' configure.ac:38: installing './install-sh' automake: error: no 'Makefile.am' found for any configure output (Yes, automake is supposed to fail, ignore that) You may now run ./configure. checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ supports C++11 features by default... no checking whether g++ supports C++11 features with -std=c++11... yes checking for a BSD-compatible install... /bin/install -c checking for grep that handles long lines and -e... /bin/grep checking for a sed that does not truncate output... /bin/sed checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking for git... /bin/git checking for pkg-config... /bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking whether compiler predefines _FORTIFY_SOURCE... yes checking for getopt_long in -lgnugetopt... no checking for lstat... yes checking for getopt_long... yes checking for getpassphrase... no checking for library containing dlopen... -ldl checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking whether getaddrinfo() supports AI_ADDRCONFIG... yes checking for openssl... yes checking whether openssl is usable... yes checking whether zlib is usable... yes checking for icu... yes checking for SWIG >= 3.0.0... /bin/swig configure: Following SWIG versions are found: 3.0.2 checking for perl... /bin/perl checking for perl_alloc in -lperl... yes checking for python... yes checking for Py_Initialize... yes checking for perl... (cached) /bin/perl checking for sasl_server_init in -lsasl2... yes checking for /usr/lib/tclConfig.sh... yes checking modtcl flags... -I/usr/include -L/usr/lib -ltcl8.6 checking for Tcl_CreateInterp... yes checking for GNU make... /bin/make configure: creating ./config.status config.status: creating Makefile config.status: creating znc-buildmod config.status: creating man/Makefile config.status: creating znc.pc config.status: creating znc-uninstalled.pc config.status: creating modules/Makefile config.status: creating include/znc/zncconfig.h ZNC 1.5.0 configured prefix: /usr debug: no ipv6: yes openssl: yes dns: threads perl: yes python: yes swig: yes cyrus: yes tcl: yes charset: yes zlib: yes run from src: no Now you can run "make" to compile ZNC Packing man page znc.1.gz... Packing man page znc-buildmod.1.gz... It looks like git submodules are not initialized. Run: git submodule update --init --recursive Makefile:167: recipe for target 'third_party/Csocket/Csocket.h' failed make: **\* [third_party/Csocket/Csocket.h] Error 1 ==> ERROR: A failure occurred in build(). Aborting... :: znc-git cleaned <!-- github-comment-id:68780141 -->
Author
Owner

This line in Makefile.in is fine. It shows the message, as it's supposed to:

Packing man page znc-buildmod.1.gz...
It looks like git submodules are not initialized. Run: git submodule update --init --recursive

If you would use git directly, it's the message for you, it explains what user needs to do in order to update git submodules. (Running it automatically may harm, or even simply not enough permissions, depending on circumstances)

But you're installing not directly from git, but via https://aur.archlinux.org/packages/znc-git/ , so it's https://aur.archlinux.org/packages/znc-git/ 's job to update git submodules.
So archlinux package for znc-git needs to be fixed.

This line in Makefile.in is fine. It shows the message, as it's supposed to: ``` Packing man page znc-buildmod.1.gz... It looks like git submodules are not initialized. Run: git submodule update --init --recursive ``` If you would use git directly, it's the message for you, it explains what user needs to do in order to update git submodules. (Running it automatically may harm, or even simply not enough permissions, depending on circumstances) But you're installing not directly from git, but via https://aur.archlinux.org/packages/znc-git/ , so it's https://aur.archlinux.org/packages/znc-git/ 's job to update git submodules. So archlinux package for znc-git needs to be fixed. <!-- github-comment-id:68780855 -->
Author
Owner

@gtmanfred Please take a look

@gtmanfred Please take a look <!-- github-comment-id:68782844 -->
Author
Owner

I will take a look tonight after work.

I will take a look tonight after work. <!-- github-comment-id:68788673 -->
Author
Owner

Updated

Updated <!-- github-comment-id:68820071 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#446