bugGNUstep - Bugs: bug #34598, gnustep-base configure doesn't...

Group
 
 

bug #34598: gnustep-base configure doesn't detect gnutls correctly

Submitter:  Sebastian Reitenbach <buzzdee>
Submitted:  Wed 19 Oct 2011 01:32:57 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Installation Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Oct 2011 11:40:50 PM UTC, comment #4: 

the check is wrong

#if defined(HAVE_GNUTLS)

HAVE_GNUTLS is defined, but defined to zero. either make it


#if defined(HAVE_GNUTLS) && HAVE_GNUTLS

or change something in configure so it isn't defined if its zero

julian <julian_>
Mon 24 Oct 2011 11:18:32 PM UTC, comment #3: 

and compiling without gnutls doesn't work at all in r34049

i configured with --disable-tls and still i get this (paraphrased)

GSSocketStream fatal error gnutls/gnutls.h not found

julian <julian_>
Wed 19 Oct 2011 05:44:13 PM UTC, comment #2: 

I've seen your changes. Now configure detects the availability of gnutls, but now has an unresolved symbol when linking autogsdoc:

clang  -Wl,-E      -shared-libgcc -fexceptions -fgnu-runtime -o obj/autogsdoc \
        ./obj/autogsdoc.obj/autogsdoc.m.o ./obj/autogsdoc.obj/AGSParser.m.o ./obj/autogsdoc.obj/AGSOutput.m.o ./obj/autogsdoc.obj/AGSIndex.m.o ./obj/autogsdoc.obj/AGSHtml.m.o \
          -L../Source/./obj    -L/gnustep-base-1.23.1_writes_to_HOME/GNUstep/Library/Libraries -L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib    -lgnustep-base    -lobjc2   -lgmp -lavahi-common -lavahi-client  -L/usr/local/lib -pthread -lgnutls -lxslt -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -liconv -lffi  -lpthread -lz -licui18n -licuuc -licudata  -lm
clang: warning: argument unused during compilation: '-shared-libgcc'
/usr/local/lib/libgmp.so.9.0: warning: warning: vsprintf() is often misused, please use vsnprintf()
/usr/local/lib/libgmp.so.9.0: warning: warning: strcpy() is almost always misused, please use strlcpy()
../Source/./obj/libgnustep-base.so.5.0: warning: warning: sprintf() is often misused, please use snprintf()
/usr/local/lib/libgnutls.so.18.1: warning: warning: strcat() is almost always misused, please use strlcat()
../Source/./obj/libgnustep-base.so.5.0: undefined reference to `gcry_control'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: * [obj/autogsdoc] Error 1
gmake[3]: * [internal-tool-all_] Error 2
gmake[2]: * [autogsdoc.all.tool.variables] Error 2
gmake[1]: * [internal-all] Error 2
gmake[1]: Leaving directory `/home/ports/pobj/gnustep-base-1.23.1/gnustep-base-1.23.1/Tools'
gmake: * [internal-all] Error 2

Sebastian Reitenbach <buzzdee>
Group Member
Wed 19 Oct 2011 01:45:54 PM UTC, comment #1: 

Thanks ... I added that fix.

Richard Frith-Macdonald <CaS>
Group Member
Wed 19 Oct 2011 01:32:57 PM UTC, original submission:  

when running ./configure then the gnutls test looks like this:

checking gnutls support...Unknown option: clibs

with attached patch, it will look like this:


checking gnutls support... checking dns_sd.h usability... no
checking dns_sd.h presence... no
checking for dns_sd.h... no

well, after regenerating ./configure.

it still looks a bit weird, but at least the error is gone.


Sebastian Reitenbach <buzzdee>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #24170:  patch-configure_ac added by buzzdee (467B - application/octet-stream - fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by julian_ (Posted a comment)
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by buzzdee (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-19 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2011-10-19 buzzdee Attached File- Added patch-configure_ac, #24170

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code