Skip to content

Instantly share code, notes, and snippets.

@johnnyutahh
Last active August 29, 2015 14:27
Show Gist options
  • Save johnnyutahh/da30ee5ae1a5fd27cf90 to your computer and use it in GitHub Desktop.
Save johnnyutahh/da30ee5ae1a5fd27cf90 to your computer and use it in GitHub Desktop.
Aug 16 19:42:52 ~/.../muchsync$ git show --summary
commit 43ed0e7649ae46e43e47b3a1140d4b683df05eb9
Author: David Mazieres <dm@uun.org>
Date: Sun Aug 16 16:22:52 2015 -0700
also work around missing fstatat and fdopendir
Aug 16 19:42:57 ~/.../muchsync$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Aug 16 19:43:00 ~/.../muchsync$
Aug 16 19:43:01 ~/.../muchsync$ make clean
test -z "muchsync" || rm -f muchsync
test -z "*~" || rm -f *~
rm -f *.o
Aug 16 19:43:05 ~/.../muchsync$ ./autogen.sh
Aug 16 19:43:16 ~/.../muchsync$ ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... yes
checking whether C++ compiler accepts ... yes
checking whether C++ compiler accepts -pthread... yes
checking for openat... no
checking for fdopendir... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for sqlite3... yes
checking for libcrypto... yes
checking for xapian-config... /usr/local/bin/xapian-config
checking For st_mtim in struct stat... no
checking For st_mtimespec in struct stat... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
Aug 16 19:43:20 ~/.../muchsync$ make
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT infinibuf.o -MD -MP -MF .deps/infinibuf.Tpo -c -o infinibuf.o infinibuf.cc
mv -f .deps/infinibuf.Tpo .deps/infinibuf.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.cc
In file included from misc.cc:11:
./misc.h:36:17: warning: 'SHA1_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void init() { SHA1_Init(&ctx_); }
^
/usr/include/openssl/sha.h:121:5: note: 'SHA1_Init' has been explicitly marked deprecated here
int SHA1_Init(SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from misc.cc:11:
./misc.h:37:44: warning: 'SHA1_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void update(const void *buf, size_t n) { SHA1_Update (&ctx_, buf, n); }
^
/usr/include/openssl/sha.h:122:5: note: 'SHA1_Update' has been explicitly marked deprecated here
int SHA1_Update(SHA_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
misc.cc:112:3: warning: 'SHA1_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA1_Final (resbuf, &ctx_);
^
/usr/include/openssl/sha.h:123:5: note: 'SHA1_Final' has been explicitly marked deprecated here
int SHA1_Final(unsigned char *md, SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
3 warnings generated.
mv -f .deps/misc.Tpo .deps/misc.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT muchsync.o -MD -MP -MF .deps/muchsync.Tpo -c -o muchsync.o muchsync.cc
In file included from muchsync.cc:12:
./misc.h:36:17: warning: 'SHA1_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void init() { SHA1_Init(&ctx_); }
^
/usr/include/openssl/sha.h:121:5: note: 'SHA1_Init' has been explicitly marked deprecated here
int SHA1_Init(SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from muchsync.cc:12:
./misc.h:37:44: warning: 'SHA1_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void update(const void *buf, size_t n) { SHA1_Update (&ctx_, buf, n); }
^
/usr/include/openssl/sha.h:122:5: note: 'SHA1_Update' has been explicitly marked deprecated here
int SHA1_Update(SHA_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
2 warnings generated.
mv -f .deps/muchsync.Tpo .deps/muchsync.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT notmuch_db.o -MD -MP -MF .deps/notmuch_db.Tpo -c -o notmuch_db.o notmuch_db.cc
notmuch_db.cc:237:51: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
throw runtime_error ("notmuch exit status " + status);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
notmuch_db.cc:237:51: note: use array indexing to silence this warning
throw runtime_error ("notmuch exit status " + status);
^
& [ ]
1 warning generated.
mv -f .deps/notmuch_db.Tpo .deps/notmuch_db.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT protocol.o -MD -MP -MF .deps/protocol.Tpo -c -o protocol.o protocol.cc
In file included from protocol.cc:18:
./misc.h:36:17: warning: 'SHA1_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void init() { SHA1_Init(&ctx_); }
^
/usr/include/openssl/sha.h:121:5: note: 'SHA1_Init' has been explicitly marked deprecated here
int SHA1_Init(SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from protocol.cc:18:
./misc.h:37:44: warning: 'SHA1_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void update(const void *buf, size_t n) { SHA1_Update (&ctx_, buf, n); }
^
/usr/include/openssl/sha.h:122:5: note: 'SHA1_Update' has been explicitly marked deprecated here
int SHA1_Update(SHA_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
protocol.cc:90:7: warning: 'RAND_pseudo_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if (RAND_pseudo_bytes ((unsigned char *) &v, sizeof (v)) == -1)
^
/usr/include/openssl/rand.h:105:6: note: 'RAND_pseudo_bytes' has been explicitly marked deprecated here
int RAND_pseudo_bytes(unsigned char *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
3 warnings generated.
mv -f .deps/protocol.Tpo .deps/protocol.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT sqlstmt.o -MD -MP -MF .deps/sqlstmt.Tpo -c -o sqlstmt.o sqlstmt.cc
mv -f .deps/sqlstmt.Tpo .deps/sqlstmt.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT sql_db.o -MD -MP -MF .deps/sql_db.Tpo -c -o sql_db.o sql_db.cc
In file included from sql_db.cc:11:
./misc.h:36:17: warning: 'SHA1_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void init() { SHA1_Init(&ctx_); }
^
/usr/include/openssl/sha.h:121:5: note: 'SHA1_Init' has been explicitly marked deprecated here
int SHA1_Init(SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from sql_db.cc:11:
./misc.h:37:44: warning: 'SHA1_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void update(const void *buf, size_t n) { SHA1_Update (&ctx_, buf, n); }
^
/usr/include/openssl/sha.h:122:5: note: 'SHA1_Update' has been explicitly marked deprecated here
int SHA1_Update(SHA_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
sql_db.cc:72:7: warning: 'RAND_pseudo_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if (RAND_pseudo_bytes ((unsigned char *) &self, sizeof (self)) == -1
^
/usr/include/openssl/rand.h:105:6: note: 'RAND_pseudo_bytes' has been explicitly marked deprecated here
int RAND_pseudo_bytes(unsigned char *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
3 warnings generated.
mv -f .deps/sql_db.Tpo .deps/sql_db.Po
g++ -DPACKAGE_NAME=\"muchsync\" -DPACKAGE_TARNAME=\"muchsync\" -DPACKAGE_VERSION=\"2\" -DPACKAGE_STRING=\"muchsync\ 2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"muchsync\" -DVERSION=\"2\" -DST_MTIM=st_mtimespec -I. -I/usr/local/Cellar/sqlite/3.8.10.1/include -I/usr/local/Cellar/xapian/1.2.19/include -g -O2 -std=c++11 -Wall -pthread -MT xapian_sync.o -MD -MP -MF .deps/xapian_sync.Tpo -c -o xapian_sync.o xapian_sync.cc
In file included from xapian_sync.cc:15:
./misc.h:36:17: warning: 'SHA1_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void init() { SHA1_Init(&ctx_); }
^
/usr/include/openssl/sha.h:121:5: note: 'SHA1_Init' has been explicitly marked deprecated here
int SHA1_Init(SHA_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from xapian_sync.cc:15:
./misc.h:37:44: warning: 'SHA1_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
void update(const void *buf, size_t n) { SHA1_Update (&ctx_, buf, n); }
^
/usr/include/openssl/sha.h:122:5: note: 'SHA1_Update' has been explicitly marked deprecated here
int SHA1_Update(SHA_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
2 warnings generated.
mv -f .deps/xapian_sync.Tpo .deps/xapian_sync.Po
g++ -g -O2 -std=c++11 -Wall -pthread -o muchsync infinibuf.o misc.o muchsync.o notmuch_db.o protocol.o sqlstmt.o sql_db.o xapian_sync.o -L/usr/local/Cellar/sqlite/3.8.10.1/lib -lsqlite3 -lcrypto -lz -L/usr/local/Cellar/xapian/1.2.19/lib -lxapian -lz -lnotmuch
clang: warning: argument unused during compilation: '-pthread'
Aug 16 19:43:41 ~/.../muchsync$
Aug 16 19:43:43 ~/.../muchsync$ make install
/usr/local/bin/gmkdir -p '/usr/local/bin'
/usr/local/bin/ginstall -c muchsync '/usr/local/bin'
/usr/local/bin/gmkdir -p '/usr/local/share/man/man1'
/usr/local/bin/ginstall -c -m 644 muchsync.1 '/usr/local/share/man/man1'
Aug 16 19:43:46 ~/.../muchsync$ which muchsync
/usr/local/bin/muchsync
Aug 16 19:43:52 ~/.../muchsync$ muchsync --version
muchsync 2
Aug 16 19:43:57 ~/.../muchsync$ muchsync --help
usage: muchsync
muchsync server [server-options]
muchsync --init maildir server [server-options]
Additional options:
-C file Specify path to notmuch config file
-F Disable optimizations and do full maildir scan
-v Increase verbosity
-r path Specify path to notmuch executable on server
-s ssh-cmd Specify ssh command and arguments
--config file Specify path to notmuch config file (same as -C)
--nonew Do not run notmuch new first
--noup[load] Do not upload changes to server
--upbg Download mail in forground, then upload in background
--self Print local replica identifier and exit
--version Print version number and exit
--help Print usage
Aug 16 19:44:00 ~/.../muchsync$
Aug 17 12:42:17 ~/.../muchsync$ echo $sqlite3_LIBS
-L/usr/local/Cellar/sqlite/3.8.10.1/lib -lsqlite3
mba2mme Aug 17 12:42:18 ~/.../muchsync$ echo $sqlite3_CFLAGS
-I/usr/local/Cellar/sqlite/3.8.10.1/include
Aug 17 12:42:24 ~/.../muchsync$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F1077
Aug 17 12:42:25 ~/.../muchsync$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment