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 Message-ID: <3FCD509D.9040104@cwilson.fastmail.fm> Date: Tue, 02 Dec 2003 21:55:25 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com, mingw-users AT lists DOT sourceforge DOT net Subject: Problem with gcc -mno-cygwin? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit So I'm trying to release a new version of "mingw-zlib" for cygwin(*) now that zlib-1.2.1 has been released. But I can't... (*) this package is a msvcrt-linked version of zlib, used by cygwin internal projects (like setup.exe and others) which are not allowed, for whatever reason, to link against cygwin1.dll or the cygwin version of zlib. So here's the error I get: gcc -mno-cygwin -O2 -o example.exe example.o -L. -lz -L/usr/lib/mingw /usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/crtbegin.o(.text+0x5):crtstuff.c: undefined reference to `___w32_sharedptr_initialize' collect2: ld returned 1 exit status make: *** [example.exe] Error 1 I snooped around in the gcc CVSWEB and found this file in the cygming332 branch: gcc/gcc/config/i386/t-cygming ---------------------------------------------- LIB1ASMSRC = i386/cygwin.asm LIB1ASMFUNCS = _chkstk # cygwin always has a limits.h, but, depending upon how we are doing # the build, it may not be installed yet. LIMITS_H_TEST = true # If we are building next to winsup, this will let us find the real # limits.h when building libgcc2. Otherwise, winsup must be installed # first. LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c # Don't run fixproto STMP_FIXPROTO= STMP_FIXINC=stmp-fixinc ---------------------------------------------- Now it refers to a file "config/i386/w32-shared-ptr.c" which seems promising -- but doesn't appear to exist in CVS. Is this a problem? -- Chuck -- 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/