Files
JetCore/compile
T
brad ArantandClaude Sonnet 5 9d965bfd1a Fix jet-2.0 link failure: add missing -lssl
The __imap tag (added for the /email webmail client) calls real
SSL_CTX_*/SSL_connect() functions, which live in libssl - not libcrypto
(a separate, lower-level library providing only crypto primitives).
compile only ever linked -lcrypto, so a build from a completely fresh
checkout fails at the final link step:

  __imap.o: undefined reference to symbol 'SSL_CTX_free@@OPENSSL_3.0.0'

Reproduced building fresh on a brand-new server (nothing else installed
yet) rather than an incremental rebuild against an already-linked
jet-2.0, which is presumably why this went unnoticed - barant.com's own
production jet-2.0 was likely last linked before __imap needed real SSL
session functions, or was patched by hand at the time without this fix
landing in the committed script.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-08 21:32:48 -07:00

32 lines
475 B
Bash
Executable File

#!/bin/bash
for file in *.cpp
do
filename="${file%.*}"
list="$list $filename.o"
echo -n "Compiling $filename..."
g++ -g -c -std=c++23 -I../CoreUtils $file &
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
done
wait
echo -n "Building executable jet-2.0..."
g++ -g -o jet-2.0 $list -std=c++23 -L../CoreUtils -lCoreUtils -lmysqlclient -lssl -lcrypto
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
rm *.o
rm *~