Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 216809
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Crypto team <crypto@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ryan Hill <dirtyepic@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gnupg-2.0.9-curl.patch Gnupg patch for curl/gcc 4.3 patch maquiz 2008-04-16 20:30 0000 437 bytes Details | Diff
gnupg-2.0.9.ebuild.patch Ebuild patch for gnupg-2.0.9 text/plain maquiz 2008-04-16 20:30 0000 361 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 216809 depends on: Show dependency tree
Bug 216809 blocks: 198121
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-08 02:33 0000
Heys.  There is a compilation error building gnupg-2.0.9 using GCC
4.3 and curl-7.18.1.  The error appears to be the result of this change
from the curl release announcement:

- added type checking macros for curl_easy_setopt() and
curl_easy_getinfo(), watch out for new warnings in code using libcurl
(needs gcc-4.3 and currently only works in C mode)

http://curl.haxx.se/mail/lib-2008-02/0267.html
http://curl.haxx.se/mail/lib-2008-02/0292.html

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -I../gl -I../common -I../intl
-DLOCALEDIR\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\""
-DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\""
-DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\""     
   -O2 -g -march=prescott -fomit-frame-pointer -pipe -fdirectives-only -Wall
-Wno-pointer-sign -Wpointer-arith -MT gpg2keys_curl-gpgkeys_curl.o -MD -MP -MF
.deps/gpg2keys_curl-gpgkeys_curl.Tpo -c -o gpg2keys_curl-gpgkeys_curl.o `test
-f 'gpgkeys_curl.c' || echo './'`gpgkeys_curl.c
gpgkeys_curl.c: In function 'main':
gpgkeys_curl.c:303: error: 'typeof' applied to a bit-field


I've sent this to the gnupg-dev mailing list but I'm not sure if it went
through.  I'll try again in a bit if it doesn't show up.

In the meantime, I don't know how to fix this correctly and haven't seen it
reported elsewhere yet.  As you're probably more familiar with the codebase,
let me know if you have any ideas.

------- Comment #1 From Michel Ganguin 2008-04-10 12:21:24 0000 -------
Strange error!!! GCC error?

since the third param of curl_easy_setopt is boolean in this case (according to
"man curl_easy_setopt") you can put a double not (!) to fix the compilation
error.

gpgkeys_curl.c:303:
-curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert);
+curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,!!opt->flags.check_cert);

------- Comment #2 From Alon Bar-Lev (RETIRED) 2008-04-10 12:26:11 0000 -------
(In reply to comment #1)
> gpgkeys_curl.c:303:
> -curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert);
> +curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,!!opt->flags.check_cert);

Better solution would be:
+curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER, opt->flags.check_cert != 0);

------- Comment #3 From maquiz 2008-04-16 20:30:24 0000 -------
Created an attachment (id=149978) [details]
Gnupg patch for curl/gcc 4.3

Patch to correct gcc 4.3 compile error

------- Comment #4 From maquiz 2008-04-16 20:30:59 0000 -------
Created an attachment (id=149979) [details]
Ebuild patch for gnupg-2.0.9

Ebuild patch

------- Comment #5 From Alon Bar-Lev (RETIRED) 2008-04-17 05:15:48 0000 -------
Fixed, thanks!

------- Comment #6 From Ryan Hill 2008-04-24 01:57:18 0000 -------
Just FYI, this is fixed upstream.

http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug