public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: Linking Errors related to X11
@ 2012-03-22 20:31 Tom Szczesny
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Szczesny @ 2012-03-22 20:31 UTC (permalink / raw)
  To: cygwin-xfree

I also get a null response when I execute:

Tom@Toshiba /usr/local/aplus-fsf-4.22
$ grep libnsl src -r

--
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/


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Linking Errors related to X11
@ 2012-03-23  1:51 Tom Szczesny
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Szczesny @ 2012-03-23  1:51 UTC (permalink / raw)
  To: cygwin-xfree

Yaakov wrote:
"For future reference, this package includes a very old version of libtool
which is not guaranteed to work on Cygwin. This is why running autoreconf
is standard procedure when building autoconf-based packages."

Thank you for this comment.  It gives me a place to start.
If there are any other important initial steps to the "standard procedure",
(or a place to find a list of all the steps) please let me know.

Also:  The issues that I am facing are clearly not specific to the
cygwin-xfree group.  When I do have further questions related to porting
a very old package (that does still build and work on Linux) to cygwin,
which is the best forum in which to ask them?

--
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/


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Linking Errors related to X11
@ 2012-03-22 20:55 Tom Szczesny
  2012-03-22 21:08 ` Larry Hall (Cygwin-X)
  0 siblings, 1 reply; 17+ messages in thread
From: Tom Szczesny @ 2012-03-22 20:55 UTC (permalink / raw)
  To: cygwin-xfree

Larry Hall wrote:
"That's because the Makefile generated by the configure script *ignores*
X_LIBS.  You'll need to force -lX11 into the link line of every affected
Makefile. if you want it to link against this library.  This is a problem
with the app's configure script, not Cygwin.  You should report this to
the maintainers."

The lib for src/dap is      ../../src/dap/.libs/libdap.a
The lib for src/AplusGUI is     ../../src/ApluGUI/.libs/libAplusGUI.a

What file contains the lib for X11 in cygwin?

--
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/


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Linking Errors related to X11
@ 2012-03-22 19:47 Tom Szczesny
  2012-03-22 19:52 ` Larry Hall (Cygwin-X)
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Tom Szczesny @ 2012-03-22 19:47 UTC (permalink / raw)
  To: cygwin-xfree

Blunt is fine ( I don't mind).

To repeat what I reported in an earlier note:
When I set:

X_INCLUDES =
X_LIBS = -lX11

I get:
g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o
-L/usr/local/aplus-fsf-4.22/src/IPC -L/usr/local/aplus-fsf-4.22/src/cxs
-L/usr/local/aplus-fsf-4.22/src/cxb -L/usr/local/aplus-fsf-4.22/src/AplusGUI
-L/usr/local/aplus-fsf-4.22/src/cxsys -L/usr/local/aplus-fsf-4.22/src/cxc
-L/usr/local/aplus-fsf-4.22/src/esf -L/usr/local/aplus-fsf-4.22/src/a
-L/usr/local/aplus-fsf-4.22/src/dap -L/usr/local/aplus-fsf-4.22/src/MSGUI
-L/usr/local/aplus-fsf-4.22/src/MSIPC
-L/usr/local/aplus-fsf-4.22/src/MSTypes .libs/libimp-cygX11-6.a
.libs/libimp-cygxcb-1.a .libs/libimp-cygXau-6.a
.libs/libimp-cygXdmcp-6.a
../../src/IPC/.libs/libIPC.a ../../src/cxs/.libs/libcxs.a
../../src/cxb/.libs/libcxb.a ../../src/AplusGUI/.libs/libAplusGUI.a
../../src/cxsys/.libs/libcxsys.a ../../src/cxc/.libs/libcxc.a
../../src/esf/.libs/libesf.a ../../src/a/.libs/liba.a
../../src/dap/.libs/libdap.a
../../src/MSGUI/.libs/libMSGUI.a ../../src/MSIPC/.libs/libMSIPC.a
../../src/MSTypes/.libs/libMSTypes.a -lpthread -ldl
../../src/AplusGUI/.libs/libAplusGUI.a(AGIF.o):AGIF.C:(.text+0x13ba):
undefined reference to `_XWarpPointer'

--
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/


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Linking Errors related to X11
@ 2012-03-21 22:19 Tom Szczesny
  2012-03-21 23:05 ` Larry Hall (Cygwin-X)
  2012-03-22 17:55 ` Tom Szczesny
  0 siblings, 2 replies; 17+ messages in thread
From: Tom Szczesny @ 2012-03-21 22:19 UTC (permalink / raw)
  To: cygwin-xfree

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?

--
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/


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-03-23  1:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22 20:31 Linking Errors related to X11 Tom Szczesny
  -- strict thread matches above, loose matches on Subject: below --
2012-03-23  1:51 Tom Szczesny
2012-03-22 20:55 Tom Szczesny
2012-03-22 21:08 ` Larry Hall (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-21 22:19 Tom Szczesny
2012-03-21 23:05 ` Larry Hall (Cygwin-X)
2012-03-22 14:34   ` Christopher Faylor
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)

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).