From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3427 invoked by alias); 21 Mar 2012 23:05:32 -0000 Received: (qmail 3419 invoked by uid 22791); 21 Mar 2012 23:05:31 -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; Wed, 21 Mar 2012 23:05:16 +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 <0M1900B1NC46KUW0@vms173005.mailsrvcs.net> for cygwin-xfree@cygwin.com; Wed, 21 Mar 2012 18:04:58 -0500 (CDT) Message-id: <4F6A5E96.60706@cygwin.com> Date: Wed, 21 Mar 2012 23:05: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: In-reply-to: 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/msg00043.txt.bz2 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? 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. I didn't test these settings so you may need to experiment a little. But essentially you can find the paths you're looking for by checking out the contents on the libX11-devel package, which you should already have. -- 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/