From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 707163877423 for ; Sun, 18 Jul 2021 08:23:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 707163877423 Received: by mail-wm1-x32d.google.com with SMTP id f8-20020a1c1f080000b029022d4c6cfc37so9510092wmf.5 for ; Sun, 18 Jul 2021 01:23:48 -0700 (PDT) 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=CXCquHg273NuFS++z4YYgjLFvoYqaZih7MIhLd8qkjM=; b=gpqjnzeCLT0psxI8wR1cKYQ5MpuCIqffVBk/ICL3KL32JRjXYS00+l49MZmC4eEREm cmiZApm9geGO58oxXhx2S3rTVfJreWSc6PVRd1qLl0Oj1OcZlLTCvv+OItIXLKE/i2O7 3B09kl0vDqoS6OiAV5zri6h/SdLLhnRtL+QTtona2OkYO/LeO+m5dafH466rQhYBt3X3 zQUfNd/+WAOMwlA2HF4fPlFWZi26MzkBIAb0d5uuQ2cFQuplIFf3Ku5ifHeRdPl3Adlp NrFUAdZgAV6hLGWyxZqHRrkwwmUi/xd9B2cb4JDDKL6vdtqWb801zsBRaVqWCQUsUoIf I1SQ== X-Gm-Message-State: AOAM533vR/S3PydtKWP/tofj5zLFdd/B34LK75c/2G03QjmpJPW9RPsq 1PUuHYAAO7ocfk4AjOq2WE2y5KCy22Y= X-Google-Smtp-Source: ABdhPJwcumDJwYOiwijpKiYDusNAMBKr1ImqUxT9GP3fX2mrB5vboWDJ4HSlEhcTNaay1xBXnhElCg== X-Received: by 2002:a05:600c:4f42:: with SMTP id m2mr10117901wmq.52.1626596627336; Sun, 18 Jul 2021 01:23:47 -0700 (PDT) Received: from ?IPv6:2003:cc:9f18:1ca8:f9e8:67ee:470:acd1? (p200300cc9f181ca8f9e867ee0470acd1.dip0.t-ipconnect.de. [2003:cc:9f18:1ca8:f9e8:67ee:470:acd1]) by smtp.gmail.com with ESMTPSA id e11sm20046542wrt.0.2021.07.18.01.23.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jul 2021 01:23:46 -0700 (PDT) Subject: Re: [alternatives] building an app that uses gettext To: cygwin-apps@cygwin.com References: From: Marco Atzeri Message-ID: <0a9e76c7-b712-21df-13bd-fd6f5845088b@gmail.com> Date: Sun, 18 Jul 2021 10:23:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit 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, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2021 08:23:50 -0000 On 18.07.2021 03:47, Doug Henderson via Cygwin-apps wrote: > HI, > I have not previously built an app that uses gettext. The relevant > parts of the makefile are: > > VERSION = 1.16 > CFLAGS = -g -Wall -D_GNU_SOURCE > LDFLAGS += -g > > alternatives: alternatives.o > > alternatives.o: alternatives.c > $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c alternatives.c > what is the linking recipe for "alternatives" or "alternatives$(EXT)"? > I am getting many > > /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: > /usr/src/alternatives-1.16-1.src/alternatives-1.16-1.x86_64/build/alternatives.c:1389: > undefined reference to `libintl_gettext' > > messages while linking. it is defined in libintl.dll.a so LDFLAGS should include -lintl > I have installed the gettext-devel and libgettextpo-devel and > libintl-devel packages, but I can't seem to properly rewrite the > CFLAGS or LDFLAGS despite several attempts. > > Can someone recommend a simple cygwin package that uses gettext and > the cygintl-8.dll > > TIA, > Doug >