helpGnuTLS - Support: sr #107806, Build failure for gnutls >=...

 
 

sr #107806: Build failure for gnutls >= 3.0.1 under Mac OS X

Submitted by:  Marius Schamschula <mschamschula>
Submitted on:  Sun 18 Sep 2011 10:48:37 PM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Need Info
Privacy:  Public Assigned to:  Nikos Mavrogiannopoulos <nmav>
Open/Closed:  Closed Operating System:  Mac OS

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Thu 04 Oct 2012 05:25:54 PM UTC, comment #9:

Thanks. Applied.

Nikos Mavrogiannopoulos <nmav>
Project AdministratorIn charge of this item.
Thu 04 Oct 2012 01:26:46 PM UTC, comment #8:

This reappeared with gnutls 3.1.2, this time in lib/nettle/wmnaf.c. Adding #include <config.h> makes it compile again. Patch attached.

(file #26698)

Anonymous
Mon 26 Sep 2011 12:33:28 PM UTC, comment #7:

Thanks. I'll apply them.

Anonymous
Sun 25 Sep 2011 08:17:18 PM UTC, comment #6:

Indeed, this helps!

The same patch also needs to be applied to

src/benchmark.c

and

doc/examples/ex-pkcs11-list.c

Marius Schamschula <mschamschula>
Sun 25 Sep 2011 05:41:14 PM UTC, comment #5:

Does the attached patch solve the issue?

(file #24021)

Nikos Mavrogiannopoulos <nmav>
Project AdministratorIn charge of this item.
Wed 21 Sep 2011 11:48:43 PM UTC, comment #4:

I just pulled the latest gnutls git sources. Unfortunately, I get the original compile error

Marius Schamschula <mschamschula>
Wed 21 Sep 2011 02:00:30 PM UTC, comment #3:

I updated gnulib files to the latest version, it should be safe to do so and it has some other improvements.  Maybe you can try building from git?  Or wait for the next release.

Simon Josefsson <jas>
Project Administrator
Tue 20 Sep 2011 12:38:54 AM UTC, comment #2:

I just pulled gnulib from git.

I applied it to gnutls 3.0.2 using gnulib-tool --add-import.

Now I get the following failure:

make[3]: Entering directory `/private/tmp/gnutls-3.0.2/lib'
  CCLD   libgnutls.la
/usr/bin/nm: no name list
/usr/bin/nm: no name list
ld: duplicate symbol _memxor in /usr/local/lib/libnettle.a(memxor.o) and ../gl/.libs/libgnu.a(memxor.o)
collect2: ld returned 1 exit status
make[3]: *** [libgnutls.la] Error 1
make[3]: Leaving directory `/private/tmp/gnutls-3.0.2/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/private/tmp/gnutls-3.0.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/private/tmp/gnutls-3.0.2'
make: *** [all] Error 2

Marius Schamschula <mschamschula>
Mon 19 Sep 2011 09:55:23 PM UTC, comment #1:

Hi,
 This looks like a gnulib issue. Could you test if a newer gnulib solves your issue? You'll need to download gnulib from
http://www.gnu.org/s/gnulib/ then get into gnutls directory and run
$ gnulib-tool --add-import

If ./configure && make succeeds
I'll update the gnulib in gnutls. Otherwise we'll need to make a bug report to gnulib people.

Nikos Mavrogiannopoulos <nmav>
Project AdministratorIn charge of this item.
Sun 18 Sep 2011 10:48:37 PM UTC, original submission:

The last version of gnutls that I could successfully build under Mac OS X (tested for 10.5.8/PPC, 10.6.8, 10.7.1) was version 3.0.0. As of version 3.0.1, and above, I get the following error:

serv.c: In function 'tcp_server':
serv.c:1236: warning: cast to pointer from integer of different size
In file included from ./../gl/unistd.h:112,
                 from ./../gl/stdlib.h:90,
                 from udp-serv.c:5:
./../gl/getopt.h:197: error: redefinition of 'struct option'
make[3]: *** [udp-serv.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Marius Schamschula <mschamschula>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26698:  gnutls-3.1.2-struct-option.patch added by None (313B - application/octet-stream)
file #24021:  patch.txt added by nmav (979B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jas (Posted a comment)
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by mschamschula (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-04 None Attached File- => Added gnutls-3.1.2-struct-option.patch, #26698
    2011-09-28 nmav Open/ClosedOpen => Closed
    2011-09-25 nmav Attached File- => Added patch.txt, #24021
    2011-09-19 nmav StatusNone => Need Info
        Assigned toNone => nmav

    Back to the top


    Powered by Savane 3.4