X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A36373861026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1613820916; bh=uOADzzMdsuQLtH5SPD6ZviCUT5wGM8xHS/oAqI889Qc=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HD7ZhTsQkJWSFitZ2gUdUzyAe7eJb6p43+J31gaFCcOIwXOT5Zg0Hm6E86Ttf93Qm 1lnjGPvlkjtkNYowiyFr/tJKdwXhQEF6H8uAMq7/Hrdok5GvbndWZ8b4GyrJEzE9ep Z/8aKdof1InlI8Ni515jI0y5FvMgCEP2zD+/i6kQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2461E3858D29 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mSDuzjn4IkWH39P1c7QYXKy3IOWaJvCfI576ALewiG0=; b=SKdXLlUAvECJgfV2+sfuxaOm3g4nqh8M/RVcCSRn98nZw3gdwRhJlF7Iwf6uPNo9D+ CnIJE4ew04m0wW5DR0LCPwHjRgI5+GbHUGhzY3HHpY9X6i2hu0HzvnYT3PmI1uL2chl7 KsqnF1FCpIwtxq/+JYgMu0Dy8rbkDV1WgeTPPgvFb41L0SA1o81ywlwKAMhhaoPadXGm pB9hAZFkXn56s0zXcg4UaUMTtuxzse+1lm7sVNovb78FRYMQw87TTn3+vLh6rwf+hsxN cbGHAukQcyQFyy5z9LPzlsirThcC0RT14g/NLReYIPtU+poY5FO03s3ccTEnXcN/V5yO l3Rg== X-Gm-Message-State: AOAM531rF9olFq02NfMw9F+OQ5mzH2aY3y7ArTHqe1oEpokOha3znjSQ cA4F4N1IV+PWkyBbzeN/OyekyvZ18ppDhw== X-Google-Smtp-Source: ABdhPJzKR8Se/DqsPOZcrGjylFKFwWK6cUYdKcRuxbJIGHBTBepSelaH7VV24HAzy3r2oQBPkynfZg== X-Received: by 2002:a5d:4d85:: with SMTP id b5mr11182090wru.192.1613820909239; Sat, 20 Feb 2021 03:35:09 -0800 (PST) Subject: Re: Compiling librrd under Cygwin To: cygwin AT cygwin DOT com References: <1157566299 DOT 20210220131130 AT yandex DOT ru> Message-ID: <0fe34119-f0b0-b033-58b6-c1f84728296e@gmail.com> Date: Sat, 20 Feb 2021 12:35:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1157566299.20210220131130@yandex.ru> Content-Language: it X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Content-Type: text/plain; charset="cp1251"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 11KBZL6j014664 On 20.02.2021 11:11, Andrey Repin wrote: > Greetings, All! > > I'm trying to match my Cygwin PHP install with native one, and one of the > steps is to build rrd extension. There's no librrd shipped with Cygwin, so I > have to build that first. > > I've successfully configured it after installing of some -devel packages with > `./configure --prefix=`, but compiling fails with > > rrd_open.c: In function ‘rrd_open’: > rrd_open.c:166:22: error: ‘MAP_FAILED’ undeclared (first use in this function) > 166 | char *data = MAP_FAILED; > | ^~~~~~~~~~ > rrd_open.c:166:22: note: each undeclared identifier is reported only once for each function it appears in > rrd_open.c:239:32: error: ‘PROT_READ’ undeclared (first use in this function) > 239 | rrd_simple_file->mm_prot = PROT_READ; > | ^~~~~~~~~ > > Configure and make logs attached, as well as list of necessary -devel > packages. > I would appreciate any help with this issue. > the configure.ac has a test for sys/mman.h but it is not using in for Cygwin, no idea why It should be present in all enviroments but it seems they think ut is only need in some https://man7.org/linux/man-pages/man2/mmap.2.html HAVE_SYS_MMAN_H should be defined for a proper include, and with a proper define, it pass that obstacle. $ grep MMAN src/rrd_config.h #define HAVE_SYS_MMAN_H 1 there are later some missing libraries during linking -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple