Installing on Cygwin

Started by dmos, December 17, 2018, 11:30:27 AM

Previous topic - Next topic

dmos

I'm having trouble installing under Cygwin.



I tried the regular win32 release, but unfortunately ipc doesn't work properly when run from Cygwin.



Cygwin doesn't seem to have a package for newlisp, so I'm building from source. The configure script correctly identifies the environemnt as cygwin. However, running `make` throws an "icmp6.h not found" error. Looking at the `makefile_cygwin` file, I'm a bit confused by the comments:



# makefile for newLISP v.10.x.x on Cygwin with readline support
#
# support for CYGWIN was dropped with version 8.6 in 2005
# nl-sock.c needs a GNU version of icmp6.h
#
# to use extended FFI add -lff to the $(CC) line and -DFFI to CFLAGS
#
# to use the semaphore function install cygserver:                              
# http://cygwin.com/cygwin-ug-net/using-cygserver.html
#
# Note, that readline support may require different libraries on different OSs  
#
# To install, install the normal Win32 version of newLISP first,                
# then copy the newlisp.exe into $(NEWLISPDIR), which is normally
# defined as "C:Program Filesnewlisp" after the Win32 install.
# at least one CYGWIN library must be installed too


The first line says that this is a makefile for cygwin for newlisp 10, while the third line says support for cygwin is dropped since 8.6. Also, GNU version of icmp6.h is mentioned. If newlisp is actually supposed to work on Cygwin, I guess that's what I need. Haven't figured out where to get it yet though.



Guidance?



For the sake of completeness, this is the compile error:



gcc -m32 -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLIN
E -DCYGWIN nl-sock.c
nl-sock.c:53:10: fatal error: netinet/icmp6.h: No such file or directory
 #include <netinet/icmp6.h>
          ^~~~~~~~~~~~~~~~~

kosh

#1
Try install icmp6.h included in glibc source manually.



(Cygwin does not provide glibc. see https://cygwin.com/faq.html#faq.programming.glibc">https://cygwin.com/faq.html#faq.programming.glibc)



Example:
$ curl -OLsk https://github.com/bminor/glibc/raw/master/inet/netinet/icmp6.h
$ install -D icmp6.h /usr/include/netinet/icmp6.h