Re: Compling from source error

2016-10-12 Thread Jakub Jelen via Cyrus-sasl


On 10/11/2016 09:13 PM, DGSJ wrote:

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.


You are missing the OpenSSL dependency:

> digestmd5.c:859:5: error: unknown type name 'des_key_schedule'

This type is coming from the openssl/des.h



Regards,

--
Jakub Jelen
Associate Software Engineer
Security Technologies
Red Hat



--
Jakub Jelen
Associate Software Engineer
Security Technologies
Red Hat



Re: Compling from source error

2016-10-11 Thread DGSJ via Cyrus-sasl
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
che

Re: Compling from source error

2016-10-11 Thread Jakub Jelen via Cyrus-sasl

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.


Regards,

--
Jakub Jelen
Associate Software Engineer
Security Technologies
Red Hat