Configuring incomplete, errors occurred #832

Closed
opened 2026-10-05 04:47:09 +02:00 by adam · 7 comments
Owner

Hello,

Ive issue with latest release (https://github.com/znc/znc/archive/znc-1.7.0.tar.gz)

On debian 9.4 :

`../configure.sh
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- locale
CMake Error at CMakeLists.txt:245 (message):
It looks like git submodules are not initialized.
Run: git submodule update --init --recursive

-- Configuring incomplete, errors occurred!
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "../configure.sh", line 136, in
+ cm_args + extra_args)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '..']' returned non-zero exit status 1
`
Can you resolve my problem? Thx

Hello, Ive issue with latest release (https://github.com/znc/znc/archive/znc-1.7.0.tar.gz) On debian 9.4 : `../configure.sh -- Boost version: 1.62.0 -- Found the following Boost libraries: -- locale CMake Error at CMakeLists.txt:245 (message): It looks like git submodules are not initialized. Run: git submodule update --init --recursive -- Configuring incomplete, errors occurred! See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeOutput.log". See also "/tmp/znc-znc-1.7.0/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "../configure.sh", line 136, in <module> + cm_args + extra_args) File "/usr/lib/python3.5/subprocess.py", line 271, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '..']' returned non-zero exit status 1 ` Can you resolve my problem? Thx <!-- github-sync-id:319639524 -->
adam closed this issue 2026-10-05 04:47:09 +02:00
Author
Owner

The command needed to fix the issue is included in the error message:
git submodule update --init --recursive

The command needed to fix the issue is included in the error message: git submodule update --init --recursive <!-- github-comment-id:386063347 -->
Author
Owner

Hi magnum7385, but :

in build or in znc-znc-1.7.0
fatal: Not a git repository (or any of the parent directories): .git

Hi magnum7385, but : in build or in znc-znc-1.7.0 `fatal: Not a git repository (or any of the parent directories): .git` <!-- github-comment-id:386064346 -->
Author
Owner

Do you have any success using the official link release instead of the one you used? https://znc.in/releases/znc-1.7.0.tar.gz

Do you have any success using the official link release instead of the one you used? https://znc.in/releases/znc-1.7.0.tar.gz <!-- github-comment-id:386064911 -->
Author
Owner

Yes, it works with https://znc.in/releases/znc-1.7.0.tar.gz but not with the one on github :/

Yes, it works with https://znc.in/releases/znc-1.7.0.tar.gz but not with the one on github :/ <!-- github-comment-id:386073540 -->
Author
Owner

That's because you downloaded a tarball of the contents of the repo, and to use that git command, you need to have cloned the repo

That's because you downloaded a tarball of the contents of the repo, and to use that git command, you need to have cloned the repo <!-- github-comment-id:386096401 -->
Author
Owner

Tarball with github repo doesn't include files from git submodules.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a772f2db..7534d6d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -242,8 +242,20 @@ endif()
 file(GLOB csocket_files LIST_DIRECTORIES FALSE
 	"${PROJECT_SOURCE_DIR}/third_party/Csocket/Csocket.*")
 if(csocket_files STREQUAL "")
-	message(FATAL_ERROR " It looks like git submodules are not initialized.\n"
-		" Run: git submodule update --init --recursive")
+	execute_process(COMMAND git status
+		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+		RESULT_VARIABLE git_status_var
+		OUTPUT_QUIET
+		ERROR_QUIET)
+	if(git_status_var)
+		message(FATAL_ERROR
+			" It looks like git submodules are not initialized.\n"
+			" Either this is not a git clone, or you don't have git installed")
+	else()
+		message(FATAL_ERROR
+			" It looks like git submodules are not initialized.\n"
+			" Run: git submodule update --init --recursive")
+	endif()
 endif()
 
 install(DIRECTORY webskins

Would something like this make it more clear?

Tarball with github repo doesn't include files from git submodules. ```diff diff --git a/CMakeLists.txt b/CMakeLists.txt index a772f2db..7534d6d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,8 +242,20 @@ endif() file(GLOB csocket_files LIST_DIRECTORIES FALSE "${PROJECT_SOURCE_DIR}/third_party/Csocket/Csocket.*") if(csocket_files STREQUAL "") - message(FATAL_ERROR " It looks like git submodules are not initialized.\n" - " Run: git submodule update --init --recursive") + execute_process(COMMAND git status + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + RESULT_VARIABLE git_status_var + OUTPUT_QUIET + ERROR_QUIET) + if(git_status_var) + message(FATAL_ERROR + " It looks like git submodules are not initialized.\n" + " Either this is not a git clone, or you don't have git installed") + else() + message(FATAL_ERROR + " It looks like git submodules are not initialized.\n" + " Run: git submodule update --init --recursive") + endif() endif() install(DIRECTORY webskins ``` Would something like this make it more clear? <!-- github-comment-id:386166832 -->
Author
Owner

Yes DarthGandalf ;) Thx!

Yes DarthGandalf ;) Thx! <!-- github-comment-id:387151932 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#832