1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 17:13:12 +02:00

Show better error on ./unrealircd start when .so files are missing.

And refer to https://www.unrealircd.org/docs/FAQ#shared-library-error
This commit is contained in:
Bram Matthys
2022-12-12 09:13:50 +01:00
parent 165639a007
commit b7f2ce9fd8
2 changed files with 22 additions and 7 deletions
+7 -1
View File
@@ -68,7 +68,13 @@ You can help us by testing this release and reporting any issues at https://bugs
[`set:max-unknown-connections-per-ip`](https://www.unrealircd.org/docs/Set_block#set::max-unknown-connections-per-ip)
is now handled by the new module `max-unknown-connections-per-ip`. This module is loaded
by default as well, no changes needed in your configuration file.
* Bump shipped PCRE2 to 10.41, update curl-ca-bundle to 2022-10-11
* Upgrade shipped PCRE2 to 10.41, curl-ca-bundle to 2022-10-11,
on Windows LibreSSL to 3.6.1 and cURL to 7.86.0.
* After people do a major upgrade on their Linux distro, UnrealIRCd may
no longer start due to an `error while loading shared libraries`.
We now print a more helpful message and link to the new
[FAQ entry](https://www.unrealircd.org/docs/FAQ#shared-library-error)
about it.
### Fixes:
* Fix crash when linking. This requires a certain sequence of events: first
+15 -6
View File
@@ -42,15 +42,24 @@ if [ "$1" = "start" ] ; then
fi
@BINDIR@/unrealircd
if [ $? -ne 0 ] ; then
echo "====================================================="
echo "UnrealIRCd failed to start. Check above for possible errors."
echo "If you don't understand the problem, then have a look at our:"
echo "* FAQ (Frequently Asked Questions): https://www.unrealircd.org/docs/FAQ"
echo "* Documentation: https://www.unrealircd.org/docs/"
echo "====================================================="
if [ -r $PID_BACKUP ] ; then
mv -f $PID_BACKUP $PID_FILE
fi
# Try to be helpful...
if ldd @BINDIR@/unrealircd 2>&1|grep -qF '=> not found'; then
echo "========================================================"
echo "UnrealIRCd failed to start due to missing libraries."
echo "Maybe you need to recompile UnrealIRCd? See"
echo "https://www.unrealircd.org/docs/FAQ#shared-library-error"
echo "========================================================"
else
echo "====================================================="
echo "UnrealIRCd failed to start. Check above for possible errors."
echo "If you don't understand the problem, then have a look at our:"
echo "* FAQ (Frequently Asked Questions): https://www.unrealircd.org/docs/FAQ"
echo "* Documentation: https://www.unrealircd.org/docs/"
echo "====================================================="
fi
exit 1
fi
# Now check if we need to create a crash report.