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: <42497FF9.8030104@familiehaase.de> Date: Tue, 29 Mar 2005 18:19:05 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: Norton Allen CC: cygwin AT cygwin DOT com Subject: Re: gcc 3.3.3, const symbols and shared libraries References: <4246D5A0 DOT 4070409 AT huarp DOT harvard DOT edu> <42491C9C DOT 5000906 AT familiehaase DOT de> <42495B9B DOT 7090900 AT huarp DOT harvard DOT edu> In-Reply-To: <42495B9B.7090900@huarp.harvard.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Norton Allen wrote: > 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 I needed to apply these changes too (I'm the maintainer of glib2), I think it is required for those platforms coming with gcc in question as default compiler, yes. However, only parts where libpopt is involved where affected, the usual way oppt was used doesn't work, at least with Cygwin. Gerrit -- =^..^= Action Soccer: http://www.action-soccer.de/?lv=de&id=505 (german online game) -- 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/