Build failed on Ubuntu 14.04
Posted: Sat Apr 19, 2014 1:16 pm
When build 10.6.0 source code on Ubuntu 14.04 64bit, I get following error:
My GCC version:
Code: Select all
root@dean-Aspire-V7-481G:/usr/src/newlisp-10.6.0# make
make -f makefile_build
make[1]: Entering directory `/usr/src/newlisp-10.6.0'
gcc -fPIC -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI -I/usr/local/lib/libffi-3.0.13/include newlisp.c
newlisp.c: In function ‘main’:
newlisp.c:907:37: error: ‘CPPFunction’ undeclared (first use in this function)
rl_attempted_completion_function = (CPPFunction *)newlisp_completion;
^
newlisp.c:907:37: note: each undeclared identifier is reported only once for each function it appears in
newlisp.c:907:50: error: expected expression before ‘)’ token
rl_attempted_completion_function = (CPPFunction *)newlisp_completion;
^
newlisp.c: At top level:
newlisp.c:990:47: error: unknown type name ‘CPFunction’
char ** completion_matches(const char * text, CPFunction commands);
^
newlisp.c: In function ‘newlisp_completion’:
newlisp.c:995:1: warning: implicit declaration of function ‘completion_matches’ [-Wimplicit-function-declaration]
return(completion_matches(text, (CPFunction *)command_generator));
^
newlisp.c:995:34: error: ‘CPFunction’ undeclared (first use in this function)
return(completion_matches(text, (CPFunction *)command_generator));
^
newlisp.c:995:46: error: expected expression before ‘)’ token
return(completion_matches(text, (CPFunction *)command_generator));
^
newlisp.c:996:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [newlisp.o] Error 1
Code: Select all
# gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.