From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6190 invoked by alias); 22 Mar 2012 14:38:43 -0000 Received: (qmail 6099 invoked by uid 22791); 22 Mar 2012 14:38:41 -0000 X-SWARE-Spam-Status: No, hits=3.5 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from vms173005pub.verizon.net (HELO vms173005pub.verizon.net) (206.46.173.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Mar 2012 14:38:25 +0000 Received: from [192.168.1.231] ([unknown] [108.7.36.242]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M1A00IIGJBWL3F0@vms173005.mailsrvcs.net> for cygwin-xfree@cygwin.com; Thu, 22 Mar 2012 09:38:25 -0500 (CDT) Message-id: <4F6B395C.1090608@cygwin.com> Date: Thu, 22 Mar 2012 14:38:00 -0000 From: "Larry Hall (Cygwin-X)" Reply-to: cygwin-xfree@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: Linking Errors related to X11 References: <4F6A5E96.60706@cygwin.com> <20120322143353.GA11271@ednor.casa.cgf.cx> In-reply-to: <20120322143353.GA11271@ednor.casa.cgf.cx> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-03/txt/msg00045.txt.bz2 On 3/22/2012 10:33 AM, Christopher Faylor wrote: > On Wed, Mar 21, 2012 at 07:04:54PM -0400, Larry Hall (Cygwin-X) wrote: >> On 3/21/2012 6:19 PM, Tom Szczesny wrote: >>> I am attempting to port the aplus-fsf-4.22 package (available at >>> www.aplusdev.org) to cygwin, >>> and I'm getting linking errors related to X11. >>> >>> I can build the package successfully on Gentoo Linux. >>> >>> The build on cygwin fails at /aplus-fsf-4.22/src/main/aplus-main.c >>> with many error messages related to X11, such as >>> undefined reference to '_XWarpPointer'. >>> >>> The Makefile.in contains the lines: >>> X_INCLUDES = @X_INCLUDES@ >>> X_LIBS = @X_LIBS@ >>> >>> which got translated (in the Makefile) to: >>> X_INCLUDES = -I >>> X_LIBS = -L -lX11 >>> >>> While this works when building in Gentoo Linux, it does not appear to >>> be correct for cygwin. >>> What is the correct specification when building the package in cygwin? > > [I thought this was already answered in the cygwin list] Me too. ;-) >> Try these: >> >> X_INCLUDES = /usr/include >> X_LIBS = -L /usr/include -lX11 >> >> You can also override the faulty configure script values and point >> directly at these paths with the -x-includes and -x-libraries >> flags. > > The -L part is not right, Larry. If anything, it should be -L /usr/lib > but there's no need for that since /usr/lib is searched by default. So > both the -L and the -I should just be deleted. Ugh. Cut and paste error. Thanks for the correction. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/