X-Spam-Check-By: sourceware.org Date: Thu, 2 Aug 2007 10:50:23 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: recent CVS compilation issues Message-ID: <20070802145023.GA5057@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <46B15F8F DOT 1030001 AT byu DOT net> <20070802090013 DOT GT13674 AT calimero DOT vinschen DOT de> <46B1D982 DOT 7010600 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46B1D982.7010600@byu.net> User-Agent: Mutt/1.5.15 (2007-04-06) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Thu, Aug 02, 2007 at 07:17:54AM -0600, Eric Blake wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >According to Corinna Vinschen on 8/2/2007 3:00 AM: >>> collect2: ld returned 1 exit status >> >> No such problem in my cross-build on Linux. I was going to try on >> Cygwin but came across another problem where I broke the unlink() >> function :( I'm going to look into that one first, of course. > >The problem is not in building cygwin1.dll, but cygserver. Doing this: > >Index: Makefile.in >=================================================================== >RCS file: /cvs/src/src/winsup/cygserver/Makefile.in,v >retrieving revision 1.14 >diff -u -p -r1.14 Makefile.in >- --- Makefile.in 23 Feb 2007 11:43:48 -0000 1.14 >+++ Makefile.in 2 Aug 2007 13:15:24 -0000 >@@ -68,7 +68,7 @@ libclean: > fullclean: clean libclean > > cygserver.exe: $(CYGWIN_LIB) $(OBJS) $(CYGWIN_OBJS) >- - $(CXX) -o $@ ${wordlist 2,999,$^} -L$(cygwin_build) >+ $(CXX) -o $@ ${wordlist 2,999,$^} -L$(cygwin_build) -lntdll > > $(cygwin_build)/%.o: $(cygwin_source)/%.cc > @$(MAKE) -C $(@D) $(@F) > > > >helps, but doesn't solve the problem, because I still get: > >/home/eblake/src/build/i686-pc-cygwin/winsup/cygwin/smallprint.o: In >function `__small_vsprintf': >../../../../winsup/cygwin/smallprint.cc:130: undefined reference to >`sys_wcstombs(char*, int, wchar_t const*, int)@16' >../../../../winsup/cygwin/smallprint.cc:200: undefined reference to >`_current_codepage' >../../../../winsup/cygwin/smallprint.cc:211: undefined reference to >`_current_codepage' >Info: resolving __ctype_ by linking to __imp___ctype_ (auto-import) >collect2: ld returned 1 exit status >make[3]: *** [cygserver.exe] Error 1 >make[3]: Leaving directory >`/home/eblake/src/build/i686-pc-cygwin/winsup/cygserver' > >So where do current_codepage and sys_wcstombs live? They used to live in dcrt0.cc and miscfuncs.cc respectively. I moved them into separate files, after consultation with Corinna. Things seem to build ok now. There is a snapshot up there to prove that point. Thanks for the heads up, Eric. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/