From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3299 invoked by alias); 31 Oct 2007 14:58:33 -0000 Received: (qmail 3289 invoked by uid 22791); 31 Oct 2007 14:58:32 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 31 Oct 2007 14:58:29 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9VEwQK5026680; Wed, 31 Oct 2007 10:58:26 -0400 Received: from pobox.yyz.redhat.com (pobox.yyz.redhat.com [10.15.31.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9VEwNA4019876; Wed, 31 Oct 2007 10:58:25 -0400 Received: from localhost.localdomain (vpn-15-119.rdu.redhat.com [10.11.15.119]) by pobox.yyz.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l9VEwLBH021212; Wed, 31 Oct 2007 10:58:21 -0400 Message-ID: <47289777.5060503@redhat.com> Date: Wed, 31 Oct 2007 14:58:00 -0000 From: Dave Brolley User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: badiu raz CC: sid@sourceware.org Subject: Re: Error building SID References: <53603a8c0710310645g5bc76081k3fd888eb9a1eac56@mail.gmail.com> In-Reply-To: <53603a8c0710310645g5bc76081k3fd888eb9a1eac56@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------000103070202060003040203" X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00001.txt.bz2 This is a multi-part message in MIME format. --------------000103070202060003040203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 2681 badiu raz wrote: > Hy, > I am trying to build SID but I still get errors no matter what I do. > edefinition of `struct _fpstate' > /usr/include/cygwin/signal.h > :18: error: previous definition of `struct _fpstate' > > make[8]: *** [wmFPUemu_glue.lo] Error 1 > This appears to be a genuine conflict between the struct tag in signal.h and the one in sid/component/bochs/cpu/fpu/stubs/asm/sigcontext.h. I suspect that _fpstate has recently been added to the cygwin header. I'll forward this problem on to the author (who probably no longer reads this list) and to get his opinion on renaming the one in sigcontext.h > make[5]: Entering directory `/cygdrive/d/sid/src/sid/component/families' > Making all in mep > make[6]: Entering directory `/cygdrive/d/sid/src/sid/component/families/mep' > if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"\" -DPACKAGE_ > TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" > -DPACKAGE_BUGREPORT=\" > \" -DPACKAGE=\"sidcomp\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAV > E_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_DLF > CN_H=1 -I. -I../../../.././sid/component/families/mep -I. -I../.. -I../../../in > clude -I../../../.././sid/component/families/mep/../../../include -I../../../../ > ./sid/component/families/mep/toshapi -g -O2 -MT components.lo -MD > -MP -MF ".d > eps/components.Tpo" -c -o components.lo components.cxx; \ > then mv -f ".deps/components.Tpo" ".deps/components.Plo"; else rm -f ".d > eps/components.Tpo"; exit 1; fi > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE > _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sidcomp\" > -DVERSION=\" 0.1\" -D > STDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE > _STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDI > NT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. > -I../../../.././sid/component/fami > lies/mep -I. -I../.. -I../../../include -I../../../.././sid/component/families/m > ep/../../../include -I../../../.././sid/component/families/mep/toshapi -g -O2 -M > T components.lo -MD -MP -MF .deps/components.Tpo -c components.cxx -o > components > .o > components.cxx:117: error: external linkage required for symbol 'mepfamily_compo > nent_library' because of 'dllexport' attribute. > make[6]: *** [components.lo] Error 1 > make[6]: Leaving directory `/cygdrive/d/sid/src/sid/component/families/mep' > This one I can help you with. I've committed the attached patch which should correct the problem. Dave --------------000103070202060003040203 Content-Type: text/plain; name="sid-dllexport.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-dllexport.ChangeLog" Content-length: 145 2007-10-31 Dave Brolley * components.cxx (mepfamily_component_library): Correct DLLEXPORT specification. --------------000103070202060003040203 Content-Type: text/plain; name="sid-dllexport.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-dllexport.patch.txt" Content-length: 945 Index: sid/component/families/mep/components.cxx =================================================================== RCS file: /cvs/cvsfiles/devo/sid/component/families/mep/components.cxx,v retrieving revision 1.15 diff -c -p -r1.15 components.cxx *** sid/component/families/mep/components.cxx 22 Aug 2005 21:15:25 -0000 1.15 --- sid/component/families/mep/components.cxx 31 Oct 2007 14:42:02 -0000 *************** compMepFamilyDelete(component* c) *** 112,120 **** // end-toshapi-destructors } ! extern const component_library mepfamily_component_library; ! const component_library mepfamily_component_library DLLEXPORT = { COMPONENT_LIBRARY_MAGIC, &compMepFamilyListTypes, --- 112,120 ---- // end-toshapi-destructors } ! DLLEXPORT extern const component_library mepfamily_component_library; ! const component_library mepfamily_component_library = { COMPONENT_LIBRARY_MAGIC, &compMepFamilyListTypes, --------------000103070202060003040203--