Re: Linking Errors related to X11

2012-03-22 Thread Christopher Faylor
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

Re: Linking Errors related to X11

2012-03-22 Thread Larry Hall (Cygwin-X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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

Re: Linking Errors related to X11

2012-03-22 Thread Jack
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

Re: Linking Errors related to X11

2012-03-22 Thread Christopher Faylor
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 =

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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

Re: Linking Errors related to X11

2012-03-22 Thread Larry Hall (Cygwin-X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Yaakov (Cygwin/X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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 --

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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:

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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

Re: Linking Errors related to X11

2012-03-22 Thread Larry Hall (Cygwin-X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Yaakov (Cygwin/X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Yaakov (Cygwin/X)
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

Re: Linking Errors related to X11

2012-03-22 Thread Tom Szczesny
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

Linking Errors related to X11

2012-03-21 Thread Tom Szczesny
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

Re: Linking Errors related to X11

2012-03-21 Thread Larry Hall (Cygwin-X)
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