From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20766 invoked by alias); 22 Mar 2012 14:34:20 -0000 Received: (qmail 20579 invoked by uid 22791); 22 Mar 2012 14:34:18 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mho-01-ewr.mailhop.org (HELO mho-01-ewr.mailhop.org) (204.13.248.71) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Mar 2012 14:33:55 +0000 Received: from pool-173-76-45-163.bstnma.fios.verizon.net ([173.76.45.163] helo=cgf.cx) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1SAj5O-000ByS-IM for cygwin-xfree@cygwin.com; Thu, 22 Mar 2012 14:33:54 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id E7E0F13C002 for ; Thu, 22 Mar 2012 10:33:53 -0400 (EDT) X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18s+JcAe73m654wai8Us1y2 Date: Thu, 22 Mar 2012 14:34:00 -0000 From: Christopher Faylor To: cygwin-xfree@cygwin.com Subject: Re: Linking Errors related to X11 Message-ID: <20120322143353.GA11271@ednor.casa.cgf.cx> Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com References: <4F6A5E96.60706@cygwin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F6A5E96.60706@cygwin.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00044.txt.bz2 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] >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. -- 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/