I'm trying to build v1.15 on FreeBSD and I'm failing miserably.
I have no idea what I'm doing in FreeBSD.
user@bsd14VM:~/ncid $ make freebsd
make: "/home/user/ncid/Makefile" line 117: Invalid line type
make: "/home/user/ncid/Makefile" line 127: Invalid line type
make: "/home/user/ncid/Makefile" line 139: Invalid line type
make: "/home/user/ncid/Makefile" line 151: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /home/user/ncid
Seems to me like it doesn't like the conditionals, that are trying to figure out if I'm on a Mac (which I'm not) or not. Maybe?
ifeq($(UNAME_S),Darwin)# Macintosh compiler# if CC and CXX changed, also change Makefiles in gateway, server, toolsCC=gccCXX=g++-std=c++17MFLAGS=-Wall-Wmissing-declarations-Wuninitialized\
-Wsign-compareMAKE=gmakeelseifeq($(UNAME_S),FreeBSD)MAKE=gmakeCC=ccCXX=c++# full RELRO optionsRFLAGS=-Wl,-z,relro,-z,now# global additions to CFLAGSMFLAGS=-Wmissing-declarations-Wunused-variable-Wparentheses\
-Wreturn-type-Wuninitialized-Wsign-compare\
-Wformat-Wformat-zero-lengthelseCC=gccCXX=g++# full RELRO optionsRFLAGS=-Wl,-z,relro,-z,now# global additions to CFLAGSMFLAGS=-Wmissing-declarations-Wunused-variable-Wparentheses\
-Wreturn-type-Wuninitialized-Wsign-compare\
-Wformat-Wformat-zero-length-Wno-stringop-truncation\
# -Wformat-overflowendif
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to build v1.15 on FreeBSD and I'm failing miserably.
I have no idea what I'm doing in FreeBSD.
user@bsd14VM:~/ncid $ make freebsd
make: "/home/user/ncid/Makefile" line 117: Invalid line type
make: "/home/user/ncid/Makefile" line 127: Invalid line type
make: "/home/user/ncid/Makefile" line 139: Invalid line type
make: "/home/user/ncid/Makefile" line 151: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /home/user/ncid
Seems to me like it doesn't like the conditionals, that are trying to figure out if I'm on a Mac (which I'm not) or not. Maybe?
You should be using gmake instead of make.
Instructions for freebsd are in the User Manual at https://ncid.sourceforge.io/doc/NCID-UserManual.html