[PATCH] adds getline and getdelim to notmuch.sym if not provided by OS

Matthias Guedemann matthias.guedemann at googlemail.com
Tue Aug 30 05:56:50 PDT 2011


not hopefully a correctly formatted patch for:

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 this adds 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.

---
 lib/gen-version-script.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index f71afec..3ee9c69 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"
-- 
1.7.5.4


More information about the notmuch mailing list