NetBSD Problem Report #53035
From www@NetBSD.org Sun Feb 18 01:36:42 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BD6D67A183
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Feb 2018 01:36:42 +0000 (UTC)
Message-Id: <20180218013641.B88A37A1EA@mollari.NetBSD.org>
Date: Sun, 18 Feb 2018 01:36:41 +0000 (UTC)
From: bapabooiee@gmail.com
Reply-To: bapabooiee@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/omake: on macOS, build fails due to not finding history_list() in readline headers
X-Send-Pr-Version: www-1.0
>Number: 53035
>Category: pkg
>Synopsis: devel/omake: on macOS, build fails due to not finding history_list() in readline headers
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: macos-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 18 01:40:00 +0000 2018
>Closed-Date: Sat Apr 28 09:20:51 +0000 2018
>Last-Modified: Sat Apr 28 09:20:51 +0000 2018
>Originator: Dean Matzkov
>Release: 2017Q4
>Organization:
>Environment:
Darwin 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
>Description:
On macOS, the build fails due to history_list() not being declared in a system-provided readline header, located in /usr/include/readline/history.h.
Here's a snippit from the build process:
-----SNIP-----
File "omake_gen_magic.ml", line 126, characters 8-17:=============== ] 00974 / 01204
Warning 39: unused rec flag.
- build src/clib readline.o
+ clang -O2 -I/Users/bapa/pkg/include -I/usr/include -g -O2 -Wall -Werror -Wno-unused -DREADLINE_ENABLED -DREADLINE_GNU -DNCURSES -DFAM_ENABLED -DFAM_PSEUDO -DFAM_KQUEUE -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_SNPRINTF -DDETECT_FS_CASE_SENSITIVE_GETATTRLIST -I. -I/Users/bapa/pkg/lib/ocaml -I. -c -o readline.o readline.c
readline.c:1488:16: error: implicit declaration of function 'history_list' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
the_list = history_list();
^
readline.c:1488:16: note: did you mean 'history_get'?
/Volumes/Stuff/pkgsrc/devel/omake/work/.buildlink/include/readline/history.h:153:13: note: 'history_get' declared here
HIST_ENTRY *history_get(int);
^
readline.c:1488:14: error: incompatible integer to pointer conversion assigning to 'HIST_ENTRY **' (aka 'struct _hist_entry **') from 'int' [-Werror,-Wint-conversion]
the_list = history_list();
^ ~~~~~~~~~~~~~~
2 errors generated.
*** omake: 975/1204 targets are up to date
*** omake: failed (27.56 sec, 233/233 scans, 234/314 rules, 599/1977 digests)
*** omake: targets were not rebuilt because of errors:
src/clib/readline.o
depends on: src/clib/readline.c
*** Error code 1
Stop.
----THY SNIP ENDS-----
>How-To-Repeat:
1. Make sure you're using macOS
2. cd $pkgsrc/devel/omake
3. bmake
>Fix:
Changing omake's Makefile so that it uses the pkgsrc-provided readline library/headers seems to have fixed the build for me. eg, something like changing
.include "../../mk/readline.buildlink3.mk"
to
.include "../../devel/readline/buildlink3.mk"
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53035: devel/omake: on macOS, build fails due to not finding
history_list() in readline headers
Date: Tue, 20 Feb 2018 07:31:03 +0000
On Sun, Feb 18, 2018 at 01:40:01AM +0000, bapabooiee@gmail.com wrote:
> On macOS, the build fails due to history_list() not being declared
> in a system-provided readline header, located in
> /usr/include/readline/history.h.
Can you try the omake from pkgsrc head? It appears to have configury
for this, and it's also a lot newer.
(It might turn out to require ocaml from pkgsrc head, though, in which
case don't; that's a can of worms)
--
David A. Holland
dholland@netbsd.org
Responsible-Changed-From-To: pkg-manager->macos-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 20 Feb 2018 20:21:18 +0000
Responsible-Changed-Why:
Over to the experts.
From: "Dean M." <bapabooiee@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53035: devel/omake: on macOS, build fails due to not finding
history_list() in readline headers
Date: Tue, 20 Feb 2018 18:22:36 -0700
omake from head did indeed pull-in ocaml from head as well, but I went
and installed it anyway.
I can confirm that omake in head seems to build just fine on macOS.
On 20 February 2018 at 00:35, David Holland <dholland-pbugs@netbsd.org> wrote:
>
> Can you try the omake from pkgsrc head? It appears to have configury
> for this, and it's also a lot newer.
>
> (It might turn out to require ocaml from pkgsrc head, though, in which
> case don't; that's a can of worms)
>
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 28 Apr 2018 09:20:51 +0000
State-Changed-Why:
Since 2018Q1 is out, this is fixed by the omake update.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.