Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
On 2012-03-22 14:46, Tom Szczesny wrote: 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' 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. Yaakov -- 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/
Re: Linking Errors related to X11
On 2012-03-22 15:22, Tom Szczesny wrote: Yaakov wrote: "Especially, as I just discovered, this package unconditionally requires libnsl functions and defines (in src/dap/*), which Cygwin does not provide." How can you tell that? I get a null response when I execute: Tom@Toshiba /usr/local/aplus-fsf-4.22/src $ grep libnsl dap -r Because the functions in libnsl don't start with libnsl. Specifically, there are yp_* functions and YP* constants. Yaakov -- 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/
Re: Linking Errors related to X11
On 3/22/2012 4:54 PM, Tom Szczesny wrote: 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? The one you've been trying to tell it to use - libX11.a. It's in /usr/lib. It comes from Cygwin's libX11-devel package. -- 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/
Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
Yaakov wrote: "Especially, as I just discovered, this package unconditionally requires libnsl functions and defines (in src/dap/*), which Cygwin does not provide." How can you tell that? I get a null response when I execute: Tom@Toshiba /usr/local/aplus-fsf-4.22/src $ grep libnsl dap -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/
Re: Linking Errors related to X11
On 2012-03-22 14:23, Christopher Faylor wrote: But, again, even if you get this to link, if you are still playing around with things like ioctl definitions this is not going to work. And, sorry to be blunt but if your level of understanding about this does not include comprehension of what /usr/include is then it is unlikely that you are going to be successful here. Especially, as I just discovered, this package unconditionally requires libnsl functions and defines (in src/dap/*), which Cygwin does not provide. Yaakov -- 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/
Re: Linking Errors related to X11
On 3/22/2012 3:46 PM, Tom Szczesny wrote: 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' 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. -- 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/
Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
On Thu, Mar 22, 2012 at 01:55:04PM -0400, Tom Szczesny wrote: >This question was answered in the cygwin list, but the proposed >solutions did not work. >Someone on the list suggested that I send the question to >cygwin-xfree, so I did. > >When I delete the -I and the -L and try: >X_INCLUDES = >X_LIBS = /usr/include -lX11 >I get: When I said to "just delete" I meant to delete them from your original example. It should be: X_INCLUDES = X_LIBS = -lX11 But, again, even if you get this to link, if you are still playing around with things like ioctl definitions this is not going to work. And, sorry to be blunt but if your level of understanding about this does not include comprehension of what /usr/include is then it is unlikely that you are going to be successful here. -- 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/
Re: Linking Errors related to X11
The beginning of that (unwrapped) g++ -O2 -o aplus.exe /usr/include mainC.o aplus_main.o aplus_uext.o matherr.o -L/usr/local/aplus-fsf-4.22/src/IPC should probably be g++ -O2 -o aplus.exe mainC.o aplus_main.o aplus_uext.o matherr.o -I/usr/include -L/usr/local/aplus-fsf-4.22/src/IPC /usr/include is a directory to look for includes, not one of the files to be compiled On 2012.03.22 13:55, Tom Szczesny wrote: This question was answered in the cygwin list, but the proposed solutions did not work. Someone on the list suggested that I send the question to cygwin-xfree, so I did. When I delete the -I and the -L and try: X_INCLUDES = X_LIBS = /usr/include -lX11 I get: g++ -O2 -o aplus.exe /usr/include 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 /usr/include: file not recognized: Is a directory When I also delete the /usr/include and try: 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' I have tried numerous other variations. The one that appears to work best is: X_INCLUDES = /usr/include X_LIBS = -L /usr/include/X11 \ but then I get errors with am__include The Makefile was generated by Automake 1.6.3. When I try to generate a new one, I get; $ automake automake: `configure.ac' or `configure.in' is required As there is no configure.acorconfigure.in I am coming to the conclusion that I may need to learn Autotools and construct a fresh build process. -- 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/ -- 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/
Re: Linking Errors related to X11
This question was answered in the cygwin list, but the proposed solutions did not work. Someone on the list suggested that I send the question to cygwin-xfree, so I did. When I delete the -I and the -L and try: X_INCLUDES = X_LIBS = /usr/include -lX11 I get: g++ -O2 -o aplus.exe /usr/include 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 /usr/include: file not recognized: Is a directory When I also delete the /usr/include and try: 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' I have tried numerous other variations. The one that appears to work best is: X_INCLUDES = /usr/include X_LIBS = -L /usr/include/X11 \ but then I get errors with am__include The Makefile was generated by Automake 1.6.3. When I try to generate a new one, I get; $ automake automake: `configure.ac' or `configure.in' is required As there is no configure.acorconfigure.in I am coming to the conclusion that I may need to learn Autotools and construct a fresh build process. -- 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/
Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
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/
Re: Linking Errors related to X11
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/
Linking Errors related to X11
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/