[Ecls-list] Solaris/sparc64 patches to ecl-0.9i
Julian Fondren
ayrnieu at gmail.com
Fri Sep 1 23:56:11 UTC 2006
The first adds -lresolv to the solaris-case TCPLIBS in aclocal.m4 ; without
this you get hstrerror symbol failures on load of sockets.fas -- I forget the
exact error, and don't want to reinstall unpatched to get it exact.
The second patch defines AF_LOCAL as AF_UNIX , and prevents reference to
SO_REUSEPORT ; it does this with :sun4sol2 , which is a bit weird. If
aclocal.m4 can match to 'solaris', it might be nice of it to add this to
*FEATURES* -- which instead have
:SUN4SOL2 :|ultrAspArc2|
The last patch comments two lines out of build/Makefile that cause
'gmake install' to fail. This Works For Me, but it might make more
sense to add a - or whatever prepending gmake magic that forgives
failure.
The first patch must be followed with 'autoconf' in the src/
directory. The last patch cannot be applied until after configuration.
I hope these help!
Thanks for ECL!
*** ecl-0.9i/src/aclocal.m4 Fri Jun 30 07:35:20 2006
--- ecl-0.9i-new/src/aclocal.m4 Fri Sep 1 13:29:48 2006
***************
*** 224,228 ****
BUNDLE_LDFLAGS="-dy -G ${LDFLAGS}"
LDRPATH='-Wl,-R,~A'
! TCPLIBS='-lsocket -lnsl -lintl'
clibs='-ldl'
;;
--- 224,228 ----
BUNDLE_LDFLAGS="-dy -G ${LDFLAGS}"
LDRPATH='-Wl,-R,~A'
! TCPLIBS='-lsocket -lnsl -lintl -lresolv'
clibs='-ldl'
;;
*** ecl-0.9i/contrib/sockets/sockets.lisp Fri Jun 30 07:35:17 2006
--- ecl-0.9i-new/contrib/sockets/sockets.lisp Fri Sep 1 15:44:34 2006
***************
*** 107,110 ****
--- 107,114 ----
"#define AF_LOCAL -1"
)
+ #+:SUN4SOL2
+ (Clines
+ "#define AF_LOCAL AF_UNIX"
+ )
(define-c-constants
***************
*** 1376,1380 ****
(define-sockopt socket-linger "SO_LINGER" bool)
! #-(or :linux :wsock :cygwin)
(define-sockopt sockopt-reuse-port "SO_REUSEPORT" bool)
--- 1380,1384 ----
(define-sockopt socket-linger "SO_LINGER" bool)
! #-(or :linux :wsock :cygwin :SUN4SOL2)
(define-sockopt sockopt-reuse-port "SO_REUSEPORT" bool)
*** ecl-0.9i/src/Makefile.in Fri Jun 30 07:35:20 2006
--- ecl-0.9i-new/src/Makefile.in Fri Sep 1 17:27:32 2006
***************
*** 137,142 ****
$(INSTALL_DATA) ./ecl/gc/private/*.h $(DESTDIR)$(includedir)/ecl/gc/
private; \
fi
! rm $(DESTDIR)$(includedir)/ecl/config.h
! mv $(DESTDIR)$(includedir)/ecl/config-install.h $(DESTDIR)$(includedir)/
ecl/config.h
$(INSTALL_SCRIPT) bin/ecl-config $(DESTDIR)$(bindir)
for i in BUILD-STAMP help.doc ; do \
--- 137,142 ----
$(INSTALL_DATA) ./ecl/gc/private/*.h $(DESTDIR)$(includedir)/ecl/gc/
private; \
fi
! #rm $(DESTDIR)$(includedir)/ecl/config.h
! #mv $(DESTDIR)$(includedir)/ecl/config-install.h
$(DESTDIR)$(includedir)/ecl/config.h
$(INSTALL_SCRIPT) bin/ecl-config $(DESTDIR)$(bindir)
for i in BUILD-STAMP help.doc ; do \
More information about the ecl-devel
mailing list