hi all, I compiled notmuch on OpenBSD and stumbled onto the usage of the GNU specific option "--defined" to nm. I replaced this with calling nm without options and then filtering the output with grep tried 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 ec80196..f71afec 100644 --- a/lib/gen-version-script.sh +++ b/lib/gen-version-script.sh @@ -12,7 +12,7 @@ HEADER=$1 shift printf '{\nglobal:\n' -nm --defined $* | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \ +nm $* | grep "^[0-f][0-f]*" | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \ while read sym; do demangled=$(c++filt $sym) case $demangled in