delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/08/11/07:18:50

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A07A3860C38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1597144688;
bh=jdvPXeauv/HnVunFVAGm4dG8tthv7ENxiqI/K81G4/Q=;
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=wQ8J4Ps7wJ54SD/wHP6a+E9A41JzGbRgkm+Us36mhnwgEJABiQ8lNmFKo4uCE96GX
CjY1QL3j5L1tKhC6JatPW3xNRiqaH0T7LAn++HNNZ5MgIS6i/kLOWXBykxOOEvqh06
wh96ZCWXpZ3Jk4XjM8Thw0t67NCi2J6DgPp3zIqk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BED613851C0A
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=vkZSiHD4rF0HXHL1aPLDA8eEw/B7S8ZfZZSMzOxPsb4=;
b=SsDKxB9ltDbS09V6d/UJWzHONRdYxfWtcYjVd1JgtU6jRKeDtRKF/9WqwF6n1Yh5RS
GQ6EhVSz436tL/guos3/QwdQgOTjladRZ4SHHDwRcmctD8PsYXgNPKo8ceVdDvVkbxKi
IoZPP0rZJd6pz9LnkdAyib4YSp6fMwNkcrCqbzVQ4RAN5MYKXbk9m2py08uVELLkIHSJ
/baqBPZZkLV22vCdC5YF3SKqPY7mKB2dfzVb5lDQaQ3I8jOosWCAnFe5DRCnUfMa6hNG
qu8xaVLuDuM76TkR03BdjAN077nm0/fgfwX48goscWDk3FGV/XX2HJC5I6bKtnk3rhai
h4gw==
X-Gm-Message-State: AOAM530hYsKUXnXWuDDcC5Equba9b8Dgko+Dp08nP0IArDZ9Zixep5KE
IhwaehfDRlymHv8S1L/rLp6cbjLl5RE=
X-Google-Smtp-Source: ABdhPJwK1AGxtfmYGvWTXeR2ytVZJa+C2Z8+K//jgONQHn4Zum9uYP8sXWcg/K6bbjtD/U/f20VmqA==
X-Received: by 2002:a17:906:c7c8:: with SMTP id
dc8mr10546649ejb.399.1597144681581;
Tue, 11 Aug 2020 04:18:01 -0700 (PDT)
Subject: Re: Need help building gnu gettext 0.19.8.1 under cygwin
To: cygwin AT cygwin DOT com
References: <CAJ3exFwgJ-VwJT0i6VM65=kO=gq_Yq+uX_1YZYfFS4BH+P2Wdw AT mail DOT gmail DOT com>
Message-ID: <20c450e9-c310-426c-0ae1-aa301d4ad86c@gmail.com>
Date: Tue, 11 Aug 2020 13:18:00 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.11.0
MIME-Version: 1.0
In-Reply-To: <CAJ3exFwgJ-VwJT0i6VM65=kO=gq_Yq+uX_1YZYfFS4BH+P2Wdw@mail.gmail.com>
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 07BBIVEU015908

