grke / burp

burp - backup and restore program
http://burp.grke.net
Other
484 stars 77 forks source link

Deprecation warnings on OS X Mavericks #199

Closed saintger closed 10 years ago

saintger commented 10 years ago

Hello,

I am attaching the compilation report of Burp 1.3.48 on OS X Mavericks. The warnings may be interesting for you.

checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for true... /usr/bin/true
checking for false... /usr/bin/false
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for openssl... /usr/bin/openssl
checking for pkg-config... pkg-config
checking for pidof... pidof
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for awk... /usr/bin/awk
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin13.1.0 file names to x86_64-apple-darwin13.1.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin13.1.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking for Operating System Distribution... done
checking whether make sets $(MAKE)... yes
checking for a thread-safe mkdir -p... autoconf/install-sh -c -d
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... yes
checking for CFLocaleCopyCurrent... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for socket... yes
using libc's socket
checking for IPv6 support... yes
checking for OpenSSL... checking for EVP_PKEY_encrypt_old in -lssl... no
yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for X... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking for unistd.h... (cached) yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking mtio.h usability... no
checking mtio.h presence... no
checking for mtio.h... no
checking sys/mtio.h usability... no
checking sys/mtio.h presence... no
checking for sys/mtio.h... no
checking sys/tape.h usability... no
checking sys/tape.h presence... no
checking for sys/tape.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for utime.h... yes
checking for socklen_t... yes
checking for ioctl_req_t... yes
checking for typeof... no
checking for an ANSI C-conforming const... yes
checking how to get filesystem type... 4.4BSD/OSF1
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking return type of signal handlers... void
checking for type of signal functions... posix
checking for mode_t... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking for pid_t... yes
checking for off_t... yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking for ino_t... yes
checking for dev_t... yes
checking for daddr_t... yes
checking for major_t... no
checking for minor_t... no
checking for ssize_t... yes
checking for struct stat.st_blocks... (cached) yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for an ANSI C-conforming const... (cached) yes
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 8
checking size of long long int... 8
checking size of int *... 8
checking for u_int type... yes
checking for intmax_t type... yes
checking for u_intmax_t type... no
checking for intXX_t types... yes
checking for int64_t type... yes
checking for u_intXX_t types... yes
checking for u_int64_t types... yes
checking for fork... yes
checking for getcwd... yes
checking for gethostname... yes
checking for getpid... yes
checking for gettimeofday... yes
checking for setpgid... yes
checking for setpgrp... yes
checking for setsid... yes
checking for strerror... yes
checking for strncmp... yes
checking for strncpy... yes
checking for vfprintf... yes
checking for lockf... yes
checking for fchdir... yes
checking for strtoll... yes
checking for posix_fadvise... no
checking for fdatasync... yes
checking for chflags... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for gethostid... yes
checking for fseeko... yes
checking for va_copy... yes,
checking for localtime_r... yes
checking for readdir_r... yes
checking for strerror_r... yes
checking for gethostbyname_r... no
checking for gethostbyname_r... (cached) no
checking for gethostbyname_r in -lnsl... no
checking for gethostbyname_r in -lresolv... no
checking for inet_pton... yes
checking for inet_ntop... yes
checking for gethostbyname2... yes
checking for struct sockaddr has a sa_len field... yes
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for working alloca.h... yes
checking for alloca... yes
checking for library containing getmntent... no
checking for getmntinfo... yes
checking whether closedir returns void... no
checking for gettext in -lintl... no
checking for getpwnam in -lsun... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking for crypt in -lcrypt... no
checking uthash.h usability... no
checking uthash.h presence... no
checking for uthash.h... no
No uthash library. Will use own uthash/uthash.h
checking librsync.h usability... yes
checking librsync.h presence... yes
checking for librsync.h... yes
checking for rs_delta_begin in -lrsync... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for curs_set in -lncurses... yes
checking afs/stds.h usability... no
checking afs/stds.h presence... no
checking for afs/stds.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for acl_get_file... yes
checking sys/extattr.h usability... no
checking sys/extattr.h presence... no
checking for sys/extattr.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for extattr_get_link... no
checking for extattr_set_link... no
checking for extattr_list_link... no
checking for extattr_get_file... no
checking for extattr_set_file... no
checking for extattr_list_file... no
checking sys/xattr.h usability... yes
checking sys/xattr.h presence... yes
checking for sys/xattr.h... yes
checking for llistxattr... no
checking for lgetxattr... no
checking for lsetxattr... no
checking for listxattr... yes
checking for getxattr... yes
checking for setxattr... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking for prctl... no
checking for setreuid... yes
checking for cap_set_proc in -lcap... no
configure: creating ./config.status
config.status: creating autoconf/Make.common
config.status: creating Makefile
config.status: creating manpages/Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: executing default commands
Doing make of dependencies
==>Entering directory /tmp/burp/burp-1.3.48/src
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
==>Entering directory /tmp/burp/burp-1.3.48/manpages
make[1]: Nothing to be done for `depend'.
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Configuration on Mon May 12 03:33:56 CEST 2014:

   Host:            x86_64-apple-darwin13.1.0 -- osx 
   Burp version:        Burp 1.3.48
   Source code location:    .
   Install binaries:        /usr/sbin
   Install config files:    /etc/burp
   Man directory:       ${datarootdir}/man
   C Compiler:          gcc
   C++ Compiler:        g++
   Compiler flags:       -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti
   Linker flags:         
   Libraries:           
   Static:          

   ncurses:         yes
   openssl:         yes
   zlib:            yes
   librsync:            yes
   acl:             yes
   xattr:           yes
   ipv6:            yes

==>Entering directory /tmp/burp/burp-1.3.48/src
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  acl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  asyncio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
asyncio.c:103:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_clear_error();
        ^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
asyncio.c:104:4: warning: 'SSL_read' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        r=SSL_read(ssl, readbuf+readbuflen, readbufmaxsize-readbuflen);
          ^
/usr/include/openssl/ssl.h:1493:6: note: 'SSL_read' declared here
int     SSL_read(SSL *ssl,void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:106:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        switch(SSL_get_error(ssl, r))
               ^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int     SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:116:3: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_shutdown(ssl);
                ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:183:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_clear_error();
        ^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
asyncio.c:184:4: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        w=SSL_write(ssl, writebuf, writebuflen);
          ^
/usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here
int     SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:186:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        switch(SSL_get_error(ssl, w))
               ^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int     SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:282:10: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(r=SSL_shutdown(ssl)))
                       ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:286:6: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        r=SSL_shutdown(ssl);
                          ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:318:3: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_free(ssl);
                ^
/usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here
void    SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
10 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  attribs.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  auth_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  auth_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  autoupgrade_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  autoupgrade_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase1_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase2_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
backup_phase2_client.c:94:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'size_t *' (aka 'unsigned long *') [-Wnon-literal-null-conversion]
                if(async_rw(NULL, NULL, '\0', '\0', NULL, &wlen))
                                        ^~~~
backup_phase2_client.c:108:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &(infb->md5)))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
2 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase1_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase2_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase3_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase4_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  base64.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  berrno.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  bfile.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ca_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ca_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
client.c:217:3: warning: 'SSL_CTX_set_session_id_context' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CTX_set_session_id_context(ctx,
                ^
/usr/include/openssl/ssl.h:1478:5: note: 'SSL_CTX_set_session_id_context' declared here
int     SSL_CTX_set_session_id_context(SSL_CTX *ctx,const unsigned char *sid_ctx,
        ^
client.c:227:12: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(ssl=SSL_new(ctx))
                         ^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL *   SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:228:15: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(sbio=BIO_new_socket(rfd, BIO_NOCLOSE)))
                            ^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
client.c:230:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                           ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
client.c:230:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                        ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
client.c:235:3: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_set_bio(ssl, sbio, sbio);
                ^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void    SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:236:6: warning: 'SSL_connect' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(SSL_connect(ssl)<=0)
                   ^
/usr/include/openssl/ssl.h:1492:6: note: 'SSL_connect' declared here
int     SSL_connect(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:238:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                           ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
client.c:238:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                        ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
9 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  client_vss.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  conf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  counter.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  current_backups_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  delete_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  delete_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  dpth.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  extrameta.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  find.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  forkchild.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  handy.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
handy.c:253:6: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!EVP_CipherUpdate(ctx, outbuf, (int *)outlen, inbuf, (int)inlen))
            ^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int     EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
        ^
handy.c:263:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(md5, outbuf, *outlen))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:277:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        const char *enc_iv="[lkd.$G<A3>"; // never change this.
                                   ^~~~
handy.c:286:2: warning: 'EVP_CIPHER_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        EVP_CIPHER_CTX_init(ctx);
        ^
/usr/include/openssl/evp.h:636:6: note: 'EVP_CIPHER_CTX_init' declared here
void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
handy.c:287:30: warning: 'EVP_bf_cbc' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
                                    ^
/usr/include/openssl/evp.h:745:19: note: 'EVP_bf_cbc' declared here
const EVP_CIPHER *EVP_bf_cbc(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                  ^
handy.c:287:7: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
             ^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int     EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
        ^
handy.c:293:2: warning: 'EVP_CIPHER_CTX_set_key_length' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        EVP_CIPHER_CTX_set_key_length(ctx, strlen(encryption_password));
        ^
/usr/include/openssl/evp.h:640:5: note: 'EVP_CIPHER_CTX_set_key_length' declared here
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:296:6: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!EVP_CipherInit_ex(ctx, NULL, NULL,
            ^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int     EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
        ^
handy.c:406:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:468:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                if(strm.avail_in<0)
                   ~~~~~~~~~~~~~^~
handy.c:479:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, strm.avail_in))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:569:8: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!EVP_CipherFinal_ex(enc_ctx,
                            ^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int     EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
handy.c:579:15: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                          else if(!MD5_Update(&md5, eoutbuf, eoutlen))
                                   ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:593:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                EVP_CIPHER_CTX_cleanup(enc_ctx);
                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:600:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &md5))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:654:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:674:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, metadata, s))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:767:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, buf, s))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:798:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &md5))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:933:43: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                        if((wl=write(status_wfd, w, strlen(w)))<0)
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
20 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  incexc_recv.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  incexc_send.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  list_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  list_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
list_server.c:165:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  lock.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  log.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  msg.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
msg.c:238:5: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                EVP_CIPHER_CTX_cleanup(enc_ctx);
                                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
msg.c:283:12: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                          if(!EVP_CipherUpdate(enc_ctx,
                                              ^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int     EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
        ^
msg.c:317:10: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                        if(!EVP_CipherFinal_ex(enc_ctx,
                                            ^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int     EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
msg.c:372:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                EVP_CIPHER_CTX_cleanup(enc_ctx);
                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
4 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  prepend.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  prog.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  regexp.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  restore_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  restore_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
restore_server.c:208:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:229:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, b))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:255:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, b))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:270:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
4 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  rs_buf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
rs_buf.c:110:9: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
    if(!MD5_Init(&(pf->md5)))
        ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
rs_buf.c:257:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
            if(!MD5_Update(&(fb->md5), fb->buf, len))
                ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
rs_buf.c:286:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
            if(!MD5_Update(&(fb->md5), fb->buf, len))
                ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
3 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  sbuf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
server.c:401:51: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                if((len=readlink(working, real, sizeof(real)-1))<0)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
server.c:654:58: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if((len=readlink(working, realwork, sizeof(realwork)-1))<0)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
server.c:1606:10: warning: if statement has empty body [-Wempty-body]
                if(buf); free(buf); buf=NULL;
                       ^
server.c:1606:10: note: put the semicolon on a separate line to silence this warning
server.c:1645:12: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(sbio=BIO_new_socket(*cfd, BIO_NOCLOSE))
                  ^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
server.c:1646:13: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          || !(ssl=SSL_new(ctx)))
                   ^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL *   SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1652:2: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_set_bio(ssl, sbio, sbio);
        ^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void    SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1658:2: warning: 'SSL_set_verify' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_set_verify(ssl, SSL_VERIFY_PEER
        ^
/usr/include/openssl/ssl.h:1384:6: note: 'SSL_set_verify' declared here
void    SSL_set_verify(SSL *s, int mode,
        ^
server.c:1661:10: warning: 'SSL_accept' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if((ret=SSL_accept(ssl))<=0)
                ^
/usr/include/openssl/ssl.h:1491:6: note: 'SSL_accept' declared here
int     SSL_accept(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1664:22: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                   ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
server.c:1664:3: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
10 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ssl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ssl.c:14:2: warning: 'BIO_printf' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_printf(bio_err, "%s", buf);
        ^
/usr/include/openssl/bio.h:707:5: note: 'BIO_printf' declared here
int BIO_printf(BIO *bio, const char *format, ...)
    ^
ssl.c:15:2: warning: 'ERR_print_errors' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_print_errors(bio_err);
        ^
/usr/include/openssl/err.h:290:6: note: 'ERR_print_errors' declared here
void ERR_print_errors(BIO *bp) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:24:11: warning: 'BIO_new_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio=BIO_new_file(conf->ssl_dhfile, "r")))
                 ^
/usr/include/openssl/bio.h:584:6: note: 'BIO_new_file' declared here
BIO *BIO_new_file(const char *filename, const char *mode) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:31:2: warning: 'BIO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free(bio);
        ^
/usr/include/openssl/bio.h:593:5: note: 'BIO_free' declared here
int     BIO_free(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:32:5: warning: 'SSL_CTX_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(SSL_CTX_set_tmp_dh(ctx, ret)<0)
           ^
/usr/include/openssl/ssl.h:1319:2: note: expanded from macro 'SSL_CTX_set_tmp_dh'
        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
        ^
/usr/include/openssl/ssl.h:1498:6: note: 'SSL_CTX_ctrl' declared here
long    SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:53:3: warning: 'SSL_library_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_library_init();
                ^
/usr/include/openssl/ssl.h:1553:5: note: 'SSL_library_init' declared here
int SSL_library_init(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:54:3: warning: 'SSL_load_error_strings' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_load_error_strings();
                ^
/usr/include/openssl/ssl.h:1416:6: note: 'SSL_load_error_strings' declared here
void    SSL_load_error_strings(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:57:11: warning: 'BIO_new_fp' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                bio_err=BIO_new_fp(stderr, BIO_NOCLOSE);
                        ^
/usr/include/openssl/bio.h:585:6: note: 'BIO_new_fp' declared here
BIO *BIO_new_fp(FILE *stream, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:68:8: warning: 'SSL_CTX_use_certificate_chain_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_use_certificate_chain_file(ctx, conf->ssl_cert))
              ^
/usr/include/openssl/ssl.h:1403:5: note: 'SSL_CTX_use_certificate_chain_file' declared here
int     SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* PEM type */
        ^
ssl.c:75:2: warning: 'SSL_CTX_set_default_passwd_cb' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_CTX_set_default_passwd_cb(ctx, password_cb);
        ^
/usr/include/openssl/ssl.h:1472:6: note: 'SSL_CTX_set_default_passwd_cb' declared here
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:84:8: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_use_PrivateKey_file(ctx,ssl_key,SSL_FILETYPE_PEM))
              ^
/usr/include/openssl/ssl.h:1401:5: note: 'SSL_CTX_use_PrivateKey_file' declared here
int     SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:92:8: warning: 'SSL_CTX_load_verify_locations' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_load_verify_locations(ctx, conf->ssl_cert_ca, 0))
              ^
/usr/include/openssl/ssl.h:1571:5: note: 'SSL_CTX_load_verify_locations' declared here
int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
    ^
ssl.c:108:21: warning: 'SSLv23_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        meth=(SSL_METHOD *)SSLv23_method();
                           ^
/usr/include/openssl/ssl.h:1515:13: note: 'SSLv23_method' declared here
SSL_METHOD *SSLv23_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;  /* SSLv3 but can rollback to v2 */
            ^
ssl.c:109:17: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ctx=(SSL_CTX *)SSL_CTX_new(meth);
                       ^
/usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here
SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
         ^
ssl.c:114:3: warning: 'SSL_CTX_set_cipher_list' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CTX_set_cipher_list(ctx, conf->ssl_ciphers);
                ^
/usr/include/openssl/ssl.h:1345:5: note: 'SSL_CTX_set_cipher_list' declared here
int     SSL_CTX_set_cipher_list(SSL_CTX *,const char *str) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:122:2: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_CTX_free(ctx);
        ^
/usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here
void    SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:155:6: warning: 'X509_NAME_entry_count' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        n = X509_NAME_entry_count (x509);
            ^
/usr/include/openssl/x509.h:1097:7: note: 'X509_NAME_entry_count' declared here
int             X509_NAME_entry_count(X509_NAME *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:158:12: warning: 'X509_NAME_get_entry' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(ent=X509_NAME_get_entry (x509, i))
                         ^
/usr/include/openssl/x509.h:1108:18: note: 'X509_NAME_get_entry' declared here
X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                 ^
ssl.c:159:13: warning: 'X509_NAME_ENTRY_get_object' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(fn=X509_NAME_ENTRY_get_object(ent))
                          ^
/usr/include/openssl/x509.h:1129:15: note: 'X509_NAME_ENTRY_get_object' declared here
ASN1_OBJECT *   X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:160:14: warning: 'X509_NAME_ENTRY_get_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(val=X509_NAME_ENTRY_get_data(ent))
                           ^
/usr/include/openssl/x509.h:1130:15: note: 'X509_NAME_ENTRY_get_data' declared here
ASN1_STRING *   X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:161:16: warning: 'OBJ_obj2nid' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || (fn_nid=OBJ_obj2nid(fn))==NID_undef
                             ^
/usr/include/openssl/objects.h:1009:6: note: 'OBJ_obj2nid' declared here
int             OBJ_obj2nid(const ASN1_OBJECT *o) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:162:17: warning: 'OBJ_nid2sn' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(objbuf=OBJ_nid2sn(fn_nid)))
                              ^
/usr/include/openssl/objects.h:1008:14: note: 'OBJ_nid2sn' declared here
const char *    OBJ_nid2sn(int n) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:165:6: warning: 'ASN1_STRING_to_UTF8' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(ASN1_STRING_to_UTF8(&buf, val)<=0) continue;
                   ^
/usr/include/openssl/asn1.h:981:5: note: 'ASN1_STRING_to_UTF8' declared here
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:178:3: warning: 'CRYPTO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                OPENSSL_free (buf);
                ^
/usr/include/openssl/crypto.h:375:28: note: expanded from macro 'OPENSSL_free'
#define OPENSSL_free(addr)      CRYPTO_free(addr)
                                ^
/usr/include/openssl/crypto.h:480:6: note: 'CRYPTO_free' declared here
void CRYPTO_free(void *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:188:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                             ^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:188:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                     ^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO *   BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:193:2: warning: 'ASN1_TIME_print' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ASN1_TIME_print(bio_out, tm);
        ^
/usr/include/openssl/asn1.h:1008:5: note: 'ASN1_TIME_print' declared here
int ASN1_TIME_print(BIO *fp,ASN1_TIME *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:194:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_get_mem_ptr(bio_out, &bptr);
        ^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
                                ^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long    BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:195:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
        ^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int     BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:196:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free_all(bio_out);
        ^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void    BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:207:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                             ^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:207:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                     ^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO *   BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:212:2: warning: 'i2a_ASN1_INTEGER' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        i2a_ASN1_INTEGER(bio_out, i);
        ^
/usr/include/openssl/asn1.h:884:5: note: 'i2a_ASN1_INTEGER' declared here
int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:213:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_get_mem_ptr(bio_out, &bptr);
        ^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
                                ^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long    BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:214:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
        ^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int     BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:215:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free_all(bio_out);
        ^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void    BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:233:26: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
                                       ^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:233:3: warning: 'SSL_CIPHER_get_version' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
                ^
/usr/include/openssl/ssl.h:1359:8: note: 'SSL_CIPHER_get_version' declared here
char *  SSL_CIPHER_get_version(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:234:3: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_get_cipher_name(ssl));
                ^
/usr/include/openssl/ssl.h:1160:23: note: expanded from macro 'SSL_get_cipher_name'
                SSL_CIPHER_get_name(SSL_get_current_cipher(s))
                                    ^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:234:3: warning: 'SSL_CIPHER_get_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_get_cipher_name(ssl));
                ^
/usr/include/openssl/ssl.h:1160:3: note: expanded from macro 'SSL_get_cipher_name'
                SSL_CIPHER_get_name(SSL_get_current_cipher(s))
                ^
/usr/include/openssl/ssl.h:1360:14: note: 'SSL_CIPHER_get_name' declared here
const char *    SSL_CIPHER_get_name(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:235:12: warning: 'SSL_get_peer_certificate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(peer=SSL_get_peer_certificate(ssl)))
                  ^
/usr/include/openssl/ssl.h:1450:8: note: 'SSL_get_peer_certificate' declared here
X509 *  SSL_get_peer_certificate(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:240:5: warning: 'SSL_get_verify_result' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(SSL_get_verify_result(ssl)!=X509_V_OK)
           ^
/usr/include/openssl/ssl.h:1584:6: note: 'SSL_get_verify_result' declared here
long SSL_get_verify_result(const SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:246:28: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
                                  ^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME *     X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:246:2: warning: 'X509_NAME_get_text_by_NID' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
        ^
/usr/include/openssl/x509.h:1098:7: note: 'X509_NAME_get_text_by_NID' declared here
int             X509_NAME_get_text_by_NID(X509_NAME *name, int nid,
                ^
ssl.c:255:17: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(setenv_x509(X509_get_subject_name(peer), "PEER")
                       ^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME *     X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:256:19: warning: 'X509_get_issuer_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          || setenv_x509(X509_get_issuer_name(peer), "ISSUER"))
                         ^
/usr/include/openssl/x509.h:1011:13: note: 'X509_get_issuer_name' declared here
X509_NAME *     X509_get_issuer_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:263:30: warning: 'X509_get_serialNumber' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(setenv_x509_serialnumber(X509_get_serialNumber(peer),
                                    ^
/usr/include/openssl/x509.h:1009:16: note: 'X509_get_serialNumber' declared here
ASN1_INTEGER *  X509_get_serialNumber(X509 *x) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
47 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  status_client_ncurses.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  status_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  strlist.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  xattr.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  zlibio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking burp ...
/tmp/burp/burp-1.3.48/libtool --silent --tag=CXX --mode=link g++   -o burp acl.o asyncio.o attribs.o auth_server.o auth_client.o autoupgrade_client.o autoupgrade_server.o backup_phase1_client.o backup_phase2_client.o backup_phase1_server.o backup_phase2_server.o backup_phase3_server.o backup_phase4_server.o base64.o berrno.o bfile.o ca_client.o ca_server.o client.o client_vss.o conf.o counter.o current_backups_server.o delete_client.o delete_server.o dpth.o extrameta.o find.o forkchild.o handy.o incexc_recv.o incexc_send.o list_client.o list_server.o lock.o log.o msg.o prepend.o prog.o regexp.o restore_client.o restore_server.o rs_buf.o sbuf.o server.o ssl.o status_client_ncurses.o status_server.o strlist.o xattr.o zlibio.o \
        -lm  \
         -lssl -lcrypto -lrsync -lz -lncurses 
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  bedup.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
bedup.c:180:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:188:6: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Update(&md5, buf, got))
            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:194:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:223:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:231:7: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Update(&md5, buf, s))
                    ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:239:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
6 warnings generated.
Linking bedup ...
/tmp/burp/burp-1.3.48/libtool --silent --tag=CXX --mode=link g++   -o bedup bedup.o conf.o lock.o log.o prepend.o regexp.o strlist.o \
        -lm  \
         -lssl -lcrypto -lrsync -lz -lncurses 
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  vss_strip.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking vss_strip ...
/tmp/burp/burp-1.3.48/libtool --silent --tag=CXX --mode=link g++   -o vss_strip vss_strip.o
==== Make of burp is good ====

==>Entering directory /tmp/burp/burp-1.3.48/manpages
make[1]: Nothing to be done for `all'.
grke commented 10 years ago

