X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=EdlHiR91Tc3CBAkR Ua2eoqPBuYXTkH1p1ArEGgUTe4slTuUUeTvdhJpc65/Terr6tEBoTXJUivafyPoY 2/5Pqy9FcnyDwqr9zz3dxHv436aZqYq+I1g9oKclOpdCzNyHcFeTSPLNgpzA8YMy /c9EGpBJWy22rTDoliNxh9tcEFo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=8Tv5Do6zlqzLUaJRzdY8Ax hktYk=; b=VUngF7lfFEON56gN6BtePj0h8gzFIxbO5iPnksJ/VSXTyQf5eRapL2 v7j6VSzc3ibpqIYvv5+ntsGK7iCJzgOOWqILZKjXfQJwdWDaJWV1Ipr4bEtaMlpJ 6mqFY2cGrA3JUpEC3yyG5e8g+2tw2vcs6kE8udowLVz5JiUvwKlSI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=552, 242017, 2.4.2017, H*r:192.168.4 X-HELO: mail-wr0-f169.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=ZbLgZAoDzCNX+QbgMaEIDXZWtt0mJvFStZRDnabS3D4=; b=oyGza41bcfzSZNO0jhEQIY6XX50+uvPs1HN+CyKvSRA/G07pGzncXWhkSWgchvrPRj qekFL54sOR5vD1lQ75XmpUUn1Qio3GwVcuDYOKh/QL/FQvocchdw6ZvCCYIzDSZ6vU4p FOA9ZpJ7IdWJuMyNqJVOqoZ3wyo75C/8fMfkUracq2gp4QEEnjngrBHr4cgUwLU7SYxH elX8wqsW7CSGO7Kmr1Le8sTLNX0iTDR69RCp0e4A8okO9bTphn57b9zrbA+ZnwsPulK7 6wJmORqqNgrvDPTL4jljwUqd7eNZ4zYBDZ1Ooh9GGJbaJwi//ZIlrFTZqVOSoUjdaJbm oxeA== X-Gm-Message-State: AFeK/H3kJQ6eglfox85tLStRdbj4yncydVTDWFOt7dF9Kioi+lh7EKIDg5TeG777nAsFrA== X-Received: by 10.223.165.29 with SMTP id i29mr11060902wrb.43.1491135441469; Sun, 02 Apr 2017 05:17:21 -0700 (PDT) Subject: Re: Missing g_object_unref To: "cygwin AT cygwin DOT com" References: <58501f7c-f4f7-bf15-8552-535dd78d9eea AT gmail DOT com> From: Vlado Message-ID: Date: Sun, 2 Apr 2017 14:17:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <58501f7c-f4f7-bf15-8552-535dd78d9eea@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2.4.2017 11:47, Vlado wrote: > Hello. > > Can somebody give advice what library defines g_object_unref function > call, please? > I use x86_64 Cygwin. > > I would like to build rrdtool 1.6.0. Building it as Windows native app > is near impossible. Building it in Cygwin is much less pain and I hope > the "undefined reference to `g_object_unref'" is the last obstacle. > In Debian I found that g_object_unref is defined in libgobject-2.0.a, > but there is no library libgobject-2.0.a in Cygwin. > > Vlado > > Answer is: Library libgobject-2.0.dll.a is a part of libglib2.0-devel. I have installed libglib2.0-devel version 2.50.3-1 now, I added -llibglib-2.0 -llibgobject-2.0 to LIBS and still have Making all in src make[1]: Entering directory '/usr/src/rrdtool-1.6.0/src' make all-am make[2]: Entering directory '/usr/src/rrdtool-1.6.0/src' CCLD rrdtool.exe ./.libs/librrd.a(librrd_la-rrd_graph.o):rrd_graph.c:(.text+0xcb2): undefined reference to `g_object_unref' ./.libs/librrd.a(librrd_la-rrd_graph.o):rrd_graph.c:(.text+0xcb2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `g_object_unref' ./.libs/librrd.a(librrd_la-rrd_graph.o):rrd_graph.c:(.text+0x14023): undefined reference to `g_object_unref' ./.libs/librrd.a(librrd_la-rrd_graph.o):rrd_graph.c:(.text+0x14023): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `g_object_unref' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:715: rrdtool.exe] Error 1 make[2]: Leaving directory '/usr/src/rrdtool-1.6.0/src' make[1]: *** [Makefile:552: all] Error 2 make[1]: Leaving directory '/usr/src/rrdtool-1.6.0/src' make: *** [Makefile:557: all-recursive] Error 1 Investigating objects in libgobject-2.0: $ nm --print-file-name --defined-only lib-extract/libgobject-2.0/* | grep -F g_object_unref d000165.o:0000000000000000 I __imp_g_object_unref d000165.o:0000000000000000 T g_object_unref "T" means symbol is defined in TEXT (code). Is the "undefined reference to `g_object_unref'" result of "relocation truncated to fit"? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple