[PR #266] [MERGED] Build using musl #649

Closed
opened 2026-02-27 08:18:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lldap/lldap/pull/266
Author: @martadinata666
Created: 7/18/2022
Status: Merged
Merged: 8/1/2022
Merged by: @nitnelave

Base: mainHead: docker-build-musl


📝 Commits (10+)

  • 1f55bae Build using musl
  • e08fe51 Build using musl
  • e86201d add ca-cert
  • 8a451a8 Merge branch 'docker-build-musl' of github.com:martadinata666/lldap into docker-build-musl
  • 8e6fe79 use custom dev image
  • 0d85743 docs: Update the docker config template to add smtp_encryption
  • ef9ba2b server: Fix extra error message when DB doesn't exist
  • d74fca9 README: Document the build process, add systemd service
  • ef2e64e using script
  • 7312cd5 manual fetch

📊 Changes

4 files changed (+216 additions, -44 deletions)

View changed files

📝 .github/workflows/Dockerfile.ci.alpine (+29 -2)
.github/workflows/Dockerfile.ci.debian (+69 -0)
.github/workflows/Dockerfile.dev (+34 -0)
📝 .github/workflows/docker-build-static.yml (+84 -42)

📄 Description

When amd64 and aarch64 can build fine, armhf error time64.

  1. Should we drop armhf?
  2. Keep using gnu on armhf build, but the email broken if static, non static is fine like always.
  3. Otherwise keep using debian base, until somehow rust sort it out.
= note: /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixCurrentTimeInt64':
          sqlite3.c:(.text.unixCurrentTimeInt64+0x14): undefined reference to `__gettimeofday_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixDlSym':
          sqlite3.c:(.text.unixDlSym+0x8): undefined reference to `__dlsym_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `dotlockLock':
          sqlite3.c:(.text.dotlockLock+0x78): undefined reference to `__utimes_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixCurrentTime':
          sqlite3.c:(.text.unixCurrentTime+0x14): undefined reference to `__gettimeofday_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `localtimeOffset':
          sqlite3.c:(.text.localtimeOffset+0x3ac): undefined reference to `__localtime64_r'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixRandomness':
          sqlite3.c:(.text.unixRandomness+0xec): undefined reference to `__time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x34): undefined reference to `__stat_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x40): undefined reference to `__fstat_time64'
          /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x148): undefined reference to `__lstat_time64'
          collect2: error: ld returned 1 exit status
= help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `lldap` due to previous error
Error: Process completed with exit code 101.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/lldap/lldap/pull/266 **Author:** [@martadinata666](https://github.com/martadinata666) **Created:** 7/18/2022 **Status:** ✅ Merged **Merged:** 8/1/2022 **Merged by:** [@nitnelave](https://github.com/nitnelave) **Base:** `main` ← **Head:** `docker-build-musl` --- ### 📝 Commits (10+) - [`1f55bae`](https://github.com/lldap/lldap/commit/1f55bae256b2ff952cd847f9eec371f7a79d3693) Build using musl - [`e08fe51`](https://github.com/lldap/lldap/commit/e08fe519eccb19eaf6473dbd2ddd9cf96057efe1) Build using musl - [`e86201d`](https://github.com/lldap/lldap/commit/e86201dabb852098c2ff70c4b6ed1aa5a39f10e5) add ca-cert - [`8a451a8`](https://github.com/lldap/lldap/commit/8a451a852d89fa87e7ceb03004ce3d856d00765c) Merge branch 'docker-build-musl' of github.com:martadinata666/lldap into docker-build-musl - [`8e6fe79`](https://github.com/lldap/lldap/commit/8e6fe790f31897f3eb7518f98f3d492d28eaca20) use custom dev image - [`0d85743`](https://github.com/lldap/lldap/commit/0d85743db780ab0562c458a1d41065fedb747ad6) docs: Update the docker config template to add smtp_encryption - [`ef9ba2b`](https://github.com/lldap/lldap/commit/ef9ba2b6bad597b4d103643496d462e064966d45) server: Fix extra error message when DB doesn't exist - [`d74fca9`](https://github.com/lldap/lldap/commit/d74fca924814248dd0543fe5e64d77e70590d742) README: Document the build process, add systemd service - [`ef2e64e`](https://github.com/lldap/lldap/commit/ef2e64ee58b8c3c39d713f88e3764802985e6c26) using script - [`7312cd5`](https://github.com/lldap/lldap/commit/7312cd5b05ed6f04b407d80a01bc3f652f3f5900) manual fetch ### 📊 Changes **4 files changed** (+216 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/Dockerfile.ci.alpine` (+29 -2) ➕ `.github/workflows/Dockerfile.ci.debian` (+69 -0) ➕ `.github/workflows/Dockerfile.dev` (+34 -0) 📝 `.github/workflows/docker-build-static.yml` (+84 -42) </details> ### 📄 Description When amd64 and aarch64 can build fine, armhf error time64. 1. Should we drop armhf? 2. Keep using gnu on armhf build, but the email broken if static, non static is fine like always. 3. Otherwise keep using debian base, until somehow rust sort it out. ``` = note: /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixCurrentTimeInt64': sqlite3.c:(.text.unixCurrentTimeInt64+0x14): undefined reference to `__gettimeofday_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixDlSym': sqlite3.c:(.text.unixDlSym+0x8): undefined reference to `__dlsym_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `dotlockLock': sqlite3.c:(.text.dotlockLock+0x78): undefined reference to `__utimes_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixCurrentTime': sqlite3.c:(.text.unixCurrentTime+0x14): undefined reference to `__gettimeofday_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `localtimeOffset': sqlite3.c:(.text.localtimeOffset+0x3ac): undefined reference to `__localtime64_r' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o): in function `unixRandomness': sqlite3.c:(.text.unixRandomness+0xec): undefined reference to `__time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x34): undefined reference to `__stat_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x40): undefined reference to `__fstat_time64' /opt/arm-linux-musleabihf-cross/bin/../lib/gcc/arm-linux-musleabihf/11.2.1/../../../../arm-linux-musleabihf/bin/ld: /__w/lldap/lldap/target/armv7-unknown-linux-musleabihf/release/deps/liblibsqlite3_sys-627bd68fbc7f1315.rlib(sqlite3.o):(.data.rel.aSyscall+0x148): undefined reference to `__lstat_time64' collect2: error: ld returned 1 exit status = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `lldap` due to previous error Error: Process completed with exit code 101. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:18:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#649
No description provided.