public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Devendra <devendra.vyavahare@gmail.com>
To: ecos-devel@sources.redhat.com
Subject: error in linking libraies with application
Date: Fri, 31 Dec 2004 10:51:00 -0000	[thread overview]
Message-ID: <9204e32d0412310250d0741b6@mail.gmail.com> (raw)

hello everyone,
 i am new buddy in ecos world. i have downloaded ecos-1.3.1-1.i386.rpm
from ecos homesite.and running it in redhat linux 9.
using ecosconfig command line utility i prepared build tree for
sythetic linux target. in /ecos-work/

------------------------------------------------------------------------------------
 [root@localhost /]# mkdir ecos-work 
[root@localhost /]# cd ecos-work/ 
[root@localhost ecos-work]# ecosconfig new linux 
[root@localhost ecos-work]# ls ecos.ecc 
------------------------------------------------------------------------------------
my gcc version is as follows so as specified in the tutorials i cahnged
 CYGBLD_GLOBAL_COMMAND_PREFIX in ecos.ecc to "". 
------------------------------------------------------------------------------------
 [root@localhost root]# gcc -v Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with:
../configure

--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking

--with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux 
Thread model: posix 
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 
[root@localhost root]# 
----------------------------------------------------------------------------------
build tree is completed & finally use 'make' to give header files
libraries in /ecos-work/install/include & /ecos-work/install/lib.
finally i

want to run hello world application in /try/hello.c but i got following errors 
----------------------------------------------------------------------------------
[root@localhost ecos-work]# cd /try [root@localhost try]# gcc -g
-I/ecos-work/install/include hello.c -L/ecos-work/install/lib

-Ttarget.ld -nostdlib
/ecos-work/install/lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x3c):
In

function `__static_initialization_and_destruction_0(int, int)':
/ecos-work/install/include/cyg/kernel/thread.inl:436: undefined
reference

to `__dso_handle'
/ecos-work/install/lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x48):
In

function `__static_initialization_and_destruction_0(int, int)':
/ecos-work/install/include/cyg/kernel/sched.hxx:216: undefined

reference to `__cxa_atexit' 

/ecos-work/install/lib/libtarget.a(language_c_libc_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x41):
In

function `__static_initialization_and_destruction_0': 

/opt/ecos/ecos-1.3.1/packages/language/c/libc/v1_3_1/src/support/mainthread.cxx:121:
undefined reference to `__dso_handle'

/ecos-work/install/lib/libtarget.a(language_c_libc_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x4d):/opt/eco

s/ecos-1.3.1/packages/language/c/libc/v1_3_1/src/support/mainthread.cxx:121:
undefined reference to `__cxa_atexit'

/ecos-work/install/lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b):
In function

`__static_initialization_and_destruction_0':
/ecos-work/install/include/cyg/kernel/clock.inl:63: undefined
reference to `__dso_handle'

/ecos-work/install/lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):
In function

`__static_initialization_and_destruction_0':
/opt/ecos/ecos-1.3.1/packages/kernel/v1_3_1/src/common/clock.cxx:435:
undefined

reference to `__cxa_atexit' 

/ecos-work/install/lib/libtarget.a(language_c_libc_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x57):
In function

`__static_initialization_and_destruction_0':
/opt/ecos/ecos-1.3.1/packages/language/c/libc/v1_3_1/src/clibincl/stream.inl:119:

undefined reference to `__dso_handle' 

/ecos-work/install/lib/libtarget.a(language_c_libc_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x63):/opt/ecos/ec

os-1.3.1/packages/language/c/libc/v1_3_1/src/clibincl/stream.inl:119:
undefined reference to `__cxa_atexit'

/ecos-work/install/lib/libtarget.a(language_c_libc_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b):
In

function `__static_initialization_and_destruction_0': 

/opt/ecos/ecos-1.3.1/packages/language/c/libc/v1_3_1/src/stdio/common/stdiofiles.cxx:71:
undefined reference to `__dso_handle'

/ecos-work/install/lib/libtarget.a(language_c_libc_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):/opt/ecos/

ecos-1.3.1/packages/language/c/libc/v1_3_1/src/stdio/common/stdiofiles.cxx:71:
undefined reference to `__cxa_atexit'

/ecos-work/install/lib/libtarget.a(language_c_libc_errno.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b):
In function

`__static_initialization_and_destruction_0':
/opt/ecos/ecos-1.3.1/packages/language/c/libc/v1_3_1/src/errno/errno.cxx:104:

undefined reference to `__dso_handle' 

/ecos-work/install/lib/libtarget.a(language_c_libc_errno.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):/opt/ecos/eco

s-1.3.1/packages/language/c/libc/v1_3_1/src/errno/errno.cxx:105:
undefined reference to `__cxa_atexit' collect2: ld returned 1 exit
status
[root@localhost try]#
 ----------------------------------------------------------------------------------

 somebody please help me in getting out of this. 

~ Devendra Vyavahare.

             reply	other threads:[~2004-12-31 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31 10:51 Devendra [this message]
2004-12-31 10:56 ` Andrew Lunn
2005-01-09  5:11   ` Devendra
2005-01-09 20:17     ` Andrew Lunn

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=9204e32d0412310250d0741b6@mail.gmail.com \
    --to=devendra.vyavahare@gmail.com \
    --cc=ecos-devel@sources.redhat.com \
    /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).