On Tue, Oct 11, 2016 at 09:29:13AM +0200, Jakub Jelen via Cyrus-sasl wrote: > On 10/10/2016 10:13 PM, DGSJ via Cyrus-sasl wrote: > >Hola, > > > >I have a problem when trying to compile cyrus-sasl-2.1.26 from source. The > >error seems to be related with digestmd5.lo. > > > >My computer information is: > >3.13.0-93-lowlatency / O.S. Trisquel / x86_64 GNU/Linux > > > >I have used a --prefix option different than default. > > > >Is there a solution?. I would appreciate any help. > Without quoting the error what you see, it is very hard to estimate > what is happening on your machine. Hello all, These are a few of the last lines of the error message. ------------------------------------------------------------------------- digestmd5.c:1105:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, ((char *) deckey) + 8, 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c: In function 'digestmd5_server_mech_step': digestmd5.c:3051:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] text->nonce = text->realm = NULL; ^ digestmd5.c: In function 'parse_server_challenge': digestmd5.c:3653:10: warning: variable 'IsUTF8' set but not used [-Wunused-but-set-variable] bool IsUTF8 = FALSE; ^ make[2]: *** [digestmd5.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ---------------------------------------------------------------------------- Attached you can find the complete output of the error message. It is also attached the output of the ./configure command. I have found some kind of a fix, if you use --with-des=no, but I do not really know the practical consecuences of this option. Thank you all for your help DG > > Regards, > > -- > Jakub Jelen > Associate Software Engineer > Security Technologies > Red Hat > -- Daniel Gutierrez San Jose GPG pub ID = E62CA038
configure: loading cache ./config.cache checking build system type... (cached) x86_64-unknown-linux-gnu checking host system type... (cached) x86_64-unknown-linux-gnu checking target system type... (cached) x86_64-unknown-linux-gnu checking for a BSD-compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) gawk checking whether make sets $(MAKE)... (cached) yes checking for gcc... (cached) gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... (cached) o 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 style of include used by make... GNU checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... (cached) gcc -E checking for gawk... (cached) gawk checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c checking for __attribute__... (cached) yes checking for runpath switch... (cached) -Wl,-rpath, checking for ranlib... (cached) ranlib checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes checking for BSD-compatible nm... (cached) /usr/bin/nm -B loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... (cached) checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... no checking if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for objdir... .libs creating libtool updating cache ./config.cache configure: loading cache ./config.cache checking for connect... (cached) yes checking for res_search... (cached) no checking for dn_expand... (cached) no checking for dns_lookup... (cached) no checking DB path to use... /etc/sasldb2 checking for grep that handles long lines and -e... (cached) /bin/grep checking for egrep... (cached) /bin/grep -E checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for db.h... (cached) no checking for ndbm.h... (cached) no checking for gdbm.h... (cached) no checking DB library to use... no configure: WARNING: Disabling SASL authentication database support checking if Berkeley DB handle is kept open in SASLDB... no checking for dlopen in -ldl... (cached) yes checking /dev/random to use... /dev/random checking for nm... (cached) /usr/bin/nm -B checking for underscore before symbols... (cached) no checking for syslog... (cached) yes checking for security/pam_appl.h... (cached) no checking for pam/pam_appl.h... (cached) no checking for pam_start... (cached) no checking if I should include saslauthd... /var/state/saslauthd checking to include Courier authdaemond support... /dev/null checking if I should include pwcheck... no checking if I should include the alwaystrue verifier... no checking if we should enable sasl_checkapop... enabled checking CRAM-MD5... enabled checking size of long... (cached) 8 checking what directory libraries are found in... (cached) lib checking for RSAPublicEncrypt in -lrsaref... (cached) no checking for openssl/evp.h... (cached) no checking for OpenSSL... no checking DIGEST-MD5... enabled configure: WARNING: OpenSSL not found -- SCRAM will be disabled checking SCRAM... disabled configure: WARNING: OpenSSL not found -- OTP will be disabled checking OTP... disabled configure: WARNING: OpenSSL not found -- SRP will be disabled checking SRP... disabled checking KERBEROS_V4... disabled checking for crypt... (cached) no checking for crypt in -lcrypt... (cached) yes checking for gssapi.h... (cached) no checking for gssapi/gssapi.h... (cached) no configure: WARNING: Disabling GSSAPI - no include files found checking for gssapi/gssapi_ext.h... (cached) no checking GSSAPI... disabled checking PLAIN... enabled checking ANONYMOUS... enabled checking LOGIN... disabled configure: WARNING: OpenSSL not found -- NTLM will be disabled checking NTLM... disabled configure: WARNING: OpenSSL not found -- PASSDSS will be disabled checking PASSDSS... disabled checking SQL... disabled checking LDAPDB... disabled checking for dmalloc library... no checking for sfio library... no checking for getsubopt... (cached) yes checking for snprintf... (cached) yes checking for vsnprintf... (cached) yes checking for inet_aton in -lresolv... (cached) yes checking for getaddrinfo... (cached) yes checking for gai_strerror... (cached) yes checking for getnameinfo... (cached) yes checking for an ANSI C-conforming const... (cached) yes checking for inline... (cached) inline checking for mode_t... (cached) yes checking for pid_t... (cached) yes checking return type of signal handlers... (cached) void checking whether time.h and sys/time.h may both be included... (cached) yes checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... (cached) yes checking for library containing opendir... (cached) none required checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for des.h... (cached) no checking for dlfcn.h... (cached) yes checking for fcntl.h... (cached) yes checking for limits.h... (cached) yes checking for malloc.h... (cached) yes checking for paths.h... (cached) yes checking for strings.h... (cached) yes checking for sys/file.h... (cached) yes checking for sys/time.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for inttypes.h... (cached) yes checking for sys/uio.h... (cached) yes checking for sys/param.h... (cached) yes checking for sysexits.h... (cached) yes checking for stdarg.h... (cached) yes checking for varargs.h... (cached) no checking whether you have ss_family in struct sockaddr_storage... (cached) yes checking whether you have sa_len in struct sockaddr... (cached) no checking for socklen_t... (cached) yes checking for gethostname... (cached) yes checking for getdomainname... (cached) yes checking for getpwnam... (cached) yes checking for getspnam... (cached) yes checking for gettimeofday... (cached) yes checking for inet_aton... (cached) yes checking for memcpy... (cached) yes checking for mkdir... (cached) yes checking for select... (cached) yes checking for socket... (cached) yes checking for strchr... (cached) yes checking for strdup... (cached) yes checking for strerror... (cached) yes checking for strspn... (cached) yes checking for strstr... (cached) yes checking for strtol... (cached) yes checking for jrand48... (cached) yes checking for getpassphrase... (cached) no configure: updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating libsasl2.pc config.status: creating include/Makefile config.status: creating sasldb/Makefile config.status: creating plugins/Makefile config.status: creating lib/Makefile config.status: creating utils/Makefile config.status: creating doc/Makefile config.status: creating sample/Makefile config.status: creating java/Makefile config.status: creating java/CyrusSasl/Makefile config.status: creating java/Test/Makefile config.status: creating java/javax/Makefile config.status: creating java/javax/security/Makefile config.status: creating java/javax/security/auth/Makefile config.status: creating java/javax/security/auth/callback/Makefile config.status: creating pwcheck/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands === configuring in saslauthd (/opt/SASL2/cyrus-sasl-2.1.26/saslauthd) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/opt/SASL2' --cache-file=.././config.cache --srcdir=. configure: loading cache .././config.cache checking build system type... (cached) x86_64-unknown-linux-gnu checking host system type... (cached) x86_64-unknown-linux-gnu checking for a BSD-compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) gawk checking whether make sets $(MAKE)... (cached) yes checking for gcc... (cached) gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... (cached) o 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 style of include used by make... GNU checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... (cached) gcc -E checking for gawk... (cached) gawk checking whether make sets $(MAKE)... (cached) yes checking whether ln -s works... yes checking for a BSD-compatible install... /usr/bin/install -c checking for __attribute__... (cached) yes checking for runpath switch... (cached) -Wl,-rpath, checking for connect... (cached) yes checking for res_search... (cached) no checking for dn_expand... (cached) no checking for dns_lookup... (cached) no checking for grep that handles long lines and -e... (cached) /bin/grep checking for egrep... (cached) /bin/grep -E checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking size of long... (cached) 8 checking what directory libraries are found in... (cached) lib checking for RSAPublicEncrypt in -lrsaref... (cached) no checking for openssl/evp.h... (cached) no checking for OpenSSL... no checking KERBEROS_V4... disabled checking for crypt... (cached) no checking for crypt in -lcrypt... (cached) yes checking for gssapi.h... (cached) no checking for gssapi/gssapi.h... (cached) no configure: WARNING: Disabling GSSAPI - no include files found checking for gssapi/gssapi_ext.h... (cached) no checking GSSAPI... disabled checking for crypt... (cached) no checking for crypt in -lcrypt... (cached) yes checking for pam_start in -lpam... (cached) no checking for PAM support... no checking for inet_aton in -lresolv... (cached) yes checking to include LDAP support... no checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for crypt.h... (cached) yes checking for fcntl.h... (cached) yes checking for krb5.h... (cached) no checking for strings.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/uio.h... (cached) yes checking for an ANSI C-conforming const... (cached) yes checking for pid_t... (cached) yes checking whether gcc implements __func__... yes checking return type of signal handlers... (cached) void checking for gethostname... (cached) yes checking for mkdir... (cached) yes checking for socket... (cached) yes checking for strdup... (cached) yes checking for getspnam... (cached) yes checking for asprintf... (cached) yes checking for strlcat... (cached) no checking for strlcpy... (cached) no checking if getpwnam_r/getspnam_r take 5 arguments... yes checking for getaddrinfo... (cached) yes checking for getnameinfo... (cached) yes checking whether you have ss_family in struct sockaddr_storage... (cached) yes checking whether you have sa_len in struct sockaddr... (cached) no checking for socklen_t... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating saslauthd.h config.status: saslauthd.h is unchanged config.status: executing depfiles commands Configuration Complete. Type 'make' to build.
digestmd5.c:859:5: error: unknown type name 'des_key_schedule' des_key_schedule keysched; /* key schedule for des initialization */ ^ digestmd5.c:860:5: error: unknown type name 'des_cblock' des_cblock ivec; /* initial vector for encoding */ ^ digestmd5.c:861:5: error: unknown type name 'des_key_schedule' des_key_schedule keysched2; /* key schedule for 3des initialization */ ^ digestmd5.c: In function 'dec_3des': digestmd5.c:896:5: warning: implicit declaration of function 'des_ede2_cbc_encrypt' [-Wimplicit-function-declaration] des_ede2_cbc_encrypt((void *) input, ^ digestmd5.c:902:5: error: 'DES_DECRYPT' undeclared (first use in this function) DES_DECRYPT); ^ digestmd5.c:902:5: note: each undeclared identifier is reported only once for each function it appears in digestmd5.c: In function 'enc_3des': digestmd5.c:950:5: error: 'DES_ENCRYPT' undeclared (first use in this function) DES_ENCRYPT); ^ digestmd5.c: In function 'init_3des': digestmd5.c:970:5: warning: implicit declaration of function 'des_key_sched' [-Wimplicit-function-declaration] if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0) ^ digestmd5.c:970:24: error: 'des_cblock' undeclared (first use in this function) if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0) ^ digestmd5.c:970:36: error: expected expression before ')' token if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0) ^ digestmd5.c:974:36: error: expected expression before ')' token if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0) ^ digestmd5.c:976:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, ((char *) enckey) + 8, 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c:983:36: error: expected expression before ')' token if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0) ^ digestmd5.c:987:36: error: expected expression before ')' token if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0) ^ digestmd5.c:990:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, ((char *) deckey) + 8, 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c: In function 'dec_des': digestmd5.c:1014:5: warning: implicit declaration of function 'des_cbc_encrypt' [-Wimplicit-function-declaration] des_cbc_encrypt((void *) input, ^ digestmd5.c:1019:7: error: 'DES_DECRYPT' undeclared (first use in this function) DES_DECRYPT); ^ digestmd5.c:1023:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, input + (inputlen - 8), 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c: In function 'enc_des': digestmd5.c:1070:21: error: 'DES_ENCRYPT' undeclared (first use in this function) DES_ENCRYPT); ^ digestmd5.c:1074:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, output + (len - 8), 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c: In function 'init_des': digestmd5.c:1094:20: error: 'des_cblock' undeclared (first use in this function) des_key_sched((des_cblock *) keybuf, c->keysched); ^ digestmd5.c:1094:32: error: expected expression before ')' token des_key_sched((des_cblock *) keybuf, c->keysched); ^ digestmd5.c:1096:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, ((char *) enckey) + 8, 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c:1103:32: error: expected expression before ')' token des_key_sched((des_cblock *) keybuf, c->keysched); ^ digestmd5.c:1105:5: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default] memcpy(c->ivec, ((char *) deckey) + 8, 8); ^ In file included from /usr/include/features.h:374:0, from /usr/include/x86_64-linux-gnu/sys/types.h:25, from ../config.h:489, from digestmd5.c:48: /usr/include/x86_64-linux-gnu/bits/string3.h:48:1: note: expected 'void * __restrict__' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^ digestmd5.c: In function 'digestmd5_server_mech_step': digestmd5.c:3051:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] text->nonce = text->realm = NULL; ^ digestmd5.c: In function 'parse_server_challenge': digestmd5.c:3653:10: warning: variable 'IsUTF8' set but not used [-Wunused-but-set-variable] bool IsUTF8 = FALSE; ^ make[2]: *** [digestmd5.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2