Hmm. Most of those warnings are to do with openssl. Doing a quick search, it looks like Apple has decided to deprecate it: http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion Apparently, you can avoid the warnings if you use a non-system openssl. Or you can silence the deprecation warnings if you use ./configure --with-cc-opt="-Wno-deprecated-declarations" (I have not tried this as I don't have a mac).

Looks like there are other warnings are because I use g++ to compile C code. I do this, because there are parts (mainly Windows stuff) that are C++ and it saves headaches.

Any other warnings in there are lost in the noise.

saintger commented 10 years ago

Silencing the deprecation warnings is not recommended (I had to actively look for these warnings anyway, the default is to hide them if you use Homebrew to install Burp).

It seems that when openssl is deprecated, the only solution would be for Burp to provide its own version of openssl (or use the Homebrew forumula patch to include openssl).

grke commented 10 years ago

The OpenSSL source is about four times the size of burp. I don't want to have to maintain that because of some strange Apple decision. I am not sure who looks after the burp homebrew stuff.

saintger commented 10 years ago

It seems nobody in particular maintain the Homebrew Burp formula. It is just volunteers like me... ;-)

I think we may ignore the problem for the moment, but as Apple is planning to deprecate openssl, the problem may come back in the near future to bit us back.

If they remove the system openssl, it may be possible to require openssl as a dependency and compile against it.

I propose that you close this bug and keep it as a reference.

Thanks for the help !

grke commented 10 years ago

OK, I will do that. Meanwhile, I noticed some good warnings about readlink above. I will fix those.

saintger commented 10 years ago

Here are the warnings for version 1.4.16. There are still some not related to openssl I think.

==>Entering directory /tmp/burp-1.4.16/src  
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  acl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  asyncio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
asyncio.c:103:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_clear_error();
        ^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
asyncio.c:104:4: warning: 'SSL_read' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        r=SSL_read(ssl, readbuf+readbuflen, readbufmaxsize-readbuflen);
          ^
/usr/include/openssl/ssl.h:1493:6: note: 'SSL_read' declared here
int     SSL_read(SSL *ssl,void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:106:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        switch(SSL_get_error(ssl, r))
               ^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int     SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:116:3: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_shutdown(ssl);
                ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:183:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_clear_error();
        ^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
asyncio.c:184:4: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        w=SSL_write(ssl, writebuf, writebuflen);
          ^
/usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here
int     SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:186:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        switch(SSL_get_error(ssl, w))
               ^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int     SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
asyncio.c:290:10: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(r=SSL_shutdown(ssl)))
                       ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:294:6: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        r=SSL_shutdown(ssl);
                          ^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
asyncio.c:326:3: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_free(ssl);
                ^
/usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here
void    SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
10 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  attribs.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  auth_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  auth_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  autoupgrade_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  autoupgrade_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase1_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase2_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
backup_phase2_client.c:94:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'size_t *' (aka 'unsigned long *') [-Wnon-literal-null-conversion]
                if(async_rw(NULL, NULL, '\0', '\0', NULL, &wlen))
                                        ^~~~
backup_phase2_client.c:108:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &(infb->md5)))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
2 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase1_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase2_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase3_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  backup_phase4_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  base64.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  berrno.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  bfile.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ca_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ca_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
client.c:309:3: warning: 'SSL_CTX_set_session_id_context' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CTX_set_session_id_context(ctx,
                ^
/usr/include/openssl/ssl.h:1478:5: note: 'SSL_CTX_set_session_id_context' declared here
int     SSL_CTX_set_session_id_context(SSL_CTX *ctx,const unsigned char *sid_ctx,
        ^
client.c:319:12: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(ssl=SSL_new(ctx))
                         ^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL *   SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:320:15: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(sbio=BIO_new_socket(rfd, BIO_NOCLOSE)))  
                            ^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
client.c:322:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                           ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
client.c:322:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                        ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
client.c:327:3: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_set_bio(ssl, sbio, sbio);
                ^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void    SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:328:6: warning: 'SSL_connect' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(SSL_connect(ssl)<=0)
                   ^
/usr/include/openssl/ssl.h:1492:6: note: 'SSL_connect' declared here
int     SSL_connect(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
client.c:330:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                           ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
client.c:330:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                        ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
9 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  client_vss.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  conf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  counter.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  current_backups_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  delete_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  delete_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  dpth.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  extrameta.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  find.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  forkchild.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  handy.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
handy.c:253:6: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!EVP_CipherUpdate(ctx, outbuf, outlen, inbuf, inlen))
            ^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int     EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
        ^
handy.c:263:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(md5, outbuf, *outlen))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:277:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
        const char *enc_iv="[lkd.$G<A3>"; // never change this.
                                   ^~~~
