Hi Kevin,
I tried all the ways to install the sshpass on my MacBook, no luck only failures. Please kindly help me or directly me where is the issue. Thanks.
If I use brew install, I get this error :
(venv270) kylix3511@kylix3511.com.local:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula$brew install http://git.io/sshpass.rb
########################################################################################################################################################################################################### 100.0%
Warning: sshpass 1.06 is available and more recent than version 1.05.
==> Downloading http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz
Already downloaded: /Users/kylix3511/Library/Caches/Homebrew/sshpass-1.05.tar.gz
==> ./configure --prefix=/usr/local/Cellar/sshpass/1.05
Last 15 lines from /Users/kylix3511/Library/Logs/Homebrew/sshpass/01.configure:
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... clang
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... configure: error: in /private/tmp/sshpass-20180731-32484-12yvgpo/sshpass-1.05': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details
Do not report this issue to Homebrew/brew or Homebrew/core!
(venv270) kylix3511@kylix3511.com.local:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula$
If I use configure, method, I get this error :
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$ls -lrt
total 1392
-rw-r--r-- 1 kylix3511 staff 0 Apr 25 2015 README
-rw-r--r-- 1 kylix3511 staff 213 Apr 25 2015 NEWS
-rw-r--r-- 1 kylix3511 staff 145 Apr 25 2015 Makefile.am
-rw-r--r-- 1 kylix3511 staff 17992 Apr 25 2015 COPYING
-rw-r--r-- 1 kylix3511 staff 700 Apr 25 2015 AUTHORS
-rwxr-xr-x 1 kylix3511 staff 6872 Apr 25 2015 missing
-rwxr-xr-x 1 kylix3511 staff 13997 Apr 25 2015 install-sh
-rwxr-xr-x 1 kylix3511 staff 23566 Apr 25 2015 depcomp
-rwxr-xr-x 1 kylix3511 staff 7333 Apr 25 2015 compile
-rw-r--r-- 1 kylix3511 staff 15752 Apr 25 2015 INSTALL
-rw-r--r-- 1 kylix3511 staff 5251 Jun 30 2016 sshpass.1
-rw-r--r-- 1 kylix3511 staff 14481 Jun 30 2016 main.c
-rw-r--r-- 1 kylix3511 staff 1159 Jun 30 2016 configure.ac
-rwxr-xr-x 1 kylix3511 staff 210576 Jun 30 2016 configure
-rw-r--r-- 1 kylix3511 staff 43150 Jun 30 2016 aclocal.m4
-rw-r--r-- 1 kylix3511 staff 27009 Jun 30 2016 Makefile.in
-rw-r--r-- 1 kylix3511 staff 4160 Jun 30 2016 config.h.in
-rw-r--r-- 1 kylix3511 staff 1721 Jun 30 2016 ChangeLog
-rw-r--r-- 1 root staff 4536 Jul 31 12:18 config.h
-rwxr-xr-x 1 root staff 33285 Jul 31 12:18 config.status
-rw-r--r-- 1 root staff 26863 Jul 31 12:18 Makefile
-rw-r--r-- 1 root staff 23 Jul 31 12:18 stamp-h1
-rw-r--r-- 1 kylix3511 staff 199269 Jul 31 12:18 config.log
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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... configure: error: in /Users/kylix3511/sshpass-1.06': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo ./configure --host=localhost
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for localhost-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for localhost-gcc... no
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... yes
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... unsupported
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
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... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
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... no
checking for localhost-gcc... 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) unsupported
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the compiler's result
checking for fcntl.h... no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... yes
configure: WARNING: sys/ioctl.h: present but cannot be compiled
configure: WARNING: sys/ioctl.h: check for missing prerequisite headers?
configure: WARNING: sys/ioctl.h: see the Autoconf documentation
configure: WARNING: sys/ioctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ioctl.h: proceeding with the compiler's result
checking for sys/ioctl.h... no
checking for unistd.h... (cached) no
checking termios.h usability... no
checking termios.h presence... yes
configure: WARNING: termios.h: present but cannot be compiled
configure: WARNING: termios.h: check for missing prerequisite headers?
configure: WARNING: termios.h: see the Autoconf documentation
configure: WARNING: termios.h: section "Present But Cannot Be Compiled"
configure: WARNING: termios.h: proceeding with the compiler's result
checking for termios.h... no
checking for an ANSI C-conforming const... yes
checking for pid_t... no
checking for ssize_t... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) no
checking for GNU libc compatible malloc... no
checking sys/select.h usability... no
checking sys/select.h presence... yes
configure: WARNING: sys/select.h: present but cannot be compiled
configure: WARNING: sys/select.h: check for missing prerequisite headers?
configure: WARNING: sys/select.h: see the Autoconf documentation
configure: WARNING: sys/select.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
configure: WARNING: sys/socket.h: present but cannot be compiled
configure: WARNING: sys/socket.h: check for missing prerequisite headers?
configure: WARNING: sys/socket.h: see the Autoconf documentation
configure: WARNING: sys/socket.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/socket.h: proceeding with the compiler's result
checking for sys/socket.h... no
checking types of arguments for select... int,int *,struct timeval *
checking return type of signal handlers... void
checking for select... yes
checking for posix_openpt... yes
checking for strdup... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from main.c:25:
In file included from /usr/include/sys/types.h:122:
/usr/include/sys/_types/_pid_t.h:31:31: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_pid_t pid_t;
^
./config.h:158:15: note: expanded from macro 'pid_t'
#define pid_t int
^
In file included from main.c:25:
In file included from /usr/include/sys/types.h:164:
/usr/include/sys/_types/_ssize_t.h:31:33: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_ssize_t ssize_t;
^
./config.h:161:17: note: expanded from macro 'ssize_t'
#define ssize_t int
^
In file included from main.c:38:
/usr/local/include/stdio.h:34:56: error: unknown type name 'FILE'
isc_stdio_open(const char *filename, const char *mode, FILE **fp);
^
/usr/local/include/stdio.h:38:17: error: unknown type name 'FILE'
isc_stdio_close(FILE *f);
^
/usr/local/include/stdio.h:42:16: error: unknown type name 'FILE'
isc_stdio_seek(FILE *f, off_t offset, int whence);
^
/usr/local/include/stdio.h:46:16: error: unknown type name 'FILE'
isc_stdio_tell(FILE *f, off_t *offsetp);
^
/usr/local/include/stdio.h:50:54: error: unknown type name 'FILE'
isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f,
^
/usr/local/include/stdio.h:55:61: error: unknown type name 'FILE'
isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
^
/usr/local/include/stdio.h:60:17: error: unknown type name 'FILE'
isc_stdio_flush(FILE *f);
^
/usr/local/include/stdio.h:63:16: error: unknown type name 'FILE'
isc_stdio_sync(FILE *f);
^
main.c:79:5: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
printf("Usage: " PACKAGE_NAME " [-f|-d|-p|-e] [-hV] command parameters\n"
^
main.c:79:5: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
main.c:111:6: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration]
VIRGIN_PWTYPE;
^
main.c:104:5: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:111:6: warning: declaration of built-in function 'fprintf' requires inclusion of the header <stdio.h> [-Wbuiltin-requires-header]
main.c:104:5: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:111:6: error: use of undeclared identifier 'stderr'
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:118:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:121:20: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
args.pwsrc.fd=atoi(optarg);
^
main.c:125:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:128:26: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Wimplicit-function-declaration]
args.pwsrc.password=strdup(optarg);
^
main.c:128:26: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
main.c:145:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:148:26: warning: implicit declaration of function 'getenv' is invalid in C99 [-Wimplicit-function-declaration]
args.pwsrc.password=getenv("SSHPASS");
^
main.c:148:25: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
args.pwsrc.password=getenv("SSHPASS");
^~~~~~~~~~~~~~~~~~
main.c:150:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "sshpass: -e option given but SSHPASS environment variable not set\n");
^
main.c:170:6: warning: implicitly declaring library function 'exit' with type 'void (int) attribute((noreturn))' [-Wimplicit-function-declaration]
exit(0);
^
main.c:170:6: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
main.c:218:14: warning: implicit declaration of function 'posix_openpt' is invalid in C99 [-Wimplicit-function-declaration]
masterpt=posix_openpt(O_RDWR);
^
main.c:221:2: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration]
perror("Failed to get a pseudo terminal");
^
main.c:228:9: warning: implicit declaration of function 'grantpt' is invalid in C99 [-Wimplicit-function-declaration]
if( grantpt( masterpt )!=0 ) {
^
main.c:233:9: warning: implicit declaration of function 'unlockpt' is invalid in C99 [-Wimplicit-function-declaration]
if( unlockpt( masterpt )!=0 ) {
^
main.c:246:22: warning: implicit declaration of function 'ptsname' is invalid in C99 [-Wimplicit-function-declaration]
const char *name=ptsname(masterpt);
^
main.c:246:17: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
const char *name=ptsname(masterpt);
^ ~~~~~~~~~~~~~~~~~
main.c:287:18: warning: implicit declaration of function 'rpl_malloc' is invalid in C99 [-Wimplicit-function-declaration]
char **new_argv=malloc(sizeof(char )(argc+1));
^
./config.h:155:16: note: expanded from macro 'malloc'
#define malloc rpl_malloc
^
main.c:287:9: warning: incompatible integer to pointer conversion initializing 'char **' with an expression of type 'int' [-Wint-conversion]
char **new_argv=malloc(sizeof(char )(argc+1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:392:17: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS searching for password prompt using match "%s"\n", compare1);
^
main.c:398:17: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS read: %s\n", buffer);
^
main.c:407:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS detected prompt. Sending password.\n");
^
main.c:414:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS detected prompt, again. Wrong password. Terminating.\n");
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
16 warnings and 20 errors generated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
Hi Kevin,
I tried all the ways to install the sshpass on my MacBook, no luck only failures. Please kindly help me or directly me where is the issue. Thanks.
If I use brew install, I get this error :
(venv270) kylix3511@kylix3511.com.local:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula$brew install http://git.io/sshpass.rb
########################################################################################################################################################################################################### 100.0%
Warning: sshpass 1.06 is available and more recent than version 1.05.
==> Downloading http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz
Already downloaded: /Users/kylix3511/Library/Caches/Homebrew/sshpass-1.05.tar.gz
==> ./configure --prefix=/usr/local/Cellar/sshpass/1.05
Last 15 lines from /Users/kylix3511/Library/Logs/Homebrew/sshpass/01.configure:
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... clang
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... configure: error: in /private/tmp/sshpass-20180731-32484-12yvgpo/sshpass-1.05': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details
Do not report this issue to Homebrew/brew or Homebrew/core!
(venv270) kylix3511@kylix3511.com.local:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula$
If I use configure, method, I get this error :
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$ls -lrt
total 1392
-rw-r--r-- 1 kylix3511 staff 0 Apr 25 2015 README
-rw-r--r-- 1 kylix3511 staff 213 Apr 25 2015 NEWS
-rw-r--r-- 1 kylix3511 staff 145 Apr 25 2015 Makefile.am
-rw-r--r-- 1 kylix3511 staff 17992 Apr 25 2015 COPYING
-rw-r--r-- 1 kylix3511 staff 700 Apr 25 2015 AUTHORS
-rwxr-xr-x 1 kylix3511 staff 6872 Apr 25 2015 missing
-rwxr-xr-x 1 kylix3511 staff 13997 Apr 25 2015 install-sh
-rwxr-xr-x 1 kylix3511 staff 23566 Apr 25 2015 depcomp
-rwxr-xr-x 1 kylix3511 staff 7333 Apr 25 2015 compile
-rw-r--r-- 1 kylix3511 staff 15752 Apr 25 2015 INSTALL
-rw-r--r-- 1 kylix3511 staff 5251 Jun 30 2016 sshpass.1
-rw-r--r-- 1 kylix3511 staff 14481 Jun 30 2016 main.c
-rw-r--r-- 1 kylix3511 staff 1159 Jun 30 2016 configure.ac
-rwxr-xr-x 1 kylix3511 staff 210576 Jun 30 2016 configure
-rw-r--r-- 1 kylix3511 staff 43150 Jun 30 2016 aclocal.m4
-rw-r--r-- 1 kylix3511 staff 27009 Jun 30 2016 Makefile.in
-rw-r--r-- 1 kylix3511 staff 4160 Jun 30 2016 config.h.in
-rw-r--r-- 1 kylix3511 staff 1721 Jun 30 2016 ChangeLog
-rw-r--r-- 1 root staff 4536 Jul 31 12:18 config.h
-rwxr-xr-x 1 root staff 33285 Jul 31 12:18 config.status
-rw-r--r-- 1 root staff 26863 Jul 31 12:18 Makefile
-rw-r--r-- 1 root staff 23 Jul 31 12:18 stamp-h1
-rw-r--r-- 1 kylix3511 staff 199269 Jul 31 12:18 config.log
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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... configure: error: in /Users/kylix3511/sshpass-1.06': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo ./configure --host=localhost
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for localhost-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for localhost-gcc... no
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... yes
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... unsupported
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
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... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
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... no
checking for localhost-gcc... 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) unsupported
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the compiler's result
checking for fcntl.h... no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... yes
configure: WARNING: sys/ioctl.h: present but cannot be compiled
configure: WARNING: sys/ioctl.h: check for missing prerequisite headers?
configure: WARNING: sys/ioctl.h: see the Autoconf documentation
configure: WARNING: sys/ioctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ioctl.h: proceeding with the compiler's result
checking for sys/ioctl.h... no
checking for unistd.h... (cached) no
checking termios.h usability... no
checking termios.h presence... yes
configure: WARNING: termios.h: present but cannot be compiled
configure: WARNING: termios.h: check for missing prerequisite headers?
configure: WARNING: termios.h: see the Autoconf documentation
configure: WARNING: termios.h: section "Present But Cannot Be Compiled"
configure: WARNING: termios.h: proceeding with the compiler's result
checking for termios.h... no
checking for an ANSI C-conforming const... yes
checking for pid_t... no
checking for ssize_t... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) no
checking for GNU libc compatible malloc... no
checking sys/select.h usability... no
checking sys/select.h presence... yes
configure: WARNING: sys/select.h: present but cannot be compiled
configure: WARNING: sys/select.h: check for missing prerequisite headers?
configure: WARNING: sys/select.h: see the Autoconf documentation
configure: WARNING: sys/select.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
configure: WARNING: sys/socket.h: present but cannot be compiled
configure: WARNING: sys/socket.h: check for missing prerequisite headers?
configure: WARNING: sys/socket.h: see the Autoconf documentation
configure: WARNING: sys/socket.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/socket.h: proceeding with the compiler's result
checking for sys/socket.h... no
checking types of arguments for select... int,int *,struct timeval *
checking return type of signal handlers... void
checking for select... yes
checking for posix_openpt... yes
checking for strdup... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$sudo make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from main.c:25:
In file included from /usr/include/sys/types.h:122:
/usr/include/sys/_types/_pid_t.h:31:31: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_pid_t pid_t;
^
./config.h:158:15: note: expanded from macro 'pid_t'
#define pid_t int
^
In file included from main.c:25:
In file included from /usr/include/sys/types.h:164:
/usr/include/sys/_types/_ssize_t.h:31:33: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_ssize_t ssize_t;
^
./config.h:161:17: note: expanded from macro 'ssize_t'
#define ssize_t int
^
In file included from main.c:38:
/usr/local/include/stdio.h:34:56: error: unknown type name 'FILE'
isc_stdio_open(const char *filename, const char *mode, FILE **fp);
^
/usr/local/include/stdio.h:38:17: error: unknown type name 'FILE'
isc_stdio_close(FILE *f);
^
/usr/local/include/stdio.h:42:16: error: unknown type name 'FILE'
isc_stdio_seek(FILE *f, off_t offset, int whence);
^
/usr/local/include/stdio.h:46:16: error: unknown type name 'FILE'
isc_stdio_tell(FILE *f, off_t *offsetp);
^
/usr/local/include/stdio.h:50:54: error: unknown type name 'FILE'
isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f,
^
/usr/local/include/stdio.h:55:61: error: unknown type name 'FILE'
isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
^
/usr/local/include/stdio.h:60:17: error: unknown type name 'FILE'
isc_stdio_flush(FILE *f);
^
/usr/local/include/stdio.h:63:16: error: unknown type name 'FILE'
isc_stdio_sync(FILE *f);
^
main.c:79:5: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
printf("Usage: " PACKAGE_NAME " [-f|-d|-p|-e] [-hV] command parameters\n"
^
main.c:79:5: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
main.c:111:6: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration]
VIRGIN_PWTYPE;
^
main.c:104:5: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:111:6: warning: declaration of built-in function 'fprintf' requires inclusion of the header <stdio.h> [-Wbuiltin-requires-header]
main.c:104:5: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:111:6: error: use of undeclared identifier 'stderr'
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:118:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:121:20: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
args.pwsrc.fd=atoi(optarg);
^
main.c:125:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:128:26: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Wimplicit-function-declaration]
args.pwsrc.password=strdup(optarg);
^
main.c:128:26: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
main.c:145:6: error: use of undeclared identifier 'stderr'
VIRGIN_PWTYPE;
^
main.c:104:13: note: expanded from macro 'VIRGIN_PWTYPE'
fprintf(stderr, "Conflicting password source\n");
^
main.c:148:26: warning: implicit declaration of function 'getenv' is invalid in C99 [-Wimplicit-function-declaration]
args.pwsrc.password=getenv("SSHPASS");
^
main.c:148:25: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
args.pwsrc.password=getenv("SSHPASS");
^~~~~~~~~~~~~~~~~~
main.c:150:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "sshpass: -e option given but SSHPASS environment variable not set\n");
^
main.c:170:6: warning: implicitly declaring library function 'exit' with type 'void (int) attribute((noreturn))' [-Wimplicit-function-declaration]
exit(0);
^
main.c:170:6: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
main.c:218:14: warning: implicit declaration of function 'posix_openpt' is invalid in C99 [-Wimplicit-function-declaration]
masterpt=posix_openpt(O_RDWR);
^
main.c:221:2: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration]
perror("Failed to get a pseudo terminal");
^
main.c:228:9: warning: implicit declaration of function 'grantpt' is invalid in C99 [-Wimplicit-function-declaration]
if( grantpt( masterpt )!=0 ) {
^
main.c:233:9: warning: implicit declaration of function 'unlockpt' is invalid in C99 [-Wimplicit-function-declaration]
if( unlockpt( masterpt )!=0 ) {
^
main.c:246:22: warning: implicit declaration of function 'ptsname' is invalid in C99 [-Wimplicit-function-declaration]
const char *name=ptsname(masterpt);
^
main.c:246:17: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
const char *name=ptsname(masterpt);
^ ~~~~~~~~~~~~~~~~~
main.c:287:18: warning: implicit declaration of function 'rpl_malloc' is invalid in C99 [-Wimplicit-function-declaration]
char **new_argv=malloc(sizeof(char )(argc+1));
^
./config.h:155:16: note: expanded from macro 'malloc'
#define malloc rpl_malloc
^
main.c:287:9: warning: incompatible integer to pointer conversion initializing 'char **' with an expression of type 'int' [-Wint-conversion]
char **new_argv=malloc(sizeof(char )(argc+1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:392:17: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS searching for password prompt using match "%s"\n", compare1);
^
main.c:398:17: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS read: %s\n", buffer);
^
main.c:407:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS detected prompt. Sending password.\n");
^
main.c:414:25: error: use of undeclared identifier 'stderr'
fprintf(stderr, "SSHPASS detected prompt, again. Wrong password. Terminating.\n");
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
16 warnings and 20 errors generated.
make[1]: *** [main.o] Error 1
make: *** [all] Error 2
(venv270) kylix3511@kylix3511.com.local:sshpass-1.06$