Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42495B9B.7090900@huarp.harvard.edu>
Date: Tue, 29 Mar 2005 08:43:55 -0500
From: Norton Allen <allen@huarp.harvard.edu>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
MIME-Version: 1.0
To: "Gerrit P. Haase" <gp@familiehaase.de>
CC: cygwin@cygwin.com
Subject: Re: gcc 3.3.3, const symbols and shared libraries
References: <4246D5A0.4070409@huarp.harvard.edu> <42491C9C.5000906@familiehaase.de>
In-Reply-To: <42491C9C.5000906@familiehaase.de>
Content-Type: multipart/mixed; boundary="------------080605010406010609020003"
Received-SPF: pass (ent.arp.harvard.edu: 10.0.0.109 is authenticated by a trusted mechanism)

--------------080605010406010609020003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Gerrit P. Haase wrote:
> Norton Allen wrote:
> 
>> I have seen the discussions at
>>
>> http://sourceware.org/ml/cygwin/2004-09/msg01101.html
>>
>> referenced at
>>
>> http://cygwin.com/ml/cygwin/2005-03/msg00048.html
>>
>> regarding gcc 3.3.3's placement of const symbols into
>> rdata which then cannot be properly initialized.
>> This problem seems pretty fundamental. Can anyone
>> tell me whether there has been any followup to
>> this? Is it considered a cygwin problem or a
>> gcc problem? Has it been addressed in 3.4.1?
>> What are developers doing? Going back to 3.3.1?
> 
> 
> The rule is to not use const symbols in shared libraries
> if they are not really const;)

What do you mean by "really?" These are const from
the standpoint of "defined once and never changed
thereafter," but they are not finally defined until
the link against shared libraries.

It's currently an issue because it requires changes
to quite a few packages. In the past week, I had to
remove const declarations from glib-2.6.3 and
gtk+-2.6.4 to get them to compile. Are these changes
that are uniquely required by cygwin, or are these
going to be required for all gcc platforms?

-Norton

--------------080605010406010609020003
Content-Type: text/x-vcard; charset=utf-8;
 name="allen.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="allen.vcf"

begin:vcard
fn:Norton Allen
n:Allen;Norton
org:Harvard University;Anderson Group, DEAS/CCB
adr;dom:;;12 Oxford St.;Cambridge;MA;02138
email;internet:allen@huarp.harvard.edu
title:Software Engineer
tel;work:617-495-5922
x-mozilla-html:FALSE
url:http://www.arp.harvard.edu/
version:2.1
end:vcard



--------------080605010406010609020003
Content-Type: text/plain; charset=us-ascii

--
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/
--------------080605010406010609020003--
