Hi,
Here is the patchfile. Pls check.
util.ht is broken, but I think this is not a FreeBSD issue. I used one
from an older build and hyperdoc works again.
You need bash, gsed and gawk installed!
Install gcl from the ports with "--enable-ansi" removed from the
Makefile.
Go into bash, start ./configure, and follow the messages (exports +
gmake GCL...).
Aldor works fine in the emulator, but I think you need the
linux-develtools port.
Gernot
On Thu, 2006-08-03 at 11:37 -0400, root wrote:
> There are C files that are part of the lisp build.
> Once the lisp builds all will go smoothly.
> The Lisp is portable; C is not.
>
> t
>
--- ./src/algebra/Makefile.pamphlet.orig Wed Aug 2 16:51:37 2006
+++ ./src/algebra/Makefile.pamphlet Wed Aug 2 16:52:04 2006
@@ -1770,7 +1770,7 @@
<<findSpadFiles>>=
egrep '@<<(domain|package|category) .*>>=' *.spad.pamphlet | sort | uniq | \
-awk -F: '{
+${AWK} -F: '{
chunk=substr($2,3,length($2)-5);
split(chunk,part," ");
spadfile="\${MID}/"part[2]".spad";
@@ -1833,7 +1833,7 @@
<<findBootstrapFiles>>=
egrep '@<<.*BOOTSTRAP>>=' *.spad.pamphlet | sort | uniq | \
-awk -F: '{
+${AWK} -F: '{
chunk=substr($2,3,length($2)-5);
split(chunk,part," ");
lspfile="\${MID}/"part[1];
--- ./src/boot/Makefile.pamphlet.orig Tue Aug 1 09:27:25 2006
+++ ./src/boot/Makefile.pamphlet Tue Aug 1 09:44:52 2006
@@ -1173,7 +1173,7 @@
Until this is fixed we need to continue to use the old scheme.
<<environment>>=
-CMD0= (progn (mapcar (function (lambda (x) (load x))) (quote (${OBJS1}))) (system::save-system "${SAVESYS}"))
+CMD0= (mapcar (function (lambda (x) (load x))) (quote (${OBJS1}))) (system::save-system "${SAVESYS}")
@
\subsection{boothdr.lisp \cite{1}}
@@ -1732,7 +1732,7 @@
@ echo INT= ${INT}
@ echo OBJ= ${OBJ}
@ echo MNT= ${MNT}
- @ (cd ${OBJ}/${SYS}/bin ; echo '${CMD0}' | ${LOADSYS} >${TMP}/console )
+ @ (cd ${OBJ}/${SYS}/bin ; echo '${CMD0}' | ${LOADSYS} >${TMP}/console_bootsys )
@ echo 45 ${SAVESYS} created
boot: ${BOOTS}
--- ./src/graph/view2D/globals2.h.orig Thu Aug 3 09:28:39 2006
+++ ./src/graph/view2D/globals2.h Thu Aug 3 10:03:58 2006
@@ -30,6 +30,7 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "../../src/include/hash.h"
extern int scrn;
extern Display *dsply;
--- ./src/graph/view3D/globals.h.orig Thu Aug 3 10:05:41 2006
+++ ./src/graph/view3D/globals.h Thu Aug 3 10:06:02 2006
@@ -31,6 +31,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "../../src/include/hash.h"
+
extern int scrn;
extern Display *dsply;
extern XFontStruct *globalFont, *buttonFont, *headerFont,
--- ./src/hyper/hthits.pamphlet.orig Thu Aug 3 10:07:41 2006
+++ ./src/hyper/hthits.pamphlet Thu Aug 3 10:08:44 2006
@@ -93,7 +93,9 @@
{
cmdline(argc, argv);
+/*
compile(pattern, expbuf, expbuf + MAX_COMP_REGEX, '\0');
+*/
handleHtdb();
return(0);
@@ -337,11 +339,13 @@
char *bodyrest;
int nhits = 0;
+/*
if (step(pgtitle, expbuf))
nhits++;
for (bodyrest = pgbody; step(bodyrest, expbuf); bodyrest = loc2)
nhits++;
+*/
if (nhits) {
printf("\\newsearchresultentry{%d}{%s}",nhits, pgtitle);
squirt(pgname, strlen(pgname));
--- ./src/include/hash.H1.orig Tue Aug 1 08:40:42 2006
+++ ./src/include/hash.H1 Tue Aug 1 08:39:35 2006
@@ -1,3 +1,4 @@
+#include "hash.h"
#ifdef _NO_PROTO
extern char * alloc_string();
extern HashEntry * hash_copy_entry();
--- ./src/aldor/types.mk.pamphlet.orig Thu Aug 3 16:56:07 2006
+++ ./src/aldor/types.mk.pamphlet Thu Aug 3 16:56:20 2006
@@ -200,7 +200,7 @@
$(MID)/sax0/spadset.lst: $(MID)/sax0/spadset.mk $(IN)/list_spadset.mk
- make -f $(IN)/list_spadset.mk MID=$(MID) spadset=sax0 dest=$@
+ gmake -f $(IN)/list_spadset.mk MID=$(MID) spadset=sax0 dest=$@
#
# Everything else
--- ./src/aldor/Makefile.pamphlet.orig Thu Aug 3 16:56:57 2006
+++ ./src/aldor/Makefile.pamphlet Thu Aug 3 16:57:22 2006
@@ -74,7 +74,7 @@
else \
echo "Building libaxiom.al and associated files"; \
echo $(MID);\
- make REALLY_BUILD=1 -f $(IN)/Makefile aldor_libraries; \
+ gmake REALLY_BUILD=1 -f $(IN)/Makefile aldor_libraries; \
fi
.PHONY: all
@@ -85,10 +85,10 @@
<<boringrules>>=
clean: $(IN)/Makefile
- make -f $(IN)/Makefile REALLY_BUILD=1 _clean
+ gmake -f $(IN)/Makefile REALLY_BUILD=1 _clean
list_sources: $(IN)/Makefile
- make -f $(IN)/Makefile REALLY_BUILD=1 _list_sources
+ gmake -f $(IN)/Makefile REALLY_BUILD=1 _list_sources
.PHONY: clean list_sources
@
--- ./src/aldor/Make.aldor.pamphlet.orig Thu Aug 3 16:57:29 2006
+++ ./src/aldor/Make.aldor.pamphlet Thu Aug 3 16:57:36 2006
@@ -36,7 +36,7 @@
rm -f [EMAIL PROTECTED]; \
aldor $(ap_compile_options) \
[EMAIL PROTECTED] $(filter %/$(shell basename $@ .ap).as, $^))
- @sed -e 's/\([->A-Za-z0-9\\]\+\)/|\1|/g' < [EMAIL PROTECTED] > $@
+ @gsed -e 's/\([->A-Za-z0-9\\]\+\)/|\1|/g' < [EMAIL PROTECTED] > $@
#
# .ap/.as -> .ao
--- ./src/aldor/gen-axiom-types.sh.pamphlet.orig Thu Aug 3 17:10:33 2006
+++ ./src/aldor/gen-axiom-types.sh.pamphlet Thu Aug 3 17:11:00 2006
@@ -15,12 +15,12 @@
case $1 in
all)
- ls $2/../algebra/*.spad | xargs grep '^)abbrev' | awk '{print $3}';;
+ find $2/../algebra/ -name \*.spad | xargs grep '^)abbrev' | awk '{print $3}';;
categories)
- ls $2/../algebra/*.spad | xargs grep -E '^\)abbrev[\t ]+category' | awk '{print $3}';;
+ find $2/../algebra/ -name \*.spad | xargs grep -E '^\)abbrev[\t ]+category' | awk '{print $3}';;
typemap)
- ls $2/../algebra/*.spad | xargs grep -E '^\)abbrev' | awk '{printf("%s:%s:\n",$3,$4)}';;
+ find $2/../algebra/ -name \*.spad | xargs grep -E '^\)abbrev' | awk '{printf("%s:%s:\n",$3,$4)}';;
*)
echo "What??"
exit 2
--- src/interp/debugsys.lisp.pamphlet.orig Thu Aug 3 17:57:20 2006
+++ src/interp/debugsys.lisp.pamphlet Thu Aug 3 18:07:36 2006
@@ -169,7 +169,7 @@
(thesymb "/int/interp/simpbool.clisp")
(thesymb "/int/interp/slam.clisp")
(thesymb (concatenate 'string "/obj/" *sys* "/interp/sockio.o"))
- (thesymb "/obj/linux/interp/sockio.o")
+;; (thesymb "/obj/linux/interp/sockio.o")
(thesymb "/int/interp/spad.lisp")
(thesymb "/int/interp/spaderror.lisp")
(thesymb "/int/interp/template.clisp")
--- configure.orig Thu Aug 3 17:42:25 2006
+++ configure Thu Aug 3 18:09:07 2006
@@ -4,7 +4,7 @@
# MINGW32_NT-5.1 --> windows
# SunOS --> Solaris9
# Fedora Core 3 --> fedora3
-# freebsd --> freebsd
+# freebsd --> FreeBSD
#
# The solaris platform needs patch->gpatch, awk->gawk, tar->gtar
@@ -24,7 +24,7 @@
if [ "$SYSNAME" = "Linux" ] ; then SYSNAME=linux
elif [ "$SYSNAME" = "MINGW32_NT-5.1" ] ; then SYSNAME=windows
elif [ "$SYSNAME" = "SunOS" ] ; then SYSNAME=solaris9
- elif [ "$SYSNAME" = "freebsd" ] ; then SYSNAME=freebsd
+ elif [ "$SYSNAME" = "FreeBSD" ] ; then SYSNAME=freebsd
else
echo Your system name is $SYSNAME
echo We do not know how to build for this kind of system
@@ -115,7 +115,7 @@
echo If you wish to use the standard version you must type
echo touch noweb
echo If you wish to use a pre-installed GCL you must type
- echo make GCLVERSION=gcl-system
+ echo gmake GCLVERSION=gcl-system
fi
if [ "$SYSNAME" = "solaris9" ] ;
then echo make AWK=gawk TAR=gtar PATCH=gpatch
_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer