X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Reply-To: jojelino AT gmail DOT com Date: Fri, 18 Dec 2009 04:16:05 +0900 Message-ID: Subject: undefined reference to `___real__Znwj' From: jojelino To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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 tested with gcc version 4.5.0 20091217 (experimental) (GCC) perl v5.10.1 (this is weird . it complains .) cannot remove path when cwd is /tmp/fbRcNjc7xj for /tmp/fbRcNjc7xj: at /usr/lib /perl5/5.10/File/Temp.pm line 902 cygwin0.dll have __real__z* symbol... it seems it should have been eliminated after linking... well it seems that gcc compiler can't handle properly c++ symbols... how to workaround this problem?? any suggestions are welcomed. $ nm -s cygwin0.dll |grep -E "_Z(n|d)" 61002430 T __ZdaPv 61002410 T __ZdaPvRKSt9nothrow_t 61002420 T __ZdlPv 61002400 T __ZdlPvRKSt9nothrow_t 610024a0 T __Znaj 61002460 T __ZnajRKSt9nothrow_t 61002480 T __Znwj 61002440 T __ZnwjRKSt9nothrow_t U ___real__ZdaPv U ___real__ZdlPv U ___real__Znaj U ___real__Znwj 61072120 T ___wrap__ZdaPv 61072160 T ___wrap__ZdaPvRKSt9nothrow_t 61072110 T ___wrap__ZdlPv 61072150 T ___wrap__ZdlPvRKSt9nothrow_t 61072100 T ___wrap__Znaj 61072140 T ___wrap__ZnajRKSt9nothrow_t 610720f0 T ___wrap__Znwj 61072130 T ___wrap__ZnwjRKSt9nothrow_t >>>>>>>>>>>>>>>nm -s _cygwin_crt0_common.o 00000000 A .weak DOT ___real__ZdaPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdaPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znaj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnajRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znwj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnwjRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 U _GetModuleHandleA AT 4 U ___CTOR_LIST__ U ___DTOR_LIST__ 00000000 D ___cygwin_cxx_malloc U ___dynamically_loaded w ___real__ZdaPv w ___real__ZdaPvRKSt9nothrow_t w ___real__ZdlPv w ___real__ZdlPvRKSt9nothrow_t w ___real__Znaj w ___real__ZnajRKSt9nothrow_t w ___real__Znwj w ___real__ZnwjRKSt9nothrow_t >>>>>>>>>>>>$ nm -s libcygwin.a |grep -E "_Z(n|d)" __imp____wrap__ZdaPv in d000087.o __imp____wrap__ZdaPvRKSt9nothrow_t in d000088.o __imp____wrap__ZdlPv in d000089.o __imp____wrap__ZdlPvRKSt9nothrow_t in d000090.o __imp____wrap__Znaj in d000091.o __imp____wrap__ZnajRKSt9nothrow_t in d000092.o __imp____wrap__Znwj in d000093.o __imp____wrap__ZnwjRKSt9nothrow_t in d000094.o ___wrap__ZdaPv in t-d000087.o ___wrap__ZdaPvRKSt9nothrow_t in t-d000088.o ___wrap__ZdlPv in t-d000089.o ___wrap__ZdlPvRKSt9nothrow_t in t-d000090.o ___wrap__Znaj in t-d000091.o ___wrap__ZnajRKSt9nothrow_t in t-d000092.o ___wrap__Znwj in t-d000093.o ___wrap__ZnwjRKSt9nothrow_t in t-d000094.o .weak DOT ___real__ZdaPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_ .o .weak DOT ___real__ZdlPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_ .o .weak DOT ___real__ZnajRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_c o .weak DOT ___real__ZnwjRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_c o .weak DOT ___real__ZdaPv DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__ZdlPv DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__Znaj DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__Znwj DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o 00000000 I __imp____wrap__ZdaPv 00000000 I __imp____wrap__ZdaPvRKSt9nothrow_t 00000000 I __imp____wrap__ZdlPv 00000000 I __imp____wrap__ZdlPvRKSt9nothrow_t 00000000 I __imp____wrap__Znaj 00000000 I __imp____wrap__ZnajRKSt9nothrow_t 00000000 I __imp____wrap__Znwj 00000000 I __imp____wrap__ZnwjRKSt9nothrow_t 00000000 T ___wrap__ZdaPv U __imp____wrap__ZdaPv 00000000 T ___wrap__ZdaPvRKSt9nothrow_t U __imp____wrap__ZdaPvRKSt9nothrow_t 00000000 T ___wrap__ZdlPv U __imp____wrap__ZdlPv 00000000 T ___wrap__ZdlPvRKSt9nothrow_t U __imp____wrap__ZdlPvRKSt9nothrow_t 00000000 T ___wrap__Znaj U __imp____wrap__Znaj 00000000 T ___wrap__ZnajRKSt9nothrow_t U __imp____wrap__ZnajRKSt9nothrow_t 00000000 T ___wrap__Znwj U __imp____wrap__Znwj 00000000 T ___wrap__ZnwjRKSt9nothrow_t U __imp____wrap__ZnwjRKSt9nothrow_t 00000000 A .weak DOT ___real__ZdaPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdaPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znaj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnajRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znwj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnwjRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 w ___real__ZdaPv w ___real__ZdaPvRKSt9nothrow_t w ___real__ZdlPv w ___real__ZdlPvRKSt9nothrow_t w ___real__Znaj w ___real__ZnajRKSt9nothrow_t w ___real__Znwj w ___real__ZnwjRKSt9nothrow_t >>>>>>>>>>>>>>>>>$ nm -s libcygwin.a |grep -E "_Z(n|d)" __imp____wrap__ZdaPv in d000087.o __imp____wrap__ZdaPvRKSt9nothrow_t in d000088.o __imp____wrap__ZdlPv in d000089.o __imp____wrap__ZdlPvRKSt9nothrow_t in d000090.o __imp____wrap__Znaj in d000091.o __imp____wrap__ZnajRKSt9nothrow_t in d000092.o __imp____wrap__Znwj in d000093.o __imp____wrap__ZnwjRKSt9nothrow_t in d000094.o ___wrap__ZdaPv in t-d000087.o ___wrap__ZdaPvRKSt9nothrow_t in t-d000088.o ___wrap__ZdlPv in t-d000089.o ___wrap__ZdlPvRKSt9nothrow_t in t-d000090.o ___wrap__Znaj in t-d000091.o ___wrap__ZnajRKSt9nothrow_t in t-d000092.o ___wrap__Znwj in t-d000093.o ___wrap__ZnwjRKSt9nothrow_t in t-d000094.o .weak DOT ___real__ZdaPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_ .o .weak DOT ___real__ZdlPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_ .o .weak DOT ___real__ZnajRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_c o .weak DOT ___real__ZnwjRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_c o .weak DOT ___real__ZdaPv DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__ZdlPv DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__Znaj DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o .weak DOT ___real__Znwj DOT __cygwin_crt0_common AT 8 in _cygwin_crt0_common.o 00000000 I __imp____wrap__ZdaPv 00000000 I __imp____wrap__ZdaPvRKSt9nothrow_t 00000000 I __imp____wrap__ZdlPv 00000000 I __imp____wrap__ZdlPvRKSt9nothrow_t 00000000 I __imp____wrap__Znaj 00000000 I __imp____wrap__ZnajRKSt9nothrow_t 00000000 I __imp____wrap__Znwj 00000000 I __imp____wrap__ZnwjRKSt9nothrow_t 00000000 T ___wrap__ZdaPv U __imp____wrap__ZdaPv 00000000 T ___wrap__ZdaPvRKSt9nothrow_t U __imp____wrap__ZdaPvRKSt9nothrow_t 00000000 T ___wrap__ZdlPv U __imp____wrap__ZdlPv 00000000 T ___wrap__ZdlPvRKSt9nothrow_t U __imp____wrap__ZdlPvRKSt9nothrow_t 00000000 T ___wrap__Znaj U __imp____wrap__Znaj 00000000 T ___wrap__ZnajRKSt9nothrow_t U __imp____wrap__ZnajRKSt9nothrow_t 00000000 T ___wrap__Znwj U __imp____wrap__Znwj 00000000 T ___wrap__ZnwjRKSt9nothrow_t U __imp____wrap__ZnwjRKSt9nothrow_t 00000000 A .weak DOT ___real__ZdaPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdaPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPv DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZdlPvRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znaj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnajRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__Znwj DOT __cygwin_crt0_common AT 8 00000000 A .weak DOT ___real__ZnwjRKSt9nothrow_t DOT __cygwin_crt0_common AT 8 w ___real__ZdaPv w ___real__ZdaPvRKSt9nothrow_t w ___real__ZdlPv w ___real__ZdlPvRKSt9nothrow_t w ___real__Znaj w ___real__ZnajRKSt9nothrow_t w ___real__Znwj w ___real__ZnwjRKSt9nothrow_t $ nm -s cxx.o |grep -E "_Z(n|d)" 00000030 T __ZdaPv 00000010 T __ZdaPvRKSt9nothrow_t 00000020 T __ZdlPv 00000000 T __ZdlPvRKSt9nothrow_t 000000a0 T __Znaj 00000060 T __ZnajRKSt9nothrow_t 00000080 T __Znwj 00000040 T __ZnwjRKSt9nothrow_t g++ -L/tmp/winsup/i686-pc-cygwin/winsup -L/tmp/winsup/i686-pc-cygwin/winsup/cygw in -L/tmp/winsup/i686-pc-cygwin/winsup/w32api/lib -isystem /tmp/winsup/winsup/in clude -isystem /tmp/winsup/winsup/cygwin/include -isystem /tmp/winsup/winsup/w32 api/include -B/tmp/winsup/i686-pc-cygwin/newlib/ -isystem /tmp/winsup/i686-pc-cy gwin/newlib/targ-include -isystem /tmp/winsup/newlib/libc/include -o cygserve r.exe cygserver.o client.o process.o msg.o sem.o shm.o threaded_queue.o transpor t.o transport_pipes.o bsd_helper.o bsd_log.o bsd_mutex.o sysv_msg.o sysv_sem.o s ysv_shm.o setpwd.o /tmp/winsup/i686-pc-cygwin/winsup/cygwin/version.o -static -s tatic-libgcc -L/tmp/winsup/i686-pc-cygwin/winsup/cygwin -lntdll /tmp/winsup/i686-pc-cygwin/winsup/cygwin/libcygwin.a(_cygwin_crt0_common.o):_cyg win_crt0_common.cc:(.data+0x0): undefined reference to `___real__Znwj' /tmp/winsup/i686-pc-cygwin/winsup/cygwin/libcygwin.a(_cygwin_crt0_common.o):_cyg win_crt0_common.cc:(.data+0x4): undefined reference to `___real__Znaj' /tmp/winsup/i686-pc-cygwin/winsup/cygwin/libcygwin.a(_cygwin_crt0_common.o):_cyg win_crt0_common.cc:(.data+0x8): undefined reference to `___real__ZdlPv' collect2: ld returned 1 exit status make[1]: *** [cygserver.exe] Error 1 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple