Page MenuHome GnuPG

NetBSD, when Curl is installed, the include fails on several files
Closed, ResolvedPublic

Description

Environment

machine : thinkpad x30, ibm
os : netbsd 3.0 i386

Description

GnuPG 1.4.3 does not compile properly on NetBSD.
in g10 the file keyserver.c tries to include :

#ifdef HAVE_LIBCURL
#include <curl/curl.h>
#endif

if Curl is installed. But NetBSD does install it there :

/usr/pkg/include/curl/curl.h

Here is the error when you try to compile GnuPG on NetBSD 3.0
with curl installed from the package source (/usr/pkgsrc) :

[gilb][224] make
make all-recursive
Making all in m4
Making all in intl
Making all in zlib
Making all in util
Making all in mpi
Making all in cipher
Making all in tools
Making all in g10
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl -DGNUPG_LIBEXECDIR="\"/usr/local/libexec/gnupg\"" -g -O2 -Wall -MT keyserver.o -MD -MP -MF ".deps/keyserver.Tpo" -c -o keyserver.o keyserver.c; then mv -f ".deps/keyserver.Tpo" ".deps/keyserver.Po"; else rm -f ".deps/keyserver.Tpo"; exit 1; fi
keyserver.c:30:23: curl/curl.h: No such file or directory
In file included from keyserver.c:40:
../include/ttyio.h:32: warning: `libintl_printf' is an unrecognized format function type
../include/ttyio.h:34: warning: `libintl_printf' is an unrecognized format function type
In file included from keyserver.c:45:
../include/util.h:81: warning: `libintl_printf' is an unrecognized format function type
../include/util.h:84: warning: `libintl_printf' is an unrecognized format function type
../include/util.h:85: warning: `libintl_printf' is an unrecognized format function type
../include/util.h:86: warning: `libintl_printf' is an unrecognized format function type
../include/util.h:87: warning: `libintl_printf' is an unrecognized format function type
../include/util.h:88: warning: `libintl_printf' is an unrecognized format function type
keyserver.c: In function `parse_keyserver_uri':
keyserver.c:367: warning: subscript has type `char'

  • Error code 1

    Stop. make: stopped in /usr/home/gilb/gnupg-1.4.3/g10
  • Error code 1

    Stop. make: stopped in /usr/home/gilb/gnupg-1.4.3
  • Error code 1

    Stop. make: stopped in /usr/home/gilb/gnupg-1.4.3 {/home/gilb/gnupg-1.4.3}

    This should also be reported to the Curl package maintainer to find a solution (perhaps we could have a symbolic link curl/curl.h pointing to our file in /usr/pkg ?). The maintainer is the only one that can answer or change stuff in the curl package.

    It seems there are other files that try to include curl.h (like gpgkeys_finger.c)

How To Repeat

install curl from /usr/pkgsrc on netbsd 3
install gnupg sources. configure then make.

Fix

A contact with the package maintainer for curl on netbsd could help find a solution (like adding a symbolic link when curl gets installed so you dont need to alter your sources).

If you think your sources should not be modified for this include, I can contact the maintainer and tell him/her about this problem, as you wish :)

Event Timeline

dshaw added a subscriber: dshaw.

Fixed for 1.4.4. Just comment the #include <curl/curl.h>
out for 1.4.3.

From: Gilbert Fernandes <gilbert.fernandes@club-internet.fr>
To: bug-any@bugs.gnupg.org
Cc:
Subject: Re: gnupg/646
Date: Sat, 22 Apr 2006 20:14:24 +0000

dshaw@jabberwocky.com wrote:

Fixed for 1.4.4. Just comment the #include <curl/curl.h>
out for 1.4.3.

Thanks :)

Gilbert