Installing on Cygwin

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?

Installing on Cygwin

Postby dmos » Mon Dec 17, 2018 7:30 pm

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:

Code: Select all
# 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:                             
# 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 Files\newlisp" 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.


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

Code: Select all
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>
Posts: 1
Joined: Mon Dec 17, 2018 7:17 pm

Re: Installing on Cygwin

Postby kosh » Tue Dec 18, 2018 3:24 pm

Try install icmp6.h included in glibc source manually.

(Cygwin does not provide glibc. see

Code: Select all
$ curl -OLsk
$ install -D icmp6.h /usr/include/netinet/icmp6.h
Posts: 68
Joined: Sun Sep 13, 2009 5:38 am
Location: Japan

Return to newLISP and the O.S.

Who is online

Users browsing this forum: No registered users and 1 guest