public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: badiu raz <razone@gmail.com>
Cc: sid@sourceware.org
Subject: Re: Error building SID
Date: Wed, 31 Oct 2007 14:58:00 -0000	[thread overview]
Message-ID: <47289777.5060503@redhat.com> (raw)
In-Reply-To: <53603a8c0710310645g5bc76081k3fd888eb9a1eac56@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2681 bytes --]

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


[-- Attachment #2: sid-dllexport.ChangeLog --]
[-- Type: text/plain, Size: 145 bytes --]

2007-10-31  Dave Brolley  <brolley@redhat.com>

        * components.cxx (mepfamily_component_library): Correct DLLEXPORT
        specification.

[-- Attachment #3: sid-dllexport.patch.txt --]
[-- Type: text/plain, Size: 945 bytes --]

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,

  reply	other threads:[~2007-10-31 14:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 13:45 badiu raz
2007-10-31 14:58 ` Dave Brolley [this message]
2007-10-31 17:25 ` Dave Brolley
  -- strict thread matches above, loose matches on Subject: below --
2008-12-11 21:28 Error Building SID Shamik Datta
2008-12-11 23:50 ` Frank Ch. Eigler
     [not found]   ` <239b036a0812121037p534a4ca1t759ea754c7ebad62@mail.gmail.com>
     [not found]     ` <20081212195729.GB1200@redhat.com>
     [not found]       ` <239b036a0812130700v2ba9e054yb63be621c223b769@mail.gmail.com>
     [not found]         ` <239b036a0812150100h1330ba92nb89c0597268a8c01@mail.gmail.com>
     [not found]           ` <20081215175754.GA7910@redhat.com>
     [not found]             ` <239b036a0812151202y5ed2a0a4y486ce4905503de67@mail.gmail.com>
2008-12-15 20:39               ` Frank Ch. Eigler
     [not found]                 ` <239b036a0812211557h2d73685pf3ccd01a5ac3d6da@mail.gmail.com>
2008-12-25 18:45                   ` Frank Ch. Eigler
2004-05-04 12:18 error building SID Ashutosh Vyas
2004-05-05  0:47 ` Ben Elliston
2004-05-05  8:58   ` Robert Cragie
2004-05-05  9:49     ` Ashutosh
2004-05-06  1:58     ` Ben Elliston
2004-05-07 10:00       ` Robert Cragie
2004-05-07 17:18         ` Frank Ch. Eigler
2003-06-20 21:17 Partha Palit
2003-06-20 21:31 ` Frank Ch. Eigler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47289777.5060503@redhat.com \
    --to=brolley@redhat.com \
    --cc=razone@gmail.com \
    --cc=sid@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).