handy.c:286:2: warning: 'EVP_CIPHER_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        EVP_CIPHER_CTX_init(ctx);
        ^
/usr/include/openssl/evp.h:636:6: note: 'EVP_CIPHER_CTX_init' declared here
void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
handy.c:287:30: warning: 'EVP_bf_cbc' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
                                    ^
/usr/include/openssl/evp.h:745:19: note: 'EVP_bf_cbc' declared here
const EVP_CIPHER *EVP_bf_cbc(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                  ^
handy.c:287:7: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
             ^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int     EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
        ^
handy.c:293:2: warning: 'EVP_CIPHER_CTX_set_key_length' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        EVP_CIPHER_CTX_set_key_length(ctx, strlen(encryption_password));
        ^
/usr/include/openssl/evp.h:640:5: note: 'EVP_CIPHER_CTX_set_key_length' declared here
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:296:6: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!EVP_CipherInit_ex(ctx, NULL, NULL,
            ^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int     EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
        ^
handy.c:411:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:473:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                if(strm.avail_in<0)
                   ~~~~~~~~~~~~~^~
handy.c:484:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, strm.avail_in))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:574:8: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!EVP_CipherFinal_ex(enc_ctx, eoutbuf, &eoutlen))
                            ^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int     EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
handy.c:583:15: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                          else if(!MD5_Update(&md5, eoutbuf, eoutlen))
                                   ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:597:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                EVP_CIPHER_CTX_cleanup(enc_ctx);
                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:604:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &md5))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:658:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:678:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, metadata, s))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:771:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, buf, s))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:802:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Final(checksum, &md5))
                    ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
