From: Jjgod Jiang <gzjjgod@gmail.com>
To: notmuch@notmuchmail.org
Subject: Mac OS X/Darwin compatibility issues
Date: Wed, 18 Nov 2009 11:50:17 +0800 [thread overview]
Message-ID: <ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com> (raw)
Hi,
When I tried to compile notmuch under Mac OS X 10.6, several issues
arisen:
1. g++ reports 'warning: command line option "-Wmissing-declarations"
is valid for C/ObjC but not for C++'
2.
notmuch-reply.c: In function ‘address_is_users’:
notmuch-reply.c:87: warning: passing argument 2 of
‘notmuch_config_get_user_other_email’ from incompatible pointer type
That's due to the size incompatibility of 'unsigned int' and 'size_t'
(size_t is uint64_t in Mac OS X).
3. Several errors about missing GNU extensions like getline() and strndup():
warning: implicit declaration of function ‘getline’
error: ‘strndup’ was not declared in this scope
We can implement these with fgets() and strncpy() though.
- Jiang
next reply other threads:[~2009-11-18 3:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 3:50 Jjgod Jiang [this message]
2009-11-18 5:45 ` Mac OS X/Darwin compatibility issues Alexander Botero-Lowry
2009-11-18 6:14 ` Jjgod Jiang
2009-11-18 6:19 ` Alexander Botero-Lowry
2009-11-18 22:27 ` Carl Worth
2009-11-18 23:45 ` Stewart Smith
2009-11-19 0:24 ` Alexander Botero-Lowry
2009-11-19 5:42 ` Stewart Smith
2009-11-19 11:34 ` Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com \
--to=gzjjgod@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).