gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: [ 101720 ] gcl 2.4.4 compile problems solaris 8


From: Camm Maguire
Subject: [Gcl-devel] Re: [ 101720 ] gcl 2.4.4 compile problems solaris 8
Date: 15 Jan 2003 11:32:05 -0500

Greetings!

"Greg T. Harber" <address@hidden> writes:

> Camm,
> 
> I downloaded  gcl_2.5.0.cvs20020625-70.tar.gz
> followed these instructions:
> 
> > ./configure --disable-statsysbfd --enable-locbfd
> > cd gmp3
> > ./configure --build=sparc-sun-solaris2.8
> > cd ..
> > make
> 
> Results:
> [snip]
>  >gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -O6 
> -fomit-frame-pointer 
> -I/usr/local/src/lang/gcl-2.5.0.cvs20020625/o -I../o -I../h 
> -I/usr/local/lib/../include -I/usr/local/lib/../include 
> -I/usr/openwin/include   guis.c
> gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -O6 
> -fomit-frame-pointer 
> -I/usr/local/src/lang/gcl-2.5.0.cvs20020625/o -I../o -I../h 
> -I/usr/local/lib/../include -I/usr/local/lib/../include 
> -I/usr/openwin/include   tkAppInit.c
> gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -O6 
> -fomit-frame-pointer 
> -I/usr/local/src/lang/gcl-2.5.0.cvs20020625/o -I../o -I../h 
> -I/usr/local/lib/../include -I/usr/local/lib/../include 
> -I/usr/openwin/include   tkMain.c
> tkMain.c: In function `TkX_Wish':
> tkMain.c:207: warning: passing arg 4 of `Tk_ParseArgv' from incompatible 
> pointer type
> tkMain.c:259: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer 
> type
> tkMain.c:372: warning: assignment discards qualifiers from pointer target type
> tkMain.c: In function `tell_lisp_var_changed':
> tkMain.c:400: warning: initialization discards qualifiers from pointer target 
> type
> gcc guis.o tkAppInit.o tkMain.o -o gcltkaux  -L/usr/local/lib -ltk8.4 
> -L/usr2/SOURCES/S8/tk8.4.1/unix -ltk8.4 -L/usr/openwin/lib 
> -lX11 -I/usr/openwin/include -L/usr/local/lib -ltcl8.4  `echo -ldl -lsocket 
> -lnsl -lm | sed -e s:-lieee::g`  -lm 
> /usr/local/src/lang/gcl-2.5.0.cvs20020625/binutils/bfd/libbfd.a 
> /usr/local/src/lang/gcl-2.5.0.cvs20020625/binutils/libiberty/libiberty.a 
> -lsocket -lnsl -lreadline -lncurses ../o/gcllib.a
> (cd demos ; \
> echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | 
> ../../unixport/saved_gcl)
> GCL (GNU Common Lisp)  Version(2.5.0) Tue Jan 14 10:01:04 CST 2003
> Licensed under GNU Library General Public License
> Contains Enhancements by W. Schelter
> 
>  >
> Loading ../tkl.o
> 
> Error: Undefined symbol
> Fast links are on: do (si::use-fast-links nil) for debugging
> Error signalled by EVAL.
> Broken at LOAD.  Type :H for Help.
>  >>
> Error: The function TK::GET-AUTOLOADS is undefined.
> Fast links are on: do (si::use-fast-links nil) for debugging
> Error signalled by EVALHOOK.
> Backtrace: system:universal-error-handler > EVALHOOK
> 
> Broken at LOAD.
>  >>make[1]: Leaving directory 
> `/usr/local/src/lang/gcl-2.5.0.cvs20020625/gcl-tk'
> cd info && make
> make[1]: Entering directory `/usr/local/src/lang/gcl-2.5.0.cvs20020625/info'
> false gcl-tk.texi
> make[1]: [gcl-tk.info] Error 1 (ignored)
> false gcl-si.texi
> make[1]: [gcl-si.info] Error 1 (ignored)
> false gcl.texi
> make[1]: [gcl.info] Error 1 (ignored)
> TEXINPUTS=.:$TEXINPUTS tex --interaction nonstopmode gcl-tk.texi || true
> /bin/bash: tex: command not found
> TEXINPUTS=.:$TEXINPUTS tex --interaction nonstopmode gcl-si.texi || true
> /bin/bash: tex: command not found
> TEXINPUTS=.:$TEXINPUTS tex --interaction nonstopmode gcl.texi || true
> /bin/bash: tex: command not found
> texi2html -split_chapter gcl-si.texi
> /bin/bash: texi2html: command not found
> make[1]: *** [gcl-si_toc.html] Error 127
> make[1]: Leaving directory `/usr/local/src/lang/gcl-2.5.0.cvs20020625/info'
> make: *** [do-info] Error 2
> 
> --------------
> 
> Ok, I can live without the tcl/tk part.  I just need command line gcl.
> So I continued

You may not need tcl/tk, but I doubt that the undefined symbol is tcl
specific.  In other words, you may not be able to relocate and load
any binary module with this build.  Try:

cat >foo.lsp
(defun foo (x) (* x x))


gcl
>(compile-file "foo.lsp")
>(load "foo.o")

It is possible that your C library has some unique symbol naming
conventions.  For example, in glibc, certain symbols have
@@GLIBC... appended in the library, but are placed in the object
modules without this appendix.  GCL knows about this and handles these
symbols properly.  I have not run across this issue on solaris,
however.  

If you configure with --enable-debug and recompile, then run under gdb
with a breakpoint set at sfaslbfd.c:297, run and type (at the lisp
prompt) (load "gcl-tk/tkl.o"), then in gdb do 'p q[u]->name', we can
see what symbol is causing the problem.  Then get out of gdb, and do
'nm gcl-tk/tkl.o |grep <symbol>' and 'nm --dynamic <your c library>
|grep <symbol>'.

Hope this helps.

Take care,

> 
> $ make install
> 
> The new problem:
> 
> $ gcl
> /usr/local/bin/gcl: C_INCLUDE_PATH=/usr/local/lib/gcl-2.5.0/h: is not an 
> identifier
> 
> More help needed!
> 
> gth
> 
> 
> -- 
> Greg T. Harber                        address@hidden
> Director, McGee Computing Laboratory  936 468-2508
> Department of Computer Science        P.O. Box 13063
> Stephen F. Austin State University    Nacogdoches, TX 75962 USA
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]