Re: recent CVS compilation issues
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 - 1.14 >+++ Makefile.in2 Aug 2007 13:15:24 - >@@ -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/
Re: recent CVS compilation issues
-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 - 1.14 +++ Makefile.in 2 Aug 2007 13:15:24 - @@ -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? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGsdmC84KuGfSFAYARAv3JAKDRQlw466XOmdsIvuj5dtR6D34PvQCdFsgP bMzxRDRmk46uc/h7zFSPLkk= =UyIZ -END PGP SIGNATURE- -- 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/
Re: recent CVS compilation issues
On Aug 1 22:37, Eric Blake wrote: > /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:190: undefined reference to > [EMAIL PROTECTED]' > ../../../../winsup/cygwin/smallprint.cc:200: undefined reference to > `_current_codepage' > ../../../../winsup/cygwin/smallprint.cc:201: undefined reference to > [EMAIL PROTECTED]' > ../../../../winsup/cygwin/smallprint.cc:203: undefined reference to > [EMAIL PROTECTED]' > ../../../../winsup/cygwin/smallprint.cc:211: undefined reference to > `_current_codepage' > ../../../../winsup/cygwin/smallprint.cc:212: undefined reference to > [EMAIL PROTECTED]' > ../../../../winsup/cygwin/smallprint.cc:214: undefined reference to > [EMAIL PROTECTED]' > Info: resolving __ctype_ by linking to __imp___ctype_ (auto-import) > 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. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
Re: recent CVS compilation issues
- Original Message - From: "Eric Blake" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 01, 2007 11:37 PM Subject: recent CVS compilation issues -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am getting the following on WinXP while trying to rebuild cygwin from CVS, ever since Corinna's patch to rename smallprint.cc: http://cygwin.com/ml/cygwin-cvs/2007-q3/msg00076.html. Is anyone else seeing this? /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:190: undefined reference to [EMAIL PROTECTED]' ../../../../winsup/cygwin/smallprint.cc:200: undefined reference to `_current_codepage' ../../../../winsup/cygwin/smallprint.cc:201: undefined reference to [EMAIL PROTECTED]' ../../../../winsup/cygwin/smallprint.cc:203: undefined reference to [EMAIL PROTECTED]' ../../../../winsup/cygwin/smallprint.cc:211: undefined reference to `_current_codepage' ../../../../winsup/cygwin/smallprint.cc:212: undefined reference to [EMAIL PROTECTED]' ../../../../winsup/cygwin/smallprint.cc:214: undefined reference to [EMAIL PROTECTED]' Info: resolving __ctype_ by linking to __imp___ctype_ (auto-import) collect2: ld returned 1 exit status same here. Windows XP pro. -- 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/