On 20.01.2018 2:30, Edgar Pettijohn wrote:
On 01/19/18 17:57, Reio Remma wrote:
On 20.01.2018 1:22, Edgar Pettijohn wrote:
On 01/19/18 14:56, Reio Remma wrote:
Hello!
There are some warnings when doing make check in CentOS 7 (not sure
how serious the warnings are ( I'm averse to warnings)).
Thanks!
Reio
-------------------------------------------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat
-I/usr/include -g -O2 -fPIC -DPIC -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE
-D_DEFAULT_SOURCE -c -o crypt_checkpass.o crypt_checkpass.c
crypt_checkpass.c: In function ‘crypt_checkpass’:
crypt_checkpass.c:20:2: warning: implicit declaration of function
‘crypt’ [-Wimplicit-function-declaration]
if (strcmp(crypt(pass, goodhash), goodhash) == 0)
^
crypt_checkpass.c:20:2: warning: passing argument 1 of ‘strlen’
makes pointer from integer without a cast [enabled by default]
In file included from crypt_checkpass.c:7:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but
argument is of type ‘int’
extern size_t strlen (const char *__s)
^
crypt_checkpass.c:20:2: warning: passing argument 1 of
‘__builtin_strcmp’ makes pointer from integer without a cast
[enabled by default]
if (strcmp(crypt(pass, goodhash), goodhash) == 0)
^
crypt_checkpass.c:20:2: note: expected ‘const char *’ but argument
is of type ‘int’
crypt_checkpass.c:20:2: warning: passing argument 1 of ‘strlen’
makes pointer from integer without a cast [enabled by default]
In file included from crypt_checkpass.c:7:0:
/usr/include/string.h:395:15: note: expected ‘const char *’ but
argument is of type ‘int’
extern size_t strlen (const char *__s)
^
crypt_checkpass.c:20:2: warning: passing argument 1 of
‘__builtin_strcmp’ makes pointer from integer without a cast
[enabled by default]
if (strcmp(crypt(pass, goodhash), goodhash) == 0)
^
crypt_checkpass.c:20:2: note: expected ‘const char *’ but argument
is of type ‘int’
crypt_checkpass.c:20:2: warning: passing argument 1 of
‘__builtin_strcmp’ makes pointer from integer without a cast
[enabled by default]
crypt_checkpass.c:20:2: note: expected ‘const char *’ but argument
is of type ‘int’
crypt_checkpass.c:20:2: warning: passing argument 1 of
‘__builtin_strcmp’ makes pointer from integer without a cast
[enabled by default]
crypt_checkpass.c:20:2: note: expected ‘const char *’ but argument
is of type ‘int’
Do you have crypt.h in /usr/include?
Yes, it's there.
Reio
How about:
grep CRYPT config.h
#define HAVE_CRYPT 1
/* #undef HAVE_CRYPT_CHECKPASS */
#define HAVE_CRYPT_H 1
#define HAVE_GCM_CRYPTO 1
--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org