Skip to content

Instantly share code, notes, and snippets.

@Me1000
Created April 24, 2012 00:31
Show Gist options
  • Select an option

  • Save Me1000/2474911 to your computer and use it in GitHub Desktop.

Select an option

Save Me1000/2474911 to your computer and use it in GitHub Desktop.
Randys-MacBook-Pro:pine4.64 randy$ ./build bsd
make args are CC=cc bsd
Including LDAP functionality
Making c-client library, imapd, and ipopd
+-----------------------------------------------------------+
| It appears that you do not have OpenSSL or equivalent |
| installed on this system. |
| |
| Building PINE without SSL support will possibly introduce |
| problems when communicating with IMAP, POP3, or SMTP |
| servers that require TLS or SSL authentication. |
| In addition, your password may be vulnerable to a |
| snooping attack since it may be sent over the network |
| unencrypted. |
+-----------------------------------------------------------+
Do you want to continue this build anyway? Type y or n please:
y
Building without SSL ...
eval make CC=cc SSLTYPE=none SPECIALS= bsd
make sslnone
make[1]: `sslnone' is up to date.
Applying ua process to sources...
tools/ua "ln -s" src/c-client c-client
cc -o uahelper uahelper.c
uahelper.c:96:39: warning: expression result unused [-Wunused-value]
while ((*s == ' ') || (*s == '\t')) *s++;
^~~~
uahelper.c:201:28: warning: expression result unused [-Wunused-value]
while (*s && (*s != ',')) *s++;
^~~~
uahelper.c:220:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main ()
^~~~
uahelper.c:224:12: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
while (s = fgets (line,LINELENGTH,stdin)) switch (line[0]) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uahelper.c:224:12: note: place parentheses around the assignment to silence this
warning
while (s = fgets (line,LINELENGTH,stdin)) switch (line[0]) {
^
( )
uahelper.c:224:12: note: use '==' to turn this assignment into an equality
comparison
while (s = fgets (line,LINELENGTH,stdin)) switch (line[0]) {
^
==
4 warnings generated.
tools/ua "ln -s" src/ansilib c-client
tools/ua "ln -s" src/charset c-client
tools/ua "ln -s" src/osdep/unix c-client
tools/ua "ln -s" src/mtest mtest
tools/ua "ln -s" src/ipopd ipopd
tools/ua "ln -s" src/imapd imapd
tools/ua "ln -s" src/mailutil mailutil
tools/ua "ln -s" src/mlock mlock
tools/ua "ln -s" src/dmail dmail
tools/ua "ln -s" src/tmail tmail
ln -s tools/ua .
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=none IP=4 EXTRASPECIALS='' BUILDTYPE=bsd
Building c-client for bsd...
echo `cat SPECIALS` > c-client/SPECIALS
cd c-client;make bsd EXTRACFLAGS=''\
EXTRALDFLAGS=''\
EXTRADRIVERS='mbox'\
EXTRAAUTHENTICATORS=''\
PASSWDTYPE=std SSLTYPE=none IP=4\
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=none IP=4 `cat SPECIALS` OS=bsd \
CRXTYPE=nfs \
BASECFLAGS="-g -Dconst="
sh -c 'rm -rf auths.c crexcl.c nfstest.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g -Dconst= '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
-DMAILSPOOL=\"/usr/spool/mail\" \
-DANONYMOUSHOME=\"/usr/spool/mail/anonymous\" \
-DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/usr/spool/news\" \
-DRSHPATH=\"/usr/ucb/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo bsd > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths md5 pla log
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
ln -s os_bsd.h osdep.h
ln -s os_bsd.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_bsd.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip4_unix.c ip_unix.c
sh -c '(test -f /usr/include/sys/statvfs.h -a bsd != sc5 -a bsd != sco) && ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
ln -s ckp_std.c osdepckp.c
Building without SSL support
ln -s ssl_none.c osdepssl.c
cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make bsd SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:22:
./osdep.h:33:16: error: too few arguments provided to function-like macro
invocation
void *memmove ();
^
./osdep.h:33:7: error: redefinition of 'memmove' as different kind of symbol
void *memmove ();
^
/usr/include/string.h:83:7: note: previous definition is here
void *memmove(void *, const void *, size_t);
^
In file included from osdep.c:45:
./ftl_unix.c:31:3: warning: implicitly declaring C library function 'abort' with
type 'void (void) __attribute__((noreturn))'
abort (); /* die horribly */
^
./ftl_unix.c:31:3: note: please include the header <stdlib.h> or explicitly
provide a declaration for 'abort'
In file included from osdep.c:46:
./nl_unix.c:44:19: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
if (!*dst) *dst = (char *) fs_get ((*dstl = i) + 1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from osdep.c:47:
In file included from ./env_unix.c:135:
./write.c:49:18: warning: implicit declaration of function 'write' is invalid in
C99 [-Wimplicit-function-declaration]
while (((j = write (fd,buf,(int) min (maxposint,i))) < 0) &&
^
In file included from osdep.c:47:
In file included from ./env_unix.c:136:
./crexcl.c:41:61: warning: implicit declaration of function 'getpid' is invalid
in C99 [-Wimplicit-function-declaration]
sprintf (hitch,"%s.%lu.%d.",name,(unsigned long) time (0),getpid ());
^
/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
In file included from osdep.c:47:
In file included from ./env_unix.c:136:
./crexcl.c:43:3: warning: implicit declaration of function 'gethostname' is
invalid in C99 [-Wimplicit-function-declaration]
gethostname (hitch + i,(MAILTMPLEN - i) - 1);
^
./crexcl.c:46:5: warning: implicit declaration of function 'close' is invalid in
C99 [-Wimplicit-function-declaration]
close (i); /* close the hitching-post */
^
./crexcl.c:52:9: warning: implicit declaration of function 'link' is invalid in
C99 [-Wimplicit-function-declaration]
i = link (hitch,name) ? errno : 0;
^
./crexcl.c:66:5: warning: implicit declaration of function 'unlink' is invalid
in C99 [-Wimplicit-function-declaration]
unlink (hitch); /* flush hitching post */
^
In file included from osdep.c:47:
In file included from ./env_unix.c:137:
./pmatch.c:36:43: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
if (!pat[1]) return (delim && strchr (s,delim)) ? NIL : T;
^
/usr/include/string.h:86:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:100:17: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen)) {
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:100:17: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen)) {
^
( )
./auth_md5.c:100:17: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen)) {
^
==
./auth_md5.c:115:16: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen))
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:115:16: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen))
^
( )
./auth_md5.c:115:16: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen))
^
==
./auth_md5.c:153:12: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (user = (*responder) (chal,cl = strlen (chal),NIL)) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:153:12: note: place parentheses around the assignment to silence
this warning
if (user = (*responder) (chal,cl = strlen (chal),NIL)) {
^
( )
./auth_md5.c:153:12: note: use '==' to turn this assignment into an equality
comparison
if (user = (*responder) (chal,cl = strlen (chal),NIL)) {
^
==
./auth_md5.c:155:14: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (hash = strrchr (user,' ')) {
~~~~~^~~~~~~~~~~~~~~~~~~~
./auth_md5.c:155:14: note: place parentheses around the assignment to silence
this warning
if (hash = strrchr (user,' ')) {
^
( )
./auth_md5.c:155:14: note: use '==' to turn this assignment into an equality
comparison
if (hash = strrchr (user,' ')) {
^
==
./auth_md5.c:158:20: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (authuser = strchr (user,'*')) *authuser++ = '\0';
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
./auth_md5.c:158:20: note: place parentheses around the assignment to silence
this warning
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
( )
./auth_md5.c:158:20: note: use '==' to turn this assignment into an equality
comparison
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
==
./auth_md5.c:160:13: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:160:13: note: place parentheses around the assignment to silence
this warning
if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
^
( )
./auth_md5.c:160:13: note: use '==' to turn this assignment into an equality
comparison
if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
^
==
./auth_md5.c:172:13: warning: implicit declaration of function 'sleep' is
invalid in C99 [-Wimplicit-function-declaration]
if (!ret) sleep (3); /* slow down possible cracker */
^
./auth_md5.c:193:5: warning: implicit declaration of function 'read' is invalid
in C99 [-Wimplicit-function-declaration]
read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size);
^
./auth_md5.c:193:18: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:195:12: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
for (s = user; *s && !isupper (*s); s++);
^ ~~~~
./auth_md5.c:198:22: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
for (s = strtok (buf,"\015\012"),lret = NIL; s;
^~~
/usr/include/string.h:100:20: note: passing argument to parameter here
char *strtok(char *, const char *);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:198:12: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
for (s = strtok (buf,"\015\012"),lret = NIL; s;
^ ~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:199:5: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
s = ret ? NIL : strtok (NIL,"\015\012"))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:201:45: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) {
^
/usr/include/string.h:86:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:201:35: warning: assigning to 'unsigned char *' from 'char *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) {
^ ~~~~~~~~~~~~~~~
./auth_md5.c:203:15: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
if (!strcmp (s,user)) ret = cpystr (t);
^
/usr/include/string.h:87:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:204:39: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t;
^
/usr/include/string.h:87:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:204:41: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t;
^~~~
/usr/include/string.h:87:39: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:1:
./auth_md5.c:241:16: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (authuser = strchr (user,'*')) *authuser++ = '\0';
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
./auth_md5.c:241:16: note: place parentheses around the assignment to silence
this warning
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
( )
./auth_md5.c:241:16: note: use '==' to turn this assignment into an equality
comparison
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
==
./auth_md5.c:243:9: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_md5.c:243:9: note: place parentheses around the assignment to silence
this warning
if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
^
( )
./auth_md5.c:243:9: note: use '==' to turn this assignment into an equality
comparison
if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) {
^
==
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:2:
./auth_pla.c:62:17: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen)) {
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_pla.c:62:17: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen)) {
^
( )
./auth_pla.c:62:17: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen)) {
^
==
./auth_pla.c:90:16: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen))
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_pla.c:90:16: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen))
^
( )
./auth_pla.c:90:16: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen))
^
==
./auth_pla.c:132:11: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (aid = (*responder) ("",0,&len)) {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_pla.c:132:11: note: place parentheses around the assignment to silence
this warning
if (aid = (*responder) ("",0,&len)) {
^
( )
./auth_pla.c:132:11: note: use '==' to turn this assignment into an equality
comparison
if (aid = (*responder) ("",0,&len)) {
^
==
In file included from osdep.c:47:
In file included from ./env_unix.c:141:
In file included from ./auths.c:3:
./auth_log.c:61:17: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen)) {
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_log.c:61:17: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen)) {
^
( )
./auth_log.c:61:17: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen)) {
^
==
./auth_log.c:76:16: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (challenge = (*challenger) (stream,&clen))
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_log.c:76:16: note: place parentheses around the assignment to silence
this warning
if (challenge = (*challenger) (stream,&clen))
^
( )
./auth_log.c:76:16: note: use '==' to turn this assignment into an equality
comparison
if (challenge = (*challenger) (stream,&clen))
^
==
./auth_log.c:105:12: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_log.c:105:12: note: place parentheses around the assignment to silence
this warning
if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) {
^
( )
./auth_log.c:105:12: note: use '==' to turn this assignment into an equality
comparison
if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) {
^
==
./auth_log.c:106:14: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./auth_log.c:106:14: note: place parentheses around the assignment to silence
this warning
if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) {
^
( )
./auth_log.c:106:14: note: use '==' to turn this assignment into an equality
comparison
if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) {
^
==
./auth_log.c:108:20: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (authuser = strchr (user,'*')) *authuser++ = '\0';
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
./auth_log.c:108:20: note: place parentheses around the assignment to silence
this warning
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
( )
./auth_log.c:108:20: note: use '==' to turn this assignment into an equality
comparison
if (authuser = strchr (user,'*')) *authuser++ = '\0';
^
==
In file included from osdep.c:47:
./env_unix.c:384:14: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (julian = t->tm_yday -julian)
~~~~~~~^~~~~~~~~~~~~~~~~~~~
./env_unix.c:384:14: note: place parentheses around the assignment to silence
this warning
if (julian = t->tm_yday -julian)
^
( )
./env_unix.c:384:14: note: use '==' to turn this assignment into an equality
comparison
if (julian = t->tm_yday -julian)
^
==
./env_unix.c:385:31: warning: implicit declaration of function 'abs' is invalid
in C99 [-Wimplicit-function-declaration]
zone += ((julian < 0) == (abs (julian) == 1)) ? -24*60 : 24*60;
^
./env_unix.c:517:33: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
struct passwd *pw = getpwnam (user);
^~~~
/usr/include/pwd.h:136:37: note: passing argument to parameter here
struct passwd *getpwnam(const char *);
^
In file included from osdep.c:47:
./env_unix.c:521:22: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
pw = getpwnam (s = lcase (cpystr (user)));
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pwd.h:136:37: note: passing argument to parameter here
struct passwd *getpwnam(const char *);
^
In file included from osdep.c:47:
./env_unix.c:549:11: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (s = auth_md5_pwd (user)) {
~~^~~~~~~~~~~~~~~~~~~~~
./env_unix.c:549:11: note: place parentheses around the assignment to silence
this warning
if (s = auth_md5_pwd (user)) {
^
( )
./env_unix.c:549:11: note: use '==' to turn this assignment into an equality
comparison
if (s = auth_md5_pwd (user)) {
^
==
./env_unix.c:551:16: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
ret = pwuser (user); /* validated, get passwd entry for user */
^~~~
./env_unix.c:556:25: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
else if (pw = pwuser (user)) {/* can get user? */
^~~~
./env_unix.c:556:15: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
else if (pw = pwuser (user)) {/* can get user? */
~~~^~~~~~~~~~~~~~~
./env_unix.c:556:15: note: place parentheses around the assignment to silence
this warning
else if (pw = pwuser (user)) {/* can get user? */
^
( )
./env_unix.c:556:15: note: use '==' to turn this assignment into an equality
comparison
else if (pw = pwuser (user)) {/* can get user? */
^
==
./env_unix.c:559:44: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
(*pwd == ' ') && pwd[1] && (ret = pwuser (s)))
^
./env_unix.c:595:58: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
else if (valpwd (authuser,pwd,argc,argv)) pw = pwuser (user);
^~~~
./env_unix.c:617:28: warning: passing 'char *' to parameter of type
'unsigned char *' converts between pointers to integer types with
different sign [-Wpointer-sign]
return pw_login (pwuser (user),authuser,user,NIL,argc,argv);
^~~~
./env_unix.c:672:11: warning: implicit declaration of function 'chdir' is
invalid in C99 [-Wimplicit-function-declaration]
if (chdir (home) || chroot (home))
^
./env_unix.c:672:27: warning: implicit declaration of function 'chroot' is
invalid in C99 [-Wimplicit-function-declaration]
if (chdir (home) || chroot (home))
^
./env_unix.c:680:30: warning: implicit declaration of function 'geteuid' is
invalid in C99 [-Wimplicit-function-declaration]
else if (((pw->pw_uid == geteuid ()) || loginpw (pw,argc,argv)) &&
^
./env_unix.c:802:24: warning: implicit declaration of function 'getlogin' is
invalid in C99 [-Wimplicit-function-declaration]
if (((s = (char *) getlogin ()) && *s && (strlen (s) < NETMAXUSER) &&
^
./env_unix.c:1089:47: warning: implicit declaration of function 'pipe' is
invalid in C99 [-Wimplicit-function-declaration]
if (!closedBox && !stat (LOCKPGM,&sb) && (pipe (pi) >= 0)) {
^
./env_unix.c:1091:12: warning: implicit declaration of function 'fork' is
invalid in C99 [-Wimplicit-function-declaration]
if (!(j = fork ())) { /* make inferior process */
^
./env_unix.c:1099:6: warning: implicit declaration of function 'dup2' is invalid
in C99 [-Wimplicit-function-declaration]
dup2 (pi[1],1); dup2 (pi[1],2); dup2 (po[0],0);
^
./env_unix.c:1104:6: warning: implicit declaration of function 'setpgrp' is
invalid in C99 [-Wimplicit-function-declaration]
setpgrp (0,getpid ());
^
./env_unix.c:1106:6: warning: implicit declaration of function 'execv' is
invalid in C99 [-Wimplicit-function-declaration]
execv (argv[0],argv);
^
./env_unix.c:1108:4: warning: implicitly declaring C library function '_exit'
with type 'void (int) __attribute__((noreturn))'
_exit (1); /* child is done */
^
./env_unix.c:1108:4: note: please include the header <unistd.h> or explicitly
provide a declaration for '_exit'
./env_unix.c:1126:11: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (s = strrchr (base->lock,'/')) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./env_unix.c:1126:11: note: place parentheses around the assignment to silence
this warning
if (s = strrchr (base->lock,'/')) {
^
( )
./env_unix.c:1126:11: note: use '==' to turn this assignment into an equality
comparison
if (s = strrchr (base->lock,'/')) {
^
==
./env_unix.c:1266:53: warning: implicit declaration of function 'atol' is
invalid in C99 [-Wimplicit-function-declaration]
(read (fd,tmp,i) == i) && !(tmp[i] = 0) && ((i = atol (tmp)) > 0))
^
./env_unix.c:1609:18: warning: implicit declaration of function 'atoi' is
invalid in C99 [-Wimplicit-function-declaration]
locktimeout = atoi (k);
^
./env_unix.c:1707:20: warning: implicit declaration of function 'alarm' is
invalid in C99 [-Wimplicit-function-declaration]
ret = (void *) alarm (0);
^
In file included from osdep.c:49:
In file included from ./tcp_unix.c:21:
./ip_unix.c:170:23: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
(he = gethostbyname (lcase (strcpy (tmp,name))))) {
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netdb.h:277:43: note: passing argument to parameter here
struct hostent *gethostbyname(const char *);
^
In file included from osdep.c:49:
./tcp_unix.c:163:13: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./tcp_unix.c:163:13: note: place parentheses around the assignment to silence
this warning
if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) {
^
( )
./tcp_unix.c:163:13: note: use '==' to turn this assignment into an equality
comparison
if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) {
^
==
./tcp_unix.c:203:22: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0];
~~~~~~~~~~~~~^~~~~
./tcp_unix.c:203:22: note: place parentheses around the assignment to silence
this warning
if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0];
^
( )
./tcp_unix.c:203:22: note: use '==' to turn this assignment into an equality
comparison
if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0];
^
==
./tcp_unix.c:335:15: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
else if (ti = rshtimeout) { /* set rsh timeout */
~~~^~~~~~~~~~~~
./tcp_unix.c:335:15: note: place parentheses around the assignment to silence
this warning
else if (ti = rshtimeout) { /* set rsh timeout */
^
( )
./tcp_unix.c:335:15: note: use '==' to turn this assignment into an equality
comparison
else if (ti = rshtimeout) { /* set rsh timeout */
^
==
./tcp_unix.c:346:13: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./tcp_unix.c:346:13: note: place parentheses around the assignment to silence
this warning
if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr);
^
( )
./tcp_unix.c:346:13: note: use '==' to turn this assignment into an equality
comparison
if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr);
^
==
./tcp_unix.c:376:12: warning: implicitly declaring C library function 'vfork'
with type 'int (void)'
if ((i = fork ()) < 0) { /* make inferior process */
^
osdep.c:48:14: note: expanded from macro 'fork'
#define fork vfork
^
./tcp_unix.c:376:12: note: please include the header <unistd.h> or explicitly
provide a declaration for 'vfork'
if ((i = fork ()) < 0) { /* make inferior process */
^
osdep.c:48:14: note: expanded from macro 'fork'
#define fork vfork
^
In file included from osdep.c:49:
./tcp_unix.c:472:15: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
else if (st = tcp_getline (stream)) {
~~~^~~~~~~~~~~~~~~~~~~~~~
./tcp_unix.c:472:15: note: place parentheses around the assignment to silence
this warning
else if (st = tcp_getline (stream)) {
^
( )
./tcp_unix.c:472:15: note: use '==' to turn this assignment into an equality
comparison
else if (st = tcp_getline (stream)) {
^
==
./tcp_unix.c:499:9: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (n = min (size,stream->ictr)) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
./tcp_unix.c:499:9: note: place parentheses around the assignment to silence
this warning
if (n = min (size,stream->ictr)) {
^
( )
./tcp_unix.c:499:9: note: use '==' to turn this assignment into an equality
comparison
if (n = min (size,stream->ictr)) {
^
==
./tcp_unix.c:934:11: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./tcp_unix.c:934:11: note: place parentheses around the assignment to silence
this warning
if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) {
^
( )
./tcp_unix.c:934:11: note: use '==' to turn this assignment into an equality
comparison
if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) {
^
==
In file included from osdep.c:51:
./memmove.c:28:7: error: expected identifier
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:65:5: note: expanded from macro 'memmove'
((__darwin_obsz0 (dest) != (size_t) -1) \
^
/usr/include/secure/_common.h:38:63: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
^
In file included from osdep.c:51:
./memmove.c:28:7: error: expected ')'
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:65:27: note: expanded from macro 'memmove'
((__darwin_obsz0 (dest) != (size_t) -1) \
^
./memmove.c:28:7: note: to match this '('
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:65:4: note: expanded from macro 'memmove'
((__darwin_obsz0 (dest) != (size_t) -1) \
^
In file included from osdep.c:51:
./memmove.c:28:7: error: expected ')'
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:66:4: note: expanded from macro 'memmove'
? __builtin___memmove_chk (dest, src, len, __darwin_obsz0 (dest)) \
^
./memmove.c:28:7: note: to match this '('
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:65:3: note: expanded from macro 'memmove'
((__darwin_obsz0 (dest) != (size_t) -1) \
^
In file included from osdep.c:51:
./memmove.c:28:7: error: conflicting types for '__builtin_object_size'
void *memmove (s,ct,n)
^
/usr/include/secure/_string.h:65:5: note: expanded from macro 'memmove'
((__darwin_obsz0 (dest) != (size_t) -1) \
^
/usr/include/secure/_common.h:38:32: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
^
/usr/include/secure/_string.h:61:56: note: '__builtin_object_size' is a builtin
with type 'unsigned long (const void *, int)'
return __builtin___memcpy_chk (__dest, __src, __len, __darwin_obsz0(__dest));
^
/usr/include/secure/_common.h:38:32: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
^
In file included from osdep.c:51:
./memmove.c:28:23: error: expected ';' after top level declarator
void *memmove (s,ct,n)
^
;
./memmove.c:32:1: error: expected identifier or '('
{
^
In file included from osdep.c:52:
./strerror.c:28:1: error: expected identifier or '('
{
^
In file included from osdep.c:53:
./strstr.c:28:12: error: redefinition of 'ct' with a different type
char *ct;
^
./memmove.c:30:12: note: previous definition is here
void *ct;
^
In file included from osdep.c:53:
./strstr.c:29:1: error: expected identifier or '('
{
^
In file included from osdep.c:54:
./strtoul.c:32:1: error: expected identifier or '('
{
^
In file included from osdep.c:55:
./tz_bsd.c:29:1: error: expected identifier or '('
{
^
osdep.c:89:1: error: expected identifier or '('
{
^
osdep.c:125:1: error: expected identifier or '('
{
^
osdep.c:159:1: error: expected identifier or '('
{
^
osdep.c:172:1: error: expected identifier or '('
{
^
osdep.c:194:10: error: redefinition of 'n' with a different type
int n;
^
./memmove.c:31:13: note: previous definition is here
size_t n;
^
osdep.c:195:1: error: expected identifier or '('
{
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
71 warnings and 20 errors generated.
make[3]: *** [osdep.o] Error 1
make[2]: *** [bsd] Error 2
make[1]: *** [OSTYPE] Error 2
make: *** [bsd] Error 2
+---------------------------------------------+
| Problems building c-client |
| |
| Please check the output above for a |
| possible explanation for this failure |
+---------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment