X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A3A9687.6050602@gmail.com> Date: Thu, 18 Jun 2009 12:33:27 -0700 From: Ian Kelling User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: help? compile error cygwin 1.7, multiple definition Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 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 ... these messages go on for pages, naming almost every .o file, then ends with: collect2: ld returned 1 exit status - Ian Kelling -- 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/