Problem compiling gnutls 2.12.12 on Solaris 9 Sparc

Dagobert Michelsen dam at opencsw.org
Wed Oct 26 04:36:39 CEST 2011


Hi,

I have a problem compiling gnutls 2.12.12 on Solaris 9 Sparc with Sun Studio 12:

- The definition of _FILE_OFFSET_BITS probably in config.h is too late.
  I have seen and reported this earlier for Wireshark as described in this thread:
    http://www.wireshark.org/lists/wireshark-bugs/201106/msg00239.html

>   CC     dummy.lo
> "../config.h", line 1094: warning: macro redefined: _FILE_OFFSET_BITS
> "/opt/csw/include/zlib.h", line 1583: identifier redeclared: gzseek64
>         current : function(pointer to void, long, int) returning long
>         previous: function(pointer to void, long long, int) returning long long : "/opt/csw/include/zlib.h", line 1567
> "/opt/csw/include/zlib.h", line 1584: identifier redeclared: gztell64
>         current : function(pointer to void) returning long
>         previous: function(pointer to void) returning long long : "/opt/csw/include/zlib.h", line 1568
> "/opt/csw/include/zlib.h", line 1585: identifier redeclared: gzoffset64
>         current : function(pointer to void) returning long
>         previous: function(pointer to void) returning long long : "/opt/csw/include/zlib.h", line 1569
> "/opt/csw/include/zlib.h", line 1586: identifier redeclared: adler32_combine64
>         current : function(unsigned long, unsigned long, long) returning unsigned long
>         previous: function(unsigned long, unsigned long, long long) returning unsigned long : "/opt/csw/include/zlib.h", line 1570
> "/opt/csw/include/zlib.h", line 1587: identifier redeclared: crc32_combine64
>         current : function(unsigned long, unsigned long, long) returning unsigned long
>         previous: function(unsigned long, unsigned long, long long) returning unsigned long : "/opt/csw/include/zlib.h", line 1571
> cc: acomp failed for dummy.c
> gmake[4]: *** [dummy.lo] Error 1



- There are duplicate definitions from gnulib in libnettle 2.4, the issue is probably
  related to the previous one:

> Making all in nettle
> gmake[4]: Entering directory `/home/dam/mgar/pkg/gnutls/trunk/work/solaris9-sparc/build-isa-sparcv8/gnutls-2.12.12/lib/nettle'
>   CC     pk.lo
> "/opt/csw/include/nettle/nettle-stdint.h", line 237: identifier redeclared: gl_int_fast8_t
>         current : signed char
>         previous: long : "./../gl/stdint.h", line 241
> "/opt/csw/include/nettle/nettle-stdint.h", line 238: warning: modification of typedef with "int" ignored
> "/opt/csw/include/nettle/nettle-stdint.h", line 238: identifier redeclared: gl_int_fast16_t
>         current : int
>         previous: long : "./../gl/stdint.h", line 243
> "/opt/csw/include/nettle/nettle-stdint.h", line 239: warning: modification of typedef with "int" ignored
> "/opt/csw/include/nettle/nettle-stdint.h", line 239: identifier redeclared: gl_int_fast32_t
>         current : int
>         previous: long : "./../gl/stdint.h", line 245
> "/opt/csw/include/nettle/nettle-stdint.h", line 241: warning: typedef redeclared: int64_t
> "/opt/csw/include/nettle/nettle-stdint.h", line 244: identifier redeclared: gl_uint_fast8_t
>         current : unsigned char
>         previous: unsigned long : "./../gl/stdint.h", line 242
> "/opt/csw/include/nettle/nettle-stdint.h", line 245: identifier redeclared: gl_uint_fast16_t
>         current : unsigned int
>         previous: unsigned long : "./../gl/stdint.h", line 244
> "/opt/csw/include/nettle/nettle-stdint.h", line 246: identifier redeclared: gl_uint_fast32_t
>         current : unsigned int
>         previous: unsigned long : "./../gl/stdint.h", line 246
> "/opt/csw/include/nettle/nettle-stdint.h", line 248: warning: typedef redeclared: uint64_t
> cc: acomp failed for pk.c
> gmake[4]: *** [pk.lo] Error 1
> gmake[4]: Leaving directory `/home/dam/mgar/pkg/gnutls/trunk/work/solaris9-sparc/build-isa-sparcv8/gnutls-2.12.12/lib/nettle'


Best regards

  -- Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896





More information about the Gnutls-devel mailing list