Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Thu, 3 Oct 2002 17:55:16 -0400 (EDT) From: Yingping Zhang To: cc: , Subject: Cannot export etext:symbol not find Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello all, Could someone help me? When I used Gcc to compile programs on cygwin, I encountered some problems. To simplify the question, I just use a "hello.c" to replace all programs and I get the same error report. What I did and got is : 1. I used follow command to compile "hello.c" and get a "hello.o", and it is OK. ----------------------------------------------------------------------- $ g++-2 -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS -Wformat -funsigned-char -D__GNU_BUG_WORKAROUND -D_NOTHREADS -g -c -D_LEGO_CLONER -DBACK_END -Dlonglong -DSTD_MONGOOSE_LOC='"/usr/lib32/cmplrs"' -DMONGOOSE_BE -D_LONGLONG -D_SVR4_SOURCE -D_NEW_SYMTAB -D__MIPS_AND_IA64_ELF_H -fwritable-strings -fPIC -DTARG_ARM -I../include -O0 -D_MIPSEL -D_LONGLONG -D_MIPS_SZINT=32 -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -MD hello.c -o hello.o cc1plus:warning:-fPIC ignored for target(all code is position independent) -------------------------------------------------------------------------- 2. I tried to link it but I got some error reports: Cannot export etext: symbol not foun collect2: ld returned 1 exit status like follow: ---------------------------------------------------------------------- g++-2 -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS -Wformat -funsigned-char -D__GNU_BUG_WORKAROUND -D_NOTHREADS -D_LEGO_CLONER -DBACK_END -Dlonglong -DSTD_MONGOOSE_LOC='"/usr/lib32/cmplrs"' -DMONGOOSE_BE -D_LONGLONG -D_SVR4_SOURCE -D_NEW_SYMTAB -D__MIPS_AND_IA64_ELF_H -fwritable-strings -fPIC -DTARG_ARM -I../include -O0 -D_MIPSEL -D_LONGLONG -D_MIPS_SZINT=32 -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -MD -elf -shared -o be.so hello.o ./osprey1.0/targia32_arm_nodebug/targ_info/libtarginfo.a ./osprey1.0/targia32_arm_nodebug/targ_info/arm.so -o be.so -lm -ldl Cannot export etext: symbol not foun collect2: ld returned 1 exit status ----------------------------------------------------------------------- When I did not include the arm.so then it is fine. When I red the arm.so I find etext's define in arm.so is empty and I could not find where it is define and I don't know how to correct it. If there is any way I can just use the define of system for etext rather than of the programs or I can avoid the errors with some options? Could anybody give a hint. Thank you very much. Ying -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/