On 11.08.2020 10:13, Selim Kırpıcı via Cygwin wrote:
> Hello friends,
> 
> I am running into some linker problems while trying to build gettext.
> After configuring with no arguments and running make, after quite some
> time, I get this error:
> 
> libtool: link: g++ -shared -nostdlib
> /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtbeginS.o
>   .libs/libgettextsrc_la-message.o .libs/libgettextsrc_la-po-error.o
> .libs/libgettextsrc_la-po-xerror.o
> .libs/libgettextsrc_la-read-catalog-abstract.o
> .libs/libgettextsrc_la-po-lex.o .libs/libgettextsrc_la-po-gram-gen.o
> .libs/libgettextsrc_la-po-charset.o .libs/libgettextsrc_la-read-po.o
> .libs/libgettextsrc_la-read-properties.o
> .libs/libgettextsrc_la-read-stringtable.o
> .libs/libgettextsrc_la-open-catalog.o .libs/libgettextsrc_la-dir-list.o
> .libs/libgettextsrc_la-str-list.o .libs/libgettextsrc_la-read-catalog.o
> .libs/libgettextsrc_la-color.o .libs/libgettextsrc_la-write-catalog.o
> .libs/libgettextsrc_la-write-properties.o
> .libs/libgettextsrc_la-write-stringtable.o
> .libs/libgettextsrc_la-write-po.o .libs/libgettextsrc_la-msgl-ascii.o
> .libs/libgettextsrc_la-msgl-iconv.o .libs/libgettextsrc_la-msgl-equal.o
> .libs/libgettextsrc_la-msgl-cat.o .libs/libgettextsrc_la-msgl-header.o
> .libs/libgettextsrc_la-msgl-english.o .libs/libgettextsrc_la-msgl-check.o
> .libs/libgettextsrc_la-file-list.o .libs/libgettextsrc_la-msgl-charset.o
> .libs/libgettextsrc_la-po-time.o .libs/libgettextsrc_la-plural-exp.o
> .libs/libgettextsrc_la-plural-eval.o .libs/libgettextsrc_la-plural-table.o
> .libs/libgettextsrc_la-sentence.o
> ../woe32dll/.libs/libgettextsrc_la-c++format.o
> .libs/libgettextsrc_la-format-c.o .libs/libgettextsrc_la-format-sh.o
> .libs/libgettextsrc_la-format-python.o
> .libs/libgettextsrc_la-format-python-brace.o
> .libs/libgettextsrc_la-format-lisp.o .libs/libgettextsrc_la-format-elisp.o
> .libs/libgettextsrc_la-format-librep.o
> .libs/libgettextsrc_la-format-scheme.o .libs/libgettextsrc_la-format-java.o
> .libs/libgettextsrc_la-format-csharp.o .libs/libgettextsrc_la-format-awk.o
> .libs/libgettextsrc_la-format-pascal.o .libs/libgettextsrc_la-format-ycp.o
> .libs/libgettextsrc_la-format-tcl.o .libs/libgettextsrc_la-format-perl.o
> .libs/libgettextsrc_la-format-perl-brace.o
> .libs/libgettextsrc_la-format-php.o
> .libs/libgettextsrc_la-format-gcc-internal.o
> .libs/libgettextsrc_la-format-gfc-internal.o
> .libs/libgettextsrc_la-format-qt.o
> .libs/libgettextsrc_la-format-qt-plural.o
> .libs/libgettextsrc_la-format-kde.o
> .libs/libgettextsrc_la-format-kde-kuit.o
> .libs/libgettextsrc_la-format-boost.o .libs/libgettextsrc_la-format-lua.o
> .libs/libgettextsrc_la-format-javascript.o
> .libs/libgettextsrc_la-read-desktop.o
> .libs/libgettextsrc_la-locating-rule.o .libs/libgettextsrc_la-its.o
> .libs/libgettextsrc_la-search-path.o
> ../woe32dll/.libs/libgettextsrc_la-gettextsrc-exports.o
> -L/home/miles/build-son/gettext-tools/intl/.libs
> ../gnulib-lib/.libs/libgettextlib.dll.a
> /home/miles/build-son/gettext-tools/intl/.libs/libintl.dll.a
> ../intl/.libs/libintl.dll.a -liconv -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0
> -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib/../lib
> -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib
> -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib
> -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../.. -lstdc++ -lgcc_s -lgcc
> -lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc
> /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtend.o  -g -O2
> -Wl,--export-all-symbols -Wl,--disable-auto-import   -fopenmp -o
> .libs/cyggettextsrc-0-19-8-1.dll -Wl,--enable-auto-image-base -Xlinker
> --out-implib -Xlinker .libs/libgettextsrc.dll.a
> /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld:
> .libs/libgettextsrc_la-locating-rule.o:locating-rule.c:(.rdata$.refptr.xmlFree[.refptr.xmlFree]+0x0):
> undefined reference to `xmlFree'
> collect2: error: ld returned 1 exit status
> 
> I installed libxml2 via cygwin setup and tried to compile a small C program
> that calls xmlFree()
> it compiles and links fine using this:
> $ gcc -I/usr/include/libxml2 test.c -o test -lxml2
> 
> I also tried to configure with:
> $ ./configure LIBS="-lxml2"
> This didnt work as well.
> 
> Any suggestions will be much much appreciated
> --

why you need to build something aleady available ?

$ cygcheck -cd |grep gettext
gettext                                 0.19.8.1-2
gettext-devel                           0.19.8.1-2
libgettextpo0                           0.19.8.1-2

If you are interested you can look at the cygwin source package
to see about patch and compile methodology used

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019