<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>40016</bug_id>
          
          <creation_ts>2004-01-31 15:08 0000</creation_ts>
          <short_desc>gnutls fails to compile (~x86)</short_desc>
          <delta_ts>2004-02-27 21:48:27 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41408</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ticho@gentoo.org</reporter>
          <assigned_to>liquidx@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2004-01-31 15:08:55 0000</bug_when>
            <thetext>This is the output of the make process:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libextra -Iminitasn1/ -I../includes -O2 -mcpu=i686 -march=i686 -pipe -fomit-frame-pointer -funroll-loops -finline-functions -pipe -I/usr/include -MT gnutls_record.lo -MD -MP -MF .deps/gnutls_record.Tpo -c gnutls_record.c  -fPIC -DPIC -o .libs/gnutls_record.o
In file included from /usr/include/gpg-error.h:24,
                 from /usr/include/gcrypt.h:27,
                 from gnutls_mpi.h:4,
                 from gnutls_int.h:108,
                 from gnutls_record.c:25:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/stddef.h:151: error: conflicting types for `ptrdiff_t&apos;
defines.h:58: error: previous declaration of `ptrdiff_t&apos;
In file included from gnutls_int.h:108,
                 from gnutls_record.c:25:
gnutls_mpi.h:27: error: syntax error before &apos;*&apos; token
gnutls_mpi.h:29: warning: `GCRY_MPI&apos; is deprecated (declared at /usr/include/gcrypt.h:153)
gnutls_mpi.h:30: warning: `GCRY_MPI&apos; is deprecated (declared at /usr/include/gcrypt.h:153)
gnutls_mpi.h:32: warning: `GCRY_MPI&apos; is deprecated (declared at /usr/include/gcrypt.h:153)
gnutls_mpi.h:33: warning: `GCRY_MPI&apos; is deprecated (declared at /usr/include/gcrypt.h:153)
gnutls_mpi.h:35: error: syntax error before &quot;MPI&quot;
In file included from gnutls_record.c:25:
gnutls_int.h:225: error: syntax error before &quot;MPI&quot;
gnutls_int.h:225: warning: no semicolon at end of struct or union
gnutls_int.h:226: warning: data definition has no type or storage class
gnutls_int.h:227: error: syntax error before &quot;client_g&quot;
gnutls_int.h:227: warning: data definition has no type or storage class
gnutls_int.h:228: error: syntax error before &quot;client_p&quot;
gnutls_int.h:228: warning: data definition has no type or storage class
gnutls_int.h:229: error: syntax error before &quot;dh_secret&quot;
gnutls_int.h:229: warning: data definition has no type or storage class
gnutls_int.h:231: error: syntax error before &quot;A&quot;
gnutls_int.h:231: warning: data definition has no type or storage class
gnutls_int.h:232: error: syntax error before &quot;B&quot;
gnutls_int.h:232: warning: data definition has no type or storage class
gnutls_int.h:233: error: syntax error before &quot;u&quot;
gnutls_int.h:233: warning: data definition has no type or storage class
gnutls_int.h:234: error: syntax error before &quot;b&quot;
gnutls_int.h:234: warning: data definition has no type or storage class
gnutls_int.h:235: error: syntax error before &quot;a&quot;
gnutls_int.h:235: warning: data definition has no type or storage class
gnutls_int.h:236: error: syntax error before &quot;x&quot;
gnutls_int.h:236: warning: data definition has no type or storage class
gnutls_int.h:239: error: syntax error before &quot;rsa&quot;
gnutls_int.h:239: warning: data definition has no type or storage class
gnutls_int.h:264: error: syntax error before &apos;}&apos; token
In file included from gnutls_int.h:270,
                 from gnutls_record.c:25:
