bugGNUstep - Bugs: bug #34876, Old gnutls function usage

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34876: Old gnutls function usage

Submitted by:  Fred Kiefer <FredKiefer>
Submitted on:  Mon 21 Nov 2011 09:26:15 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Sun 13 Jan 2013 10:57:31 PM UTC, comment #4:

Nobody complained, I suppose fixed.

Riccardo Mottola <rmottola>
Project Member
Wed 04 Jan 2012 08:27:01 AM UTC, comment #3:

compiles without warning on opensuse 12.1, with gnutls-3.0.3 installed.

Sebastian Reitenbach <buzzdee>
Project Member
Tue 03 Jan 2012 09:37:32 AM UTC, comment #2:

I tried to change this code myself, but this will need more tests on other machines with different versions of GNUTLS.

This change should allow us to comile GNUstep base with the OpenSuse Build Service (or what ever it is called now).

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Mon 21 Nov 2011 11:15:23 PM UTC, comment #1:

I get the same warnings on OpenBSD, actually since long time already.

Sebastian Reitenbach <buzzdee>
Project Member
Mon 21 Nov 2011 09:26:15 PM UTC, original submission:

When compiling base on OpenSuse 12.1 I get the following warnings:

Compiling file GSSocketStream.m ...
GSSocketStream.m: In function ‘-[GSTLS initWithInput:output:]’:
GSSocketStream.m:666:7: warning: ‘gnutls_protocol_set_priority’ is deprecated (declared at /usr/include/gnutls/compat.h:285) [-Wdeprecated-declarations]
GSSocketStream.m:673:7: warning: ‘gnutls_protocol_set_priority’ is deprecated (declared at /usr/include/gnutls/compat.h:285) [-Wdeprecated-declarations]
GSSocketStream.m:696:3: warning: implicit declaration of function ‘gnutls_transport_set_lowat’ [-Wimplicit-function-declaration]

And later the corresponding linker error:
Linking tool autogsdoc ...
../Source/./obj/libgnustep-base.so: undefined reference to `gnutls_transport_set_lowat'
collect2: ld returned 1 exit status

This should be fixed by detecting the gnutls version in configure and using #ifdef around that call as explained in this post:

http://old.nabble.com/deprecating-gnutls_transport_set_lowat%28%29-td31899419.html

We also should replace the other deprecated function call as explained here:

http://univ.uniyar.ac.ru/pipermail/lftp/2011-July/000010.html

For now I will just switch off the usage of gnutls:
configure --disable-tls

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rmottola (Posted a comment)
  • -unavailable- added by buzzdee (Posted a comment)
  • -unavailable- added by FredKiefer (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Jan 2013 10:57:31 PM UTCrmottolaStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Tue 03 Jan 2012 09:37:32 AM UTCFredKieferStatusNone=>Ready For Test
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1