skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

[Devuan] Compilation fails: lagrange/src/app.c:772:17: error: implicit declaration of function ‘deserialize_StringArray' #650

Closed Cicorione closed 7 months ago

Cicorione commented 7 months ago

Hi Skyjake,

Compilation fails with:

git log
commit 92190836356c43238e29856629e47d80e82dd7e3 (HEAD -> release, tag: v1.17.6, origin/release)
Author: Jaakko Keränen <jaakko.keranen@iki.fi>
Date:   Tue Jan 16 11:50:45 2024 +0200

Updated AppData for 1.17.6

This is where it fails:

/home/Cicorione/Git/lagrange/src/app.c: In function ‘loadState_App_’:
/home/Cicorione/Git/lagrange/src/app.c:772:17: error: implicit declaration of function ‘deserialize_StringArray’; did you mean ‘deserialize_String’? [-Werror=implicit-function-declaration]
  772 |                 deserialize_StringArray(d->recentlySubmittedInput, stream_File(f));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                 deserialize_String
/home/Cicorione/Git/lagrange/src/app.c: In function ‘saveState_App_’:
/home/Cicorione/Git/lagrange/src/app.c:924:9: error: implicit declaration of function ‘serialize_StringArray’; did you mean ‘resize_StringArray’? [-Werror=implicit-function-declaration]
  924 |         serialize_StringArray(d->recentlySubmittedInput, stream_File(f));
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         resize_StringArray
cc1: some warnings being treated as errors
gmake[2]: *** [CMakeFiles/app.dir/build.make:90: CMakeFiles/app.dir/src/app.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:128: CMakeFiles/app.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

My distro:

Distributor ID: Devuan
Description:    Devuan GNU/Linux 5 (daedalus)
Release:    5
Codename:   daedalus
Linux a11bk 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

Thanks 🙏

skyjake commented 7 months ago

The error suggests you are using the wrong version of the_Foundation. The required version is the_Foundation v1.7.0.

If you are building from the repository, the_Foundation is included as a git submodule. It is also included in source tarballs.

Cicorione commented 7 months ago

Thank you very much, I downloaded the_Foundation as submodule with GIT; how can I pull it (with GIT) within the main Lagrange repo?

Thanks... 🙏

Cicorione commented 7 months ago

Ok I resolved. I deleted the directory lib/the_Foundation and ran this command: git pull --recurse-submodules and created the binary!

Thank you very much! 🙏