From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26730 invoked by alias); 27 Dec 2001 17:42:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 26703 invoked from network); 27 Dec 2001 17:42:40 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154) by sources.redhat.com with SMTP; 27 Dec 2001 17:42:40 -0000 Received: from cgf.cipe.redhat.com (dhcpd183.meridian.redhat.com [172.16.47.183]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id fBRHgda05090 for ; Thu, 27 Dec 2001 12:42:39 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id fBRHgdu24980 for cygwin@cygwin.com; Thu, 27 Dec 2001 12:42:39 -0500 Date: Thu, 27 Dec 2001 10:21:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: duplicate regexec/regcomp functions detected Message-ID: <20011227174239.GA24897@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20011214113619.J740@cygbert.vinschen.de> <000401c18efb$18115890$0e6307d5@BRAMSCHE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000401c18efb$18115890$0e6307d5@BRAMSCHE> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2001-12/txt/msg01202.txt.bz2 On Thu, Dec 27, 2001 at 06:22:43PM +0100, Ralf Habacker wrote: >> -----Original Message----- >> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf >> Of Corinna Vinschen >> Sent: Friday, December 14, 2001 11:36 AM >> To: cygwin >> Subject: Re: duplicate regexec/regcomp functions detected >> >> >> On Thu, Dec 13, 2001 at 09:18:39PM +0100, Ralf Habacker wrote: >> > Hi all, >> > >> > kde needs the regexp functions regexec and regcomp. >> > >> > The cygwin lib contains the System V8 function call style, while the pcre >> package (pcreposix) >> > provides another style (the system V style I guess). The problem is now, that both libs >> > supports the same names for regexec and regcomp but with different >> parameter/return types. >> > This results sometimes in execution failures if the libs are not in the right order like >> > shown in the following example. >> > >> > pcre regexp wanted >> > >> > $ gcc ... -lpcreposix -lcygwin -> okay >> > >> > $ gcc ... -lpthreads|-lm|-lc -lpcreposix -lcygwin -> failure: the functions in >> cygwin lib >> > are used >> >> But that order should never happen EXCEPT you're making the big >> mistake to give `-lm' or `-lc' on the command line explicitly. >> Since -lcygwin is appended automagically and libc.a and libm.a >> are the same library anyway, the answer is simply, "Don't do that." > >This may be for -lm and -lc, but what about libpthread > >Think about this link line: > >gcc -o test -lpthread main.o [-lcygwin] > >This will result in multiple defined symbols for WinMain (expected that >main.o contains a main function). You can say don't do this, but what >about bigger packages like qt. The qt configuring process does only >allow like the above link line. The above link line makes no sense. It is wrong. It should be corrected. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/