aboutsummaryrefslogtreecommitdiff
path: root/91/index.md
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-09-28 20:26:15 +0200
committerRodrigo <rodarima@gmail.com>2025-09-28 23:10:55 +0200
commitfb510ea86be5ceb9e91573890242581fdbd77ad8 (patch)
treed819fe40683592008d136727f5a0b03e48dc1164 /91/index.md
Initial versionHEADmain
Diffstat (limited to '91/index.md')
-rw-r--r--91/index.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/91/index.md b/91/index.md
new file mode 100644
index 0000000..43e06bf
--- /dev/null
+++ b/91/index.md
@@ -0,0 +1,41 @@
+Title: Building under Termux half-fails
+Author: Usinganame
+Created: Sun, 03 Mar 2024 17:10:42 +0000
+State: closed
+
+When running make, it generates various warnings and an error. Apparently it has an undeclared function "bzero". It still compiles though, the binary is in the src/ directory and it's runnable. It works for the most part except for downloads.
+
+I tried to fix it myself by putting
+`#include <strings.h>`
+Into dpid.c.
+That still doesn't work. When I ran configure it stated that I have strings.h, so why won't it work?
+
+Here is the specific error generated by make
+![Screenshot_20240303_110830_Termux](https://github.com/dillo-browser/dillo/assets/141479854/ac825b88-358a-41cc-bad6-86e259cbc972)
+
+
+--%--
+From: rodarima
+Date: Sun, 03 Mar 2024 17:21:28 +0000
+
+Good catch.
+
+The `bzero()` function has been deprecated in POSIX.1-2001 and removed from POSIX.1-2008, we shouldn't be using it.
+
+Replace bzero() call in line 82 by:
+
+```c
+memset(&serv_addr, 0, sizeof(serv_addr));
+```
+
+There is another one in line 101, which should be:
+
+```c
+memset(buffer, 0, 256);
+```
+
+Let's see if that fixes it.
+
+> It still compiles though, the binary is in the src/ directory and it's runnable.
+
+Well, it compiles first src/dillo, but fails to build the dpid program (and stops) which is used to comunicate with the plugins. \ No newline at end of file