Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BF0E0429E30 for ; Tue, 30 Aug 2011 02:27:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4X1A4jYzdVBX for ; Tue, 30 Aug 2011 02:27:57 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2259B429E28 for ; Tue, 30 Aug 2011 02:27:56 -0700 (PDT) Received: by bkd1 with SMTP id 1so5407080bkd.26 for ; Tue, 30 Aug 2011 02:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=JVbaVC09+BmFJdEGZbB4WL9UcEKAeIpamZ/PG5Ynrwk=; b=NeqViZT+03a2mKc90eEHp1jxtpx0BeCQdfXehbuUqWnEEXMfHQVn3XItzDO65qIqaA m7yZL7X50l5pKXzxwTop+uSTtnnlDowdKZLqdK47pbN2H5FYqbUzudJ5e9+RZGyT9/S7 Xq9KfAuYQMrIJcQTfR5Vzt7nsduuKhKeBB4nw= Received: by 10.204.137.193 with SMTP id x1mr2825327bkt.215.1314696475675; Tue, 30 Aug 2011 02:27:55 -0700 (PDT) Received: from localhost (pc44es141.cs.uni-magdeburg.de [141.44.32.169]) by mx.google.com with ESMTPS id o12sm838725bkj.9.2011.08.30.02.27.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Aug 2011 02:27:55 -0700 (PDT) From: Matthias Guedemann To: notmuch@notmuchmail.org Subject: add "getline" and "getdelim" to notmuch.sym on systems lacking it User-Agent: Notmuch/0.7-47-ga9e04d3 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 30 Aug 2011 11:27:54 +0200 Message-ID: <87y5yb1c6d.fsf@pc44es141.cs.uni-magdeburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 09:27:57 -0000 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"