NetBSD Problem Report #44244
From www@NetBSD.org Thu Dec 16 17:41:55 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id C8DD063BECA
for <gnats-bugs@gnats.NetBSD.org>; Thu, 16 Dec 2010 17:41:55 +0000 (UTC)
Message-Id: <20101216174155.27F2F63BCAC@www.NetBSD.org>
Date: Thu, 16 Dec 2010 17:41:55 +0000 (UTC)
From: rga@sdf.lonestar.org
Reply-To: rga@sdf.lonestar.org
To: gnats-bugs@NetBSD.org
Subject: crawl does not compile using GNU/Linux (pkgsrc 20010Q3)
X-Send-Pr-Version: www-1.0
>Number: 44244
>Category: pkg
>Synopsis: crawl does not compile using GNU/Linux (pkgsrc 20010Q3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 16 17:45:03 +0000 2010
>Closed-Date:
>Last-Modified: Wed Dec 29 08:10:03 +0000 2010
>Originator: Ruben Gonzalez Arnau
>Release: Sorry, GNU/Linux 2.6.35
>Organization:
non profit
>Environment:
Linux foo 2.6.35.4 #14 SMP Wed Dec 15 15:22:30 CET 2010 i686 i686 i386 GNU/Linux
>Description:
crawl does not compile since does not find db 1.5 compatibiliy.
checking for a BSD-compatible install... /usr/bin/install -c -o root -g root
checking if we may use "-I/usr/include"... no
checking for libevent... yes
checking for Berkeley DB with 1.85 compatibility... configure: error: Berkeley DB with 1.85 compatibility not found
*** Error code 1
>How-To-Repeat:
cd /usr/pkgsrc/www/crawl && bmake
>Fix:
Finded by ASau (thank you!) on #pkgsrc
As you can see, does not check any /usr/pkg/include/dbX
+ echo 'configure:2583: checking for Berkeley DB with 1.85 compatibility'
+ echo -n 'checking for Berkeley DB with 1.85 compatibility... '
checking for Berkeley DB with 1.85 compatibility... + test '' = set
+ for dir in '${prefix}/BerkeleyDB.3.1' '${prefix}/BerkeleyDB.3.0' '${prefix}/BerkeleyDB' '${prefix}/db' '${prefix}'
+ test -f /usr/pkg/BerkeleyDB.3.1/include/db_185.h
+ test -f /usr/pkg/BerkeleyDB.3.1/include/db.h
+ for dir in '${prefix}/BerkeleyDB.3.1' '${prefix}/BerkeleyDB.3.0' '${prefix}/BerkeleyDB' '${prefix}/db' '${prefix}'
+ test -f /usr/pkg/BerkeleyDB.3.0/include/db_185.h
+ test -f /usr/pkg/BerkeleyDB.3.0/include/db.h
+ for dir in '${prefix}/BerkeleyDB.3.1' '${prefix}/BerkeleyDB.3.0' '${prefix}/BerkeleyDB' '${prefix}/db' '${prefix}'
+ test -f /usr/pkg/BerkeleyDB/include/db_185.h
+ test -f /usr/pkg/BerkeleyDB/include/db.h
+ for dir in '${prefix}/BerkeleyDB.3.1' '${prefix}/BerkeleyDB.3.0' '${prefix}/BerkeleyDB' '${prefix}/db' '${prefix}'
+ test -f /usr/pkg/db/include/db_185.h
+ test -f /usr/pkg/db/include/db.h
+ for dir in '${prefix}/BerkeleyDB.3.1' '${prefix}/BerkeleyDB.3.0' '${prefix}/BerkeleyDB' '${prefix}/db' '${prefix}'
+ test -f /usr/pkg/include/db_185.h
+ test -f /usr/pkg/include/db.h
+ test x = x
+ test -f /usr/include/db2/db_185.h
+ test -f /usr/include/db1/db.h
+ test -f /usr/include/db_185.h
+ test -f /usr/include/db.h
+ test x = x
+ echo 'configure:2698: error: Berkeley DB with 1.85 compatibility not found'
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44244 CVS commit: pkgsrc/www/crawl
Date: Tue, 21 Dec 2010 08:17:28 +0000
Module Name: pkgsrc
Committed By: obache
Date: Tue Dec 21 08:17:28 UTC 2010
Modified Files:
pkgsrc/www/crawl: Makefile
Log Message:
Not to use BDB check in configure.
Fixes PR#44244.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/www/crawl/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 29 Dec 2010 01:33:40 +0000
State-Changed-Why:
Did the commit fix it?
From: Ruben Gonzalez Arnau <rga@sdf.lonestar.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 05:29:33 +0100
On Wed, Dec 29, 2010 at 01:33:41AM +0000, dholland@NetBSD.org wrote:
> Synopsis: crawl does not compile using GNU/Linux (pkgsrc 20010Q3)
>
> State-Changed-From-To: open->feedback
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Wed, 29 Dec 2010 01:33:40 +0000
> State-Changed-Why:
> Did the commit fix it?
>
>
>
Yes, sorry delay.
Your commit fix DB problem (I think that fixes other packages with the same problem too), but it has another error not related during compile session.
earth:/usr/pkgsrc/www/crawl# bmake
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Building for crawl-0.4nb8
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/pkg/include
-DHAVE_DB_185_H -I/usr/pkg/include -I/usr/pkg/include/db4 -I/usr/include
-Wall -c dns.c
dns.c: In function ‘dns_read’:
dns.c:155:5: warning: pointer targets in assignment differ in signedness
dns.c: In function ‘dns_resolve’:
dns.c:565:14: error: ‘EAI_NODATA’ undeclared (first use in this
function)
dns.c:565:14: note: each undeclared identifier is reported only once for
each function it appears in
*** Error code 1
A simple workaround to compile, after that, compiles and works fine, thank you :)
vim workdir/pkgsrc/www/crawl/work/crawl-0.4/dns.c
Line 42,
+#ifdef EAI_NODATA
if (res != EAI_NODATA)
return (-1);
+#endif
--
rga@sdf.lonestar.org
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 29 Dec 2010 04:48:04 +0000
State-Changed-Why:
That worked, but another problem has appeared.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 13:58:34 +0900
On Wed, 29 Dec 2010 13:30:05 +0900, Ruben Gonzalez Arnau <rga@sdf.lonestar.org> wrote:
> A simple workaround to compile, after that, compiles and works fine, thank you :)
> vim workdir/pkgsrc/www/crawl/work/crawl-0.4/dns.c
> Line 42,
> +#ifdef EAI_NODATA
> if (res != EAI_NODATA)
> return (-1);
> +#endif
I feel that EAI_NONAME should be checked if EAI_NODATA is not defined.
--
OBATA Akio / obache@NetBSD.org
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 05:05:29 +0000
On Wed, Dec 29, 2010 at 04:30:05AM +0000, Ruben Gonzalez Arnau wrote:
> vim workdir/pkgsrc/www/crawl/work/crawl-0.4/dns.c
>
> Line 42,
>
> +#ifdef EAI_NODATA
> if (res != EAI_NODATA)
> return (-1);
> +#endif
That's not the right fix -- at a minimum it ought to be
+#ifdef EAI_NODATA
if (res != EAI_NODATA)
return (-1);
+else
+ return (-1);
+#endif
but I don't think that's right either; EAI_NODATA ought to be defined.
Does
% find /usr/include -name '*.h' -print | xargs grep EAI_NODATA
print anything?
Also, when you compile, does anything like -D_POSIX_SOURCE or
-D_GNU_SOURCE or similar appear on the compilation lines? It doesn't
for me, but the most likely cause of this problem, especially on
Linux, is that glibc is hiding the EAI_* definitions because it thinks
it's been asked to be strictly compliant with some outdated standard.
--
David A. Holland
dholland@netbsd.org
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 14:35:01 +0900
On Wed, 29 Dec 2010 14:10:06 +0900, David Holland <dholland-pbugs@netbsd.org> wrote:
> but I don't think that's right either; EAI_NODATA ought to be defined.
EAI_NODATA is obsolete (not in RFC 3493).
For example, it was removed from FreeBSD.
#if 0
/* obsoleted */
#define EAI_NODATA 7 /* no address associated with hostname */
#endif
From: Ruben Gonzalez Arnau <rga@sdf.lonestar.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 07:25:14 +0100
On Wed, Dec 29, 2010 at 05:10:06AM +0000, David Holland wrote:
> The following reply was made to PR pkg/44244; it has been noted by GNATS.
>
> From: David Holland <dholland-pbugs@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
> 20010Q3))
> Date: Wed, 29 Dec 2010 05:05:29 +0000
>
> On Wed, Dec 29, 2010 at 04:30:05AM +0000, Ruben Gonzalez Arnau wrote:
> > vim workdir/pkgsrc/www/crawl/work/crawl-0.4/dns.c
> >
> > Line 42,
> >
> > +#ifdef EAI_NODATA
> > if (res != EAI_NODATA)
> > return (-1);
> > +#endif
>
> That's not the right fix -- at a minimum it ought to be
>
> +#ifdef EAI_NODATA
> if (res != EAI_NODATA)
> return (-1);
> +else
> + return (-1);
> +#endif
>
> but I don't think that's right either; EAI_NODATA ought to be defined.
> Does
>
> % find /usr/include -name '*.h' -print | xargs grep EAI_NODATA
>
> print anything?
>
> Also, when you compile, does anything like -D_POSIX_SOURCE or
> -D_GNU_SOURCE or similar appear on the compilation lines? It doesn't
> for me, but the most likely cause of this problem, especially on
> Linux, is that glibc is hiding the EAI_* definitions because it thinks
> it's been asked to be strictly compliant with some outdated standard.
>
> --
> David A. Holland
> dholland@netbsd.org
>
Hello,
I don't get -D_GNU_SOURCE or D_POSIX_SOURCE too.
That's my output:
$ find /usr/include -name '*.h' -print | xargs grep EAI_NODATA
/usr/include/netdb.h:# define EAI_NODATA -5 /* No address
associated with NAME. */
/usr/include/netdb.h
---
# ifdef __USE_GNU
# define EAI_NODATA -5 /* No address associated with NAME. */
# define EAI_ADDRFAMILY -9 /* Address family for NAME not
# supported. */
# define EAI_INPROGRESS -100 /* Processing request in progress. */
# define EAI_CANCELED -101 /* Request canceled. */
# define EAI_NOTCANCELED -102 /* Request not canceled. */
# define EAI_ALLDONE -103 /* All requests done. */
# define EAI_INTR -104 /* Interrupted by a signal. */
# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */
# endif
Well, maybe it's good idea to check both #ifdef EAI_NODATA and #ifdef EAI_NONAME That's an idea only.
--
rga@sdf.lonestar.org
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 08:05:53 +0000
On Wed, Dec 29, 2010 at 05:35:01AM +0000, OBATA Akio wrote:
> > but I don't think that's right either; EAI_NODATA ought to be defined.
>
> EAI_NODATA is obsolete (not in RFC 3493).
> For example, it was removed from FreeBSD.
blah. I guess I don't know what I'm talking about then... so never mind.
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.