Editing
Main Page
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== stalwart mail === static binary Remove jemallocator Dependency: In the crates/main/Cargo.toml file, locate and remove or comment out the following lines: <pre>[target.'cfg(not(target_env = "msvc"))'.dependencies] jemallocator = "0.5.0"</pre> Modify main.rs to Use the System Allocator: In crates/main/src/main.rs, remove or comment out the lines that set jemalloc as the global allocator: <pre>#[cfg(not(target_env = "msvc"))] use jemallocator::Jemalloc; #[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc;</pre> <pre> pkg install rust gmake rocksdb RUSTFLAGS="-C target-feature=+crt-static -C link-arg=-lelf" \ PKG_CONFIG_ALL_STATIC=1 \ cargo build --release --target x86_64-unknown-freebsd Compiling mail-server v0.11.7 (/root/mail-server/crates/main) Finished `release` profile [optimized] target(s) in 12m 42s cargo build --release -p mail-server --no-default-features --features "sqlite rocks enterprise" ; cargo build --release -p stalwart-cli </pre> <pre> note: ld: error: cannot open Scrt1.o: No such file or directory ld: error: cannot open crti.o: No such file or directory ld: error: cannot open crtbeginS.o: No such file or directory </pre> <pre> # tar tf base.txz | grep Scrt ./usr/lib/Scrt1.o </pre> <pre> warning=zstd/lib/legacy/zstd_v07.c:13 :10: fatal error: 'stddef.h' file not found </pre> <pre> cd / tar xpvf ~/base.txz usr/include ldd no -lgcc FreeBSD-libcompiler_rt-dev-14.2p3 </pre>
Summary:
Please note that all contributions to pega.life may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Pega.life:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Main Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information