gnutls_hash_int.h:29: warning: `GCRY_MD_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:1032)
In file included from gnutls_int.h:271,
                 from gnutls_record.c:25:
gnutls_cipher_int.h:27: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
gnutls_cipher_int.h:28: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
gnutls_cipher_int.h:29: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
gnutls_cipher_int.h:30: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
In file included from gnutls_cert.h:4,
                 from gnutls_int.h:273,
                 from gnutls_record.c:25:
gnutls_pk.h:5: error: syntax error before &quot;MPI&quot;
gnutls_pk.h:7: error: syntax error before &quot;MPI&quot;
gnutls_pk.h:9: error: syntax error before &quot;MPI&quot;
gnutls_pk.h:11: error: syntax error before &quot;MPI&quot;
gnutls_pk.h:13: error: syntax error before &quot;MPI&quot;
In file included from gnutls_int.h:273,
                 from gnutls_record.c:25:
gnutls_cert.h:39: error: syntax error before &quot;MPI&quot;
gnutls_cert.h:39: warning: no semicolon at end of struct or union
gnutls_cert.h:72: error: syntax error before &apos;}&apos; token
gnutls_cert.h:72: warning: data definition has no type or storage class
gnutls_cert.h:75: error: syntax error before &quot;MPI&quot;
gnutls_cert.h:75: warning: no semicolon at end of struct or union
gnutls_cert.h:96: error: syntax error before &apos;}&apos; token
gnutls_cert.h:96: warning: data definition has no type or storage class
gnutls_cert.h:100: error: syntax error before &apos;*&apos; token
gnutls_cert.h:102: error: syntax error before &quot;cert&quot;
In file included from gnutls_record.c:25:
gnutls_int.h:381: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
gnutls_int.h:382: warning: `GCRY_CIPHER_HD&apos; is deprecated (declared at /usr/include/gcrypt.h:580)
gnutls_int.h:609: error: syntax error before &quot;MPI&quot;
gnutls_int.h:609: warning: no semicolon at end of struct or union
gnutls_int.h:610: warning: data definition has no type or storage class
gnutls_int.h:616: error: syntax error before &apos;}&apos; token
gnutls_int.h:616: warning: data definition has no type or storage class
gnutls_int.h:623: error: syntax error before &quot;MPI&quot;
gnutls_int.h:623: warning: no semicolon at end of struct or union
gnutls_int.h:624: warning: data definition has no type or storage class
In file included from gnutls_record.c:44:
gnutls_dh.h:21: error: syntax error before &quot;gnutls_get_dh_params&quot;
gnutls_dh.h:21: error: syntax error before &apos;*&apos; token
gnutls_dh.h:21: warning: data definition has no type or storage class
gnutls_dh.h:22: error: syntax error before &quot;gnutls_calc_dh_secret&quot;
gnutls_dh.h:22: error: syntax error before &apos;*&apos; token
gnutls_dh.h:22: warning: data definition has no type or storage class
gnutls_dh.h:23: error: syntax error before &quot;gnutls_calc_dh_key&quot;
gnutls_dh.h:23: error: syntax error before &quot;f&quot;
gnutls_dh.h:23: warning: data definition has no type or storage class
gnutls_dh.h:24: error: syntax error before &apos;*&apos; token
gnutls_dh.h:28: error: syntax error before &quot;_gnutls_dh_default_params&quot;
gnutls_dh.h:28: warning: data definition has no type or storage class
make[3]: *** [gnutls_record.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnutls-0.8.12/work/gnutls-0.8.12/lib&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnutls-0.8.12/work/gnutls-0.8.12/lib&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnutls-0.8.12/work/gnutls-0.8.12&apos;
make: *** [all] Error 2

!!! ERROR: net-libs/gnutls-0.8.12 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! (no error message)



I tried re-emerging both libgcrypto and libgpg-error, to no avail.
Here&apos;s output of my `emerge --info`:
(don&apos;t get confused by the added &quot;-thelair&quot; kernel extraversion, the kernel is a genuine vanilla one)

Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.4.24-thelair)
=================================================================
System uname: 2.4.24-thelair i686 Intel(R) Celeron(R) CPU 2.20GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -mcpu=i686 -march=i686 -pipe -fomit-frame-pointer -funroll-loops&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -march=i686 -pipe -fomit-frame-pointer -funroll-loops&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.ynet.sk/pub http://ftp.easynet.nl/mirror/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://gentoo.ynet.sk/gentoo-portage&quot;
USE=&quot;X aalib alsa apm arts avi berkdb cdr crypt directfb doc encode foomaticdb gdbm gif gnutls gpm gtk gtk2 guile imlib java jpeg libg++ libwww mad mbox mikmod mmx mozilla moznocompose moznoirc moznomail moznoxft mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang ssl svga tcltk tcpd tetex tiff truetype type1 unicode x86 xml2 xmms xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mystilleef@gmail.com</who>
            <bug_when>2004-01-31 18:11:39 0000</bug_when>
            <thetext>Same problem here. And because of this, Evolution won&apos;t compile too. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ben@galactic-tales.de</who>
            <bug_when>2004-02-02 06:34:41 0000</bug_when>
            <thetext>Look at Bug #38509 for a more detailed description and a possible solution.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2004-02-02 07:06:41 0000</bug_when>
            <thetext>Created an attachment (id=24809)
