#6758: visibility.c in libgcrypt attempts to return value from void function.
--------------------------+-------------------------------------------------
 Reporter:  drkirkby      |       Owner:  somebody  
     Type:  defect        |      Status:  new       
 Priority:  major         |   Milestone:  sage-4.1.2
Component:  cryptography  |    Keywords:            
 Reviewer:                |      Author:            
   Merged:                |  
--------------------------+-------------------------------------------------
 I tried to use the Sun compiler to build Sage. Since it's more fussy that
 gcc, it is showing as an '''error'''

 {{{

 Making all in src
 make[4]: Entering directory
 
`/export/home/drkirkby/sage/suncc/sage-4.1.1/spkg/build/libgcrypt-1.4.3.p1/src/src'
 source='visibility.c' object='libgcrypt_la-visibility.lo' libtool=yes \
 DEPDIR=.deps depmode=none /bin/bash ../depcomp \
 /bin/bash ../libtool --tag=CC   --mode=compile /opt/sunstudio12.1/bin/cc
 -DHAVE_CONFIG_H -I. -I..
 -I/export/home/drkirkby/sage/suncc/sage-4.1.1/local/include
 -I/export/home/drkirkby/sage/suncc/sage-4.1.1/local/include -g -c -o
 libgcrypt_la-visibility.lo `test -f 'visibility.c' || echo
 './'`visibility.c
 mkdir .libs
  /opt/sunstudio12.1/bin/cc -DHAVE_CONFIG_H -I. -I..
 -I/export/home/drkirkby/sage/suncc/sage-4.1.1/local/include
 -I/export/home/drkirkby/sage/suncc/sage-4.1.1/local/include -g -c
 visibility.c  -KPIC -DPIC -o .libs/libgcrypt_la-visibility.o
 "visibility.c", line 702: void function cannot return value
 "visibility.c", line 851: void function cannot return value
 cc: acomp failed for visibility.c
 }}}
 The dodgy bits of code are:
 {{{
 void
 gcry_md_hash_buffer (int algo, void *digest,
                      const void *buffer, size_t length)
 {
   return _gcry_md_hash_buffer (algo, digest, buffer, length);
 }
 }}}
 and
 {{{
 void
 gcry_ac_io_init_va (gcry_ac_io_t *ac_io, gcry_ac_io_mode_t mode,
                     gcry_ac_io_type_t type, va_list ap)
 {
   return _gcry_ac_io_init_va (ac_io, mode, type, ap);
 }
 }}}
 The Sun compiler will not accept this, and so exits, aborting the build of
 Sage.

 Note there are license issues with libgcrypt too - it is GPL 3. See #6757

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6758>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to