handy.c:937:43: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                        if((wl=write(status_wfd, w, strlen(w)))<0)
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
20 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  incexc_recv.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  incexc_send.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  list_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  list_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  lock.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  log.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  msg.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
msg.c:238:5: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                EVP_CIPHER_CTX_cleanup(enc_ctx);
                                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
msg.c:283:12: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                          if(!EVP_CipherUpdate(enc_ctx,
                                              ^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int     EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
        ^
msg.c:317:10: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                                        if(!EVP_CipherFinal_ex(enc_ctx,
                                            ^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int     EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
msg.c:372:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                EVP_CIPHER_CTX_cleanup(enc_ctx);
                ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
4 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  prepend.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  prog.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  regexp.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  restore_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  restore_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
restore_server.c:209:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:230:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, b))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:256:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                        if(!MD5_Update(&md5, in, b))
                            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
restore_server.c:271:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
4 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  rs_buf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
rs_buf.c:110:9: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
    if(!MD5_Init(&(pf->md5)))
        ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
rs_buf.c:257:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
            if(!MD5_Update(&(fb->md5), fb->buf, len))
                ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
rs_buf.c:286:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
            if(!MD5_Update(&(fb->md5), fb->buf, len))
                ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
3 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  sbuf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
server.c:1648:10: warning: if statement has empty body [-Wempty-body]
                if(buf); free(buf); buf=NULL;
                       ^
server.c:1648:10: note: put the semicolon on a separate line to silence this warning
server.c:1687:12: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(sbio=BIO_new_socket(*cfd, BIO_NOCLOSE))
                  ^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
server.c:1688:13: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          || !(ssl=SSL_new(ctx)))  
                   ^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL *   SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1694:2: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_set_bio(ssl, sbio, sbio);
        ^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void    SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1700:2: warning: 'SSL_set_verify' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_set_verify(ssl, SSL_VERIFY_PEER
        ^
/usr/include/openssl/ssl.h:1384:6: note: 'SSL_set_verify' declared here
void    SSL_set_verify(SSL *s, int mode,
        ^
server.c:1703:10: warning: 'SSL_accept' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if((ret=SSL_accept(ssl))<=0)
                ^
/usr/include/openssl/ssl.h:1491:6: note: 'SSL_accept' declared here
int     SSL_accept(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
server.c:1706:22: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                                   ^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
              ^
server.c:1706:3: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
                ^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
8 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  ssl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ssl.c:14:2: warning: 'BIO_printf' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_printf(bio_err, "%s", buf);
        ^
/usr/include/openssl/bio.h:707:5: note: 'BIO_printf' declared here
int BIO_printf(BIO *bio, const char *format, ...)
    ^
ssl.c:15:2: warning: 'ERR_print_errors' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ERR_print_errors(bio_err);
        ^
/usr/include/openssl/err.h:290:6: note: 'ERR_print_errors' declared here
void ERR_print_errors(BIO *bp) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:24:11: warning: 'BIO_new_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio=BIO_new_file(conf->ssl_dhfile, "r")))
                 ^
/usr/include/openssl/bio.h:584:6: note: 'BIO_new_file' declared here
BIO *BIO_new_file(const char *filename, const char *mode) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:31:2: warning: 'BIO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free(bio);
        ^
/usr/include/openssl/bio.h:593:5: note: 'BIO_free' declared here
int     BIO_free(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:32:5: warning: 'SSL_CTX_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(SSL_CTX_set_tmp_dh(ctx, ret)<0)
           ^
/usr/include/openssl/ssl.h:1319:2: note: expanded from macro 'SSL_CTX_set_tmp_dh'
        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
        ^
/usr/include/openssl/ssl.h:1498:6: note: 'SSL_CTX_ctrl' declared here
long    SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:53:3: warning: 'SSL_library_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_library_init();
                ^
/usr/include/openssl/ssl.h:1553:5: note: 'SSL_library_init' declared here
int SSL_library_init(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:54:3: warning: 'SSL_load_error_strings' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_load_error_strings();
                ^
/usr/include/openssl/ssl.h:1416:6: note: 'SSL_load_error_strings' declared here
void    SSL_load_error_strings(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:57:11: warning: 'BIO_new_fp' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                bio_err=BIO_new_fp(stderr, BIO_NOCLOSE);
                        ^
/usr/include/openssl/bio.h:585:6: note: 'BIO_new_fp' declared here
BIO *BIO_new_fp(FILE *stream, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:68:8: warning: 'SSL_CTX_use_certificate_chain_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_use_certificate_chain_file(ctx, conf->ssl_cert))
              ^
/usr/include/openssl/ssl.h:1403:5: note: 'SSL_CTX_use_certificate_chain_file' declared here
int     SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* PEM type */
        ^
ssl.c:75:2: warning: 'SSL_CTX_set_default_passwd_cb' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_CTX_set_default_passwd_cb(ctx, password_cb);
        ^
/usr/include/openssl/ssl.h:1472:6: note: 'SSL_CTX_set_default_passwd_cb' declared here
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:84:8: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_use_PrivateKey_file(ctx,ssl_key,SSL_FILETYPE_PEM))
              ^
/usr/include/openssl/ssl.h:1401:5: note: 'SSL_CTX_use_PrivateKey_file' declared here
int     SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:92:8: warning: 'SSL_CTX_load_verify_locations' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          && !SSL_CTX_load_verify_locations(ctx, conf->ssl_cert_ca, 0))
              ^
/usr/include/openssl/ssl.h:1571:5: note: 'SSL_CTX_load_verify_locations' declared here
int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
    ^
ssl.c:108:21: warning: 'SSLv23_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        meth=(SSL_METHOD *)SSLv23_method();
                           ^
/usr/include/openssl/ssl.h:1515:13: note: 'SSLv23_method' declared here
SSL_METHOD *SSLv23_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;  /* SSLv3 but can rollback to v2 */
            ^
ssl.c:109:17: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ctx=(SSL_CTX *)SSL_CTX_new(meth);
                       ^
/usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here
SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
         ^
ssl.c:114:3: warning: 'SSL_CTX_set_cipher_list' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CTX_set_cipher_list(ctx, conf->ssl_ciphers);
                ^
/usr/include/openssl/ssl.h:1345:5: note: 'SSL_CTX_set_cipher_list' declared here
int     SSL_CTX_set_cipher_list(SSL_CTX *,const char *str) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:122:2: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        SSL_CTX_free(ctx);
        ^
/usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here
void    SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:155:6: warning: 'X509_NAME_entry_count' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        n = X509_NAME_entry_count (x509);
            ^
/usr/include/openssl/x509.h:1097:7: note: 'X509_NAME_entry_count' declared here
int             X509_NAME_entry_count(X509_NAME *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:158:12: warning: 'X509_NAME_get_entry' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!(ent=X509_NAME_get_entry (x509, i))
                         ^
/usr/include/openssl/x509.h:1108:18: note: 'X509_NAME_get_entry' declared here
X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                 ^
ssl.c:159:13: warning: 'X509_NAME_ENTRY_get_object' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(fn=X509_NAME_ENTRY_get_object(ent))  
                          ^
/usr/include/openssl/x509.h:1129:15: note: 'X509_NAME_ENTRY_get_object' declared here
ASN1_OBJECT *   X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:160:14: warning: 'X509_NAME_ENTRY_get_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(val=X509_NAME_ENTRY_get_data(ent))  
                           ^
/usr/include/openssl/x509.h:1130:15: note: 'X509_NAME_ENTRY_get_data' declared here
ASN1_STRING *   X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:161:16: warning: 'OBJ_obj2nid' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || (fn_nid=OBJ_obj2nid(fn))==NID_undef  
                             ^
/usr/include/openssl/objects.h:1009:6: note: 'OBJ_obj2nid' declared here
int             OBJ_obj2nid(const ASN1_OBJECT *o) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:162:17: warning: 'OBJ_nid2sn' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                  || !(objbuf=OBJ_nid2sn(fn_nid)))  
                              ^
/usr/include/openssl/objects.h:1008:14: note: 'OBJ_nid2sn' declared here
const char *    OBJ_nid2sn(int n) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:165:6: warning: 'ASN1_STRING_to_UTF8' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(ASN1_STRING_to_UTF8(&buf, val)<=0) continue;
                   ^
/usr/include/openssl/asn1.h:981:5: note: 'ASN1_STRING_to_UTF8' declared here
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:178:3: warning: 'CRYPTO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                OPENSSL_free (buf);
                ^
/usr/include/openssl/crypto.h:375:28: note: expanded from macro 'OPENSSL_free'
#define OPENSSL_free(addr)      CRYPTO_free(addr)
                                ^
/usr/include/openssl/crypto.h:480:6: note: 'CRYPTO_free' declared here
void CRYPTO_free(void *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:188:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                             ^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:188:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                     ^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO *   BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:193:2: warning: 'ASN1_TIME_print' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        ASN1_TIME_print(bio_out, tm);
        ^
/usr/include/openssl/asn1.h:1008:5: note: 'ASN1_TIME_print' declared here
int ASN1_TIME_print(BIO *fp,ASN1_TIME *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:194:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_get_mem_ptr(bio_out, &bptr);
        ^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
                                ^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long    BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:195:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
        ^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int     BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:196:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free_all(bio_out);
        ^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void    BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:207:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                             ^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:207:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(bio_out=BIO_new(BIO_s_mem())))
                     ^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO *   BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:212:2: warning: 'i2a_ASN1_INTEGER' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        i2a_ASN1_INTEGER(bio_out, i);
        ^
/usr/include/openssl/asn1.h:884:5: note: 'i2a_ASN1_INTEGER' declared here
int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
ssl.c:213:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_get_mem_ptr(bio_out, &bptr);
        ^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
                                ^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long    BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:214:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
        ^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int     BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:215:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        BIO_free_all(bio_out);
        ^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void    BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:233:26: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
                                       ^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:233:3: warning: 'SSL_CIPHER_get_version' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
                ^
/usr/include/openssl/ssl.h:1359:8: note: 'SSL_CIPHER_get_version' declared here
char *  SSL_CIPHER_get_version(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:234:3: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_get_cipher_name(ssl));
                ^
/usr/include/openssl/ssl.h:1160:23: note: expanded from macro 'SSL_get_cipher_name'
                SSL_CIPHER_get_name(SSL_get_current_cipher(s))
                                    ^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
            ^
ssl.c:234:3: warning: 'SSL_CIPHER_get_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                SSL_get_cipher_name(ssl));
                ^
/usr/include/openssl/ssl.h:1160:3: note: expanded from macro 'SSL_get_cipher_name'
                SSL_CIPHER_get_name(SSL_get_current_cipher(s))
                ^
/usr/include/openssl/ssl.h:1360:14: note: 'SSL_CIPHER_get_name' declared here
const char *    SSL_CIPHER_get_name(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:235:12: warning: 'SSL_get_peer_certificate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!(peer=SSL_get_peer_certificate(ssl)))
                  ^
/usr/include/openssl/ssl.h:1450:8: note: 'SSL_get_peer_certificate' declared here
X509 *  SSL_get_peer_certificate(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
ssl.c:240:5: warning: 'SSL_get_verify_result' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(SSL_get_verify_result(ssl)!=X509_V_OK)
           ^
/usr/include/openssl/ssl.h:1584:6: note: 'SSL_get_verify_result' declared here
long SSL_get_verify_result(const SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
ssl.c:246:28: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
                                  ^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME *     X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:246:2: warning: 'X509_NAME_get_text_by_NID' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
        ^
/usr/include/openssl/x509.h:1098:7: note: 'X509_NAME_get_text_by_NID' declared here
int             X509_NAME_get_text_by_NID(X509_NAME *name, int nid,
                ^
ssl.c:255:17: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(setenv_x509(X509_get_subject_name(peer), "PEER")
                       ^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME *     X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:256:19: warning: 'X509_get_issuer_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
          || setenv_x509(X509_get_issuer_name(peer), "ISSUER"))  
                         ^
/usr/include/openssl/x509.h:1011:13: note: 'X509_get_issuer_name' declared here
X509_NAME *     X509_get_issuer_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
ssl.c:263:30: warning: 'X509_get_serialNumber' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(setenv_x509_serialnumber(X509_get_serialNumber(peer),
                                    ^
/usr/include/openssl/x509.h:1009:16: note: 'X509_get_serialNumber' declared here
ASN1_INTEGER *  X509_get_serialNumber(X509 *x) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
                ^
47 warnings generated.
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  status_client_ncurses.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  status_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  strlist.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  xattr.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  zlibio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking burp ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++   -o burp acl.o asyncio.o attribs.o auth_server.o auth_client.o autoupgrade_client.o autoupgrade_server.o backup_phase1_client.o backup_phase2_client.o backup_phase1_server.o backup_phase2_server.o backup_phase3_server.o backup_phase4_server.o base64.o berrno.o bfile.o ca_client.o ca_server.o client.o client_vss.o conf.o counter.o current_backups_server.o delete_client.o delete_server.o dpth.o extrameta.o find.o forkchild.o handy.o incexc_recv.o incexc_send.o list_client.o list_server.o lock.o log.o msg.o prepend.o prog.o regexp.o restore_client.o restore_server.o rs_buf.o sbuf.o server.o ssl.o status_client_ncurses.o status_server.o strlist.o xattr.o zlibio.o \
        -lm  \
         -lssl -lcrypto -lrsync -lz -lncurses 
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  bedup.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
bedup.c:180:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:188:6: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Update(&md5, buf, got))
            ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:194:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:223:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Init(&md5))
            ^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:231:7: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
                if(!MD5_Update(&md5, buf, s))
                    ^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
bedup.c:239:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
        if(!MD5_Final(checksum, &md5))
            ^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
    ^
6 warnings generated.
Linking bedup ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++   -o bedup bedup.o conf.o lock.o log.o prepend.o regexp.o strlist.o \
        -lm  \
         -lssl -lcrypto -lrsync -lz -lncurses 
g++   -c  -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti  vss_strip.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking vss_strip ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++   -o vss_strip vss_strip.o
==== Make of burp is good ====

==>Entering directory /tmp/burp-1.4.16/manpages  
make[1]: Nothing to be done for `all'.
grke commented 10 years ago

OK, thanks. There are a lot of warnings because it is using g++ to compile c code. I will try to fix this in burp-2, and live with it in burp-1.4.x, because it will probably need changes that touch a lot of files and I only want to do it once.

grke commented 10 years ago

Here are the non-SSL warnings. I will fix them all in 1.4.x except the C/C++ ones.

clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated

backup_phase2_client.c:94:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'size_t ' (aka 'unsigned long ') [-Wnon-literal-null-conversion] if(async_rw(NULL, NULL, '\0', '\0', NULL, &wlen)) ^~~~ handy.c:277:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] const char *enc_iv="[lkd.$G"; // never change this. ^~~~

handy.c:468:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if(strm.avail_in<0)


handy.c:933:43: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                        if((wl=write(status_wfd, w, strlen(w)))<0)
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

server.c:1606:10: warning: if statement has empty body [-Wempty-body]
                if(buf); free(buf); buf=NULL;
                       ^
server.c:1606:10: note: put the semicolon on a separate line to silence this warning
grke commented 10 years ago

All of those now fixed on master and 1.4-master, except: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated

grke commented 10 years ago

After fighting to make gcc work for burp on git master instead of g++ for a couple of days, I am giving up for now. All the other non-SSL warnings are fixed.