patched libsoup

I have managed to fix my problem with new gnutls ebuild from a comments in bug
#38509 (http://bugs.gentoo.org/attachment.cgi?id=24092&amp;action=view) and by
patching libsoup according to comment in bug #37732. The patch given as an
attachment there did not work with &apos;epatch&apos; command in libsoup ebuild, so I
created a new one which works (next attachment). It only removes one line from
one source file.

This attachment is an ebuild which utilizes this patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2004-02-02 07:08:08 0000</bug_when>
            <thetext>Created an attachment (id=24810)
the gnutls patch

Put this patch in files/ directory inside libsoup directory in portage and
emerge the ebuild given in previous attachment to this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2004-02-04 10:22:06 0000</bug_when>
            <thetext>well, everyone here has a different problem, but they should all be fixed now. when adding to an existing problem, make sure your bug is similar (for instance, about the same package.) 

thanks for all your reports.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24809</attachid>
            <date>2004-02-02 07:06 0000</date>
            <desc>patched libsoup</desc>
            <filename>libsoup-1.99.26-r2.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVS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Cglsb2NhbCBteWNvbmYKCWVsaWJ0b29saXpl
CgoJIyBjdXJyZW50IGJ1aWxkIHN5c3RlbSBkZWVtcyBzc2wgYXMgTk9UIEFOIE9QVElPTi4KCSMg
dXNlIHNzbCAmJiBteWNvbmY9Ii0tZW5hYmxlLXNzbCAtLWVuYWJsZS1vcGVuc3NsIgoJdXNlIGdu
dXRscyBcCgkJJiYgbXljb25mPSIke215Y29uZn0gLS13aXRoLXNzbD1nbnV0bHMiIFwKCQl8fCBt
eWNvbmY9IiR7bXljb25mfSAtLXdpdGgtc3NsPW9wZW5zc2wiCgoJZWNvbmYgJHtteWNvbmZ9IHx8
IGRpZSAiY29uZmlndXJlIGZhaWxlZCIKCWVtYWtlIHx8IGRpZSAibWFrZSBmYWlsZWQiCn0KCnNy
Y19pbnN0YWxsKCkgewoJZWluc3RhbGwgfHwgZGllICJpbnN0YWxsIGZhaWxlZCIKCWRvZG9jIEFV
VEhPUlMgQ09QWUlORyogQ2hhbmdlTG9nIFJFQURNRSogVE9ETwp9Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24810</attachid>
            <date>2004-02-02 07:08 0000</date>
            <desc>the gnutls patch</desc>
            <filename>libsoup-1.99.26-gnutls.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtYnVyIGxpYnNvdXAtMS45OS4yNi9saWJzb3VwL3NvdXAtZ251dGxzLmMgbGlic291cC0x
Ljk5LjI2LWdudXRscy9saWJzb3VwL3NvdXAtZ251dGxzLmMKLS0tIGxpYnNvdXAtMS45OS4yNi9s
aWJzb3VwL3NvdXAtZ251dGxzLmMJMjAwMy0wNC0wMSAwMDozMjo0OC4wMDAwMDAwMDAgKzAyMDAK
KysrIGxpYnNvdXAtMS45OS4yNi1nbnV0bHMvbGlic291cC9zb3VwLWdudXRscy5jCTIwMDQtMDIt
MDIgMTU6NTY6MzYuMDAwMDAwMDAwICswMTAwCkBAIC03Nyw3ICs3Nyw2IEBACiAKIAlpZiAoc3Rh
dHVzICYgR05VVExTX0NFUlRfSU5WQUxJRCB8fAogCSAgICBzdGF0dXMgJiBHTlVUTFNfQ0VSVF9O
T1RfVFJVU1RFRCB8fAotCSAgICBzdGF0dXMgJiBHTlVUTFNfQ0VSVF9DT1JSVVBURUQgfHwKIAkg
ICAgc3RhdHVzICYgR05VVExTX0NFUlRfUkVWT0tFRCkKIAl7CiAJCWdfd2FybmluZyAoIlRoZSBj
ZXJ0aWZpY2F0ZSBpcyBub3QgdHJ1c3RlZC4iKTsK
</data>        

          </attachment>
    </bug>

</bugzilla>