On Fri, Jan 15, 2010 at 3:16 AM, szergling <senatorzergling@gmail.com> wrote:
1> (COMPILE-FILE "/arpa/tz/t/tyc20/lisp/ecl-hello/hello.lisp" :C-FILE
T :H-FILE T :DATA-FILE T)
;;; Compiling /arpa/tz/t/tyc20/lisp/ecl-hello/hello.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=3
;;; End of Pass 1.
;;; Note: Invoking external command:
;;;   cc -I/usr/pkg/include -O2 -mieee -I/usr/pkg/include -mieee -fPIC
 -Dnetbsd -O "-I/arpa/tz/t/tyc20/lisp/imp/ecl/include/" -w -c
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.c" -o
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o"
;;; Note: Invoking external command:
;;;   cc -o "/arpa/tz/t/tyc20/lisp/ecl-hello/hello.fas"
-L"/arpa/tz/t/tyc20/lisp/imp/ecl/lib/ecl-8.12.0/"
"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o"  -shared -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lecl   -lm
-lgc -lgmp
;;; (SYSTEM "cc -o \"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.fas\"
-L\"/arpa/tz/t/tyc20/lisp/imp/ecl/lib/ecl-8.12.0/\"
\"/arpa/tz/t/tyc20/lisp/ecl-hello/hello.o\"  -shared -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lecl   -lm
-lgc -lgmp") returned non-zero value 1
<1 (COMPILE-FILE NIL T T)
NIL
T
T
CL-USER>

What seems to be going wrong, is that some compiler flags/options
don't seem to reflect what I needed, even though I think I have them
set to the right values.

You have set them indeed to the right values (I presume _after_ loading the compiler with (require 'cmp), otherwise it does not work). The remaining flags that you see have been added by the package builder, the person who bundled ECL for NetBSD. There may be many reasons why the link phase is failing: libraries that ECL depends on have not been installed, some of the flags that were added when building ECL hard-code link paths that take precedence and do not work, ... In general it is quite complicated and I see you have done all you could and it does not work, but there is little else I can advice you.

Note that I have not provided or prepared infrastructure for relocating binaries of ECL in unices. It is just too complicated and it contradicts most users' expectations: peek the archive here and you will see a lot of emails that asked for hardcoding the location of shared libraries, etc.

If possible I would recommend you to rebuild ECL in your home directory. The process is pretty painless, and IIRC, the arpa machine does provide enough space for doing that in a user account.

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com