delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/02/09:18:19

X-Spam-Check-By: sourceware.org
Message-ID: <46B1D982.7010600@byu.net>
Date: Thu, 02 Aug 2007 07:17:54 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: recent CVS compilation issues
References: <46B15F8F DOT 1030001 AT byu DOT net> <20070802090013 DOT GT13674 AT calimero DOT vinschen DOT de>
In-Reply-To: <20070802090013.GT13674@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----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?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019