cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Configure curl for build with Mozilla LDAP SDK and my version of openssl: LDAPS support became disabled (Daniel Stenberg)

From: slon v sobstvennom palto <slonvpalto_at_gmail.com>
Date: Fri, 25 May 2012 21:12:27 +0300

Unfortunately config.log doesn't contain any suitable error that explains
this issue. And maybe below I found why is that.

I run 'configure' (curl 7.25) with the next parametrs:
configure --enable-ldap --enable-ldaps =ldap50

At line 19209 of 'configure' we see:
if test "$LDAPLIBNAME" ; then
This is true if we specified something at '--with-ldap-lib' parameter of
'configure' script.

Then at line 19267 we see:
CURL_DISABLE_LDAPS=1

This last code line seems to be unconditionally executed if the condition
from line above is true. It means that if I specify LDAP library with
'--with-ldap-lib' then LDAPS support will be disabled. Could you please
assist/comment?

On Thu, May 24, 2012 at 1:00 PM, <curl-library-request_at_cool.haxx.se> wrote:

> Send curl-library mailing list submissions to
> curl-library_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
> or, via email, send a message with subject or body 'help' to
> curl-library-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-library-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of curl-library digest..."
>
>
> Today's Topics:
>
> 1. re: libcurl 7.25 / multi / win32 (adam smith)
> 2. DELELE occurence error later (M. Shinkaze)
> 3. compile curlgtk (Rudra Banerjee)
> 4. Re: Configure curl for build with Mozilla LDAP SDK and my
> version of openssl: LDAPS support became disabled (Daniel Stenberg)
> 5. Re: DELELE occurence error later (Daniel Stenberg)
> 6. re: libcurl 7.25 / multi / win32 (Daniel Stenberg)
> 7. Re: compile curlgtk (Daniel Stenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 May 2012 13:31:01 +0100
> From: adam smith <adamvietnam_at_googlemail.com>
> To: curl-library_at_cool.haxx.se
> Subject: re: libcurl 7.25 / multi / win32
> Message-ID:
> <CAPJJmq6Bio_1DiXm6ZmQkjZNgEJM1GYpEpLJRDuFHF+ywZpyxg_at_mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Daniel,
>
> Get maxfd == -1 as long as I let it run...
>
> In terms of verbose output the my debug callback is never called. I use
> these options...
>
> curl_easy_setopt(eh, CURLOPT_URL,"http://www.c-burn.com");
> curl_easy_setopt(eh, CURLOPT_WRITEDATA, 0L);
> curl_easy_setopt(eh, CURLOPT_VERBOSE, 1L);
> curl_easy_setopt(eh, CURLOPT_WRITEFUNCTION, adam_write_callback);
> curl_easy_setopt(eh, CURLOPT_DEBUGFUNCTION, adam_debug_callback);
> curl_easy_setopt(eh, CURLOPT_DEBUGDATA, 0L)
>
>
> Is this the correct way to get verbose output?
>
> Thanks.
>
> Adam
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20120523/675a6794/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 23 May 2012 13:29:02 +0200
> From: "M. Shinkaze" <shinkaze75_at_gmail.com>
> To: curl-library_at_cool.haxx.se
> Subject: DELELE occurence error later
> Message-ID:
> <CAP7n=w_326jujd8=ixy=nyOtjpUYWVPTn+X_AzCvkaDvXLc8qQ_at_mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I am using libCurl for an applicatin which have to upload and download some
> files and delete others. I use one unique easy handle (but using
> curl_easy_reset and reconnect between each curl_easy_perform - persistent
> handle)
>
> a part of my code
>
> curl_easy_setopt(Curl, CURLOPT_ERRORBUFFER, CurlErrorBuff);
> headers = curl_slist_append(headers, "CWD /Temp");
> headers = curl_slist_append(headers, "DELE FILE.txt");
> m_CurlErrorCode = curl_easy_setopt(Curl, CURLOPT_POSTQUOTE, headers);
> m_CurlErrorCode = curl_easy_perform(Curl);
>
>
> the result of CURLOPT_ERRORBUFFER is
> Curl error: 21 (QUOT string not accepted: DELE FILE.txt)
> that fine I can handle it cause in some case the file doesnot exist
>
> then : curl_easy_reset(Curl)
>
> but just after on my source code, I trying to "reconnect":
> CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_USERNAME, user);
> CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_PASSWORD, passwd);
> m_CurlErrorCode = curl_easy_perform(pCurl);
> then here I got this error of CURLOPT_ERRORBUFFER is
> Curl error: 23 (Failed writing body (299 != 1004)
> I dont understand why, It seems I was deconencted by the server after the
> DELETE error ?
> or did I miss something osbvious ?
>
> I am using libcurl/7.22.0 compiled with OpenSSL/0.9.8r & zlib/1.2.5 &
> libssh2/1.3.0
> on winXP
>
> Thanks in advance
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20120523/1f4c951e/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 24 May 2012 02:39:34 +0530
> From: Rudra Banerjee <bnrj.rudra_at_yahoo.com>
> To: curl-library_at_cool.haxx.se
> Subject: compile curlgtk
> Message-ID: <1337807374.6934.5.camel_at_roddur>
> Content-Type: text/plain; charset="UTF-8"
>
> I am very new to curl (and gtk as well).
> I was trying to compile and run curlgtk.c code.
> As given in README file, I first tried:
> $ `curl-config --cc --cflags --libs` -o curlgtk curlgtk.c
> which gives error:
> curlgtk.c:13:21: fatal error: gtk/gtk.h: No such file or directory
> compilation terminated.
>
> After googling, I found a post in arch forum
> (https://bbs.archlinux.org/viewtopic.php?id=106212)
> which adviced to run the code like
> gcc curlgtk.c $(pkg-config --libs --cflags gtk+-2.0 libcurl)
> which is giving error like
> /usr/bin/ld: /tmp/ccItZyWi.o: undefined reference to symbol
> 'g_thread_init'
> /usr/bin/ld: note: 'g_thread_init' is defined in
> DSO /lib64/libgthread-2.0.so.0 so try adding it to the linker command
> line
> /lib64/libgthread-2.0.so.0: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
>
> I have installed glib and glib-devel.
> But no success.
> I am running fedora 17 beta and the curl, libcurl and gtk-devel from
> there repo.
> Please guide me.
> Regards,
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 24 May 2012 09:20:35 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Configure curl for build with Mozilla LDAP SDK and my
> version of openssl: LDAPS support became disabled
> Message-ID: <alpine.DEB.2.00.1205240919590.10222_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Tue, 22 May 2012, slon v sobstvennom palto wrote:
>
> > All specified libraries are present in the specified directory. However
> > curl configurator reports that LDAPS support is turned off.
> > ....
> > LDAP support: enabled
> > LDAPS support: no (--enable-ldaps)
>
> Check your config.log after configure has run to see exactly which tests
> that
> failed and more specificly how.
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 24 May 2012 09:24:35 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: DELELE occurence error later
> Message-ID: <alpine.DEB.2.00.1205240922050.10222_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Wed, 23 May 2012, M. Shinkaze wrote:
>
> > headers = curl_slist_append(headers, "CWD /Temp");
>
> In general CWD shouldn't be needed as a QUOTE command since you can provide
> the a path in the URL.
>
> > but just after on my source code, I trying to "reconnect":
> > CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_USERNAME, user);
> > CurlErrorCode = curl_easy_setopt(pCurl, CURLOPT_PASSWORD, passwd);
> > m_CurlErrorCode = curl_easy_perform(pCurl);
> > then here I got this error of CURLOPT_ERRORBUFFER is
> > Curl error: 23 (Failed writing body (299 != 1004)
> > I dont understand why, It seems I was deconencted by the server after the
> > DELETE error ?
>
> Why would it be related to the previous invoke at all? You haven't shown us
> your code and you haven't told us how to reproduce this so it's really not
> possible to tell why you're getting this error.
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 24 May 2012 09:27:56 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: re: libcurl 7.25 / multi / win32
> Message-ID: <alpine.DEB.2.00.1205240925070.10222_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
>
> On Wed, 23 May 2012, adam smith wrote:
>
> > Get maxfd == -1 as long as I let it run...
> >
> > In terms of verbose output the my debug callback is never called. I use
> > these options...
>
> We know that both these features work for quite a large amount of users.
> I don't know why you would have these problems. Have you tried to build and
> use one of the examples to see if they too fail like this?
>
> > Is this the correct way to get verbose output?
>
> Yes, but even without a debugfunction callback you should get lots of
> verbose
> output sent to stderr.
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 24 May 2012 09:35:58 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: compile curlgtk
> Message-ID: <alpine.DEB.2.00.1205240932210.10222_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Thu, 24 May 2012, Rudra Banerjee wrote:
>
> > I am very new to curl (and gtk as well).
> > I was trying to compile and run curlgtk.c code.
>
> Please be aware that our project is focused on libcurl and that example
> simply
> shows how to integrate libcurl with gtk. We're not a suitable forum to
> discuss
> GTK problems on.
>
> > curlgtk.c:13:21: fatal error: gtk/gtk.h: No such file or directory
> > compilation terminated.
>
> This shows your compiler doesn't find the gtk header that the example uses.
>
> > /usr/bin/ld: note: 'g_thread_init' is defined in
> > DSO /lib64/libgthread-2.0.so.0 so try adding it to the linker command
> > line
> > /lib64/libgthread-2.0.so.0: could not read symbols: Invalid operation
> > collect2: error: ld returned 1 exit status
>
> That shows your linker misses some functions, probably because you need to
> link with some additional lib. I would suggest you read up on some GTK
> docs or
> ask some GTK developers on how this is supposed to work with your distro.
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> End of curl-library Digest, Vol 81, Issue 32
> ********************************************
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-25