delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/18/16:28:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A3AA270.6090103@cygwin.com>
Date: Thu, 18 Jun 2009 16:24:16 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: help? compile error cygwin 1.7, multiple definition
References: <4A3A9687 DOT 6050602 AT gmail DOT com>
In-Reply-To: <4A3A9687.6050602@gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ian Kelling wrote:
> Any suggestions or feedback on fixing this compile error would be 
> appreciated.
> 
> cygwin 1.7,
> gcc (GCC) 4.3.2 20080827 (beta) 2
> mpd sources, any version
> 
> $ ./autogen.sh --enable-oss --disable-ao --disable-un
> $ make
> 
> make fails. Basically, the final compile and link command seems to fail 
> because of multiple definition errors. Here it is:
> 
> 
> /usr/bin/g++ -g -O2 -o src/mpd.exe  src_mpd-input_stream.o (... about a 
> page of other .o files ....) -Wl,--enable-auto-import -lm  -lFLAC -lm 
> -lgthread-2.0 -lglib-2.0 -lintl -liconv
> 
> I added "-Wl,--enable-auto-import" which removes some other messages 
> which don't seem to be the primary problem. Here is the output:
> 
> src_mpd-file_input_plugin.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of 
> `_g_bit_nth_lsf'
> src_mpd-input_stream.o:/usr/include/glib-2.0/glib/gutils.h:277: first 
> defined here
> src_mpd-file_input_plugin.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of 
> `_g_bit_nth_msf'
> src_mpd-input_stream.o:/usr/include/glib-2.0/glib/gutils.h:290: first 
> defined here

This sounds allot like this bug to me:

<https://bugzilla.redhat.com/show_bug.cgi?id=428865>

Since Cygwin's glib2 is only at 2.10.3, you'll either need to wait for
an update of this package or build a newer one yourself.

Also, the repeating of "-lm" above could be troublesome.  If you have
problems related to this, try removing one.  I'd recommend the first
occurrence.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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