* add "getline" and "getdelim" to notmuch.sym on systems lacking it
@ 2011-08-30 9:27 Matthias Guedemann
0 siblings, 0 replies; only message in thread
From: Matthias Guedemann @ 2011-08-30 9:27 UTC (permalink / raw)
To: notmuch
hi all,
OpenBSD does not provide the getline function. This is correctly
detected in the configure script, but the version script only emits the
Xapian*Error and notmuch_... symbols leading to undefined symbol errors
for getline and getdelim.
Therefore I added two lines to gen-version-script.sh to also emit
getline and getdelim if needed, tested on OpenBSD 5.0-current and Debian
on current git head.
regards
Matthias
diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index f71afec..d21a723 100644
--- a/lib/gen-version-script.sh
+++ b/lib/gen-version-script.sh
@@ -23,5 +23,7 @@ while read sym; do
;;
esac
done
+nm $* | grep "^[0-f][0-f]*.*T" | awk '$3 ~ "getline" {print $3 ";"}'
+nm $* | grep "^[0-f][0-f]*.*T" | awk '$3 ~ "getdelim" {print $3 ";"}'
sed -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
printf "local: *;\n};\n"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-30 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 9:27 add "getline" and "getdelim" to notmuch.sym on systems lacking it Matthias Guedemann
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).