public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin-xfree@cygwin.com
Subject: Re: Linking Errors related to X11
Date: Thu, 22 Mar 2012 14:34:00 -0000	[thread overview]
Message-ID: <20120322143353.GA11271@ednor.casa.cgf.cx> (raw)
In-Reply-To: <4F6A5E96.60706@cygwin.com>

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/


  reply	other threads:[~2012-03-22 14:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 22:19 Tom Szczesny
2012-03-21 23:05 ` Larry Hall (Cygwin-X)
2012-03-22 14:34   ` Christopher Faylor [this message]
2012-03-22 14:38     ` Larry Hall (Cygwin-X)
2012-03-22 17:55 ` Tom Szczesny
2012-03-22 18:23   ` Jack
2012-03-22 19:23   ` Christopher Faylor
2012-03-22 19:52     ` Yaakov (Cygwin/X)
2012-03-22 19:47 Tom Szczesny
2012-03-22 19:52 ` Larry Hall (Cygwin-X)
2012-03-22 20:22 ` Tom Szczesny
2012-03-22 22:37   ` Yaakov (Cygwin/X)
2012-03-22 22:41 ` Yaakov (Cygwin/X)
2012-03-22 20:31 Tom Szczesny
2012-03-22 20:55 Tom Szczesny
2012-03-22 21:08 ` Larry Hall (Cygwin-X)
2012-03-23  1:51 Tom Szczesny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120322143353.GA11271@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.com \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).