delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/02/22:27:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 2 Dec 2003 22:27:28 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with gcc -mno-cygwin?
Message-ID: <20031203032728.GA3222@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3FCD509D DOT 9040104 AT cwilson DOT fastmail DOT fm>
Mime-Version: 1.0
In-Reply-To: <3FCD509D.9040104@cwilson.fastmail.fm>
User-Agent: Mutt/1.4.1i

On Tue, Dec 02, 2003 at 09:55:25PM -0500, Charles Wilson wrote:
>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:
>[snip]
>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?

I don't know what this particular problem is (it sounds pretty bad if
-mno-cygwin is this broken) but:

======================
File: w32-shared-ptr.c  Status: Up-to-date

   Working revision:    1.1.6.1
   Repository revision: 1.1.6.1 /cvs/gcc/gcc/gcc/config/i386/Attic/w32-shared-ptr.c,v
   Sticky Tag:          cygming332 (branch: 1.1.6.1.2)
   Sticky Date:         (none)
   Sticky Options:      (none)

This file *is* in cvs.  It was added by Danny Smith in August, AFAICT.

Out of curiousity, have you upgraded all of the various gcc-mingw
packages now?

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/

- Raw text -


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