scsh-users
[Top] [All Lists]

problems with static linker

To: scsh-bugs@zurich.ai.mit.edu
Subject: problems with static linker
From: Bruno.Verlyck@inria.fr
Date: Wed, 10 May 2000 14:51:01 +0200 (MET DST)
I recently decided to install scsh 0.5.2 on Solaris (5.6) and Linux
(RH 6.1, kernel 2.2.12-20).  Everything compiled fine (with gcc).

But, as I had static-linked scsh.image with scsh 0.5.1, and changed
the #! .. !# lines of my scripts accordingly, I had to do the same
with 0.5.2.

On Solaris, I get problems while compiling the scripts; for example:
   Error: unknown #\ name
       space
       #{Input-port}
If I replace #\space with #\ , compilation fails a little later:
   Error: exception
       (car 'else)
This particular piece of code works under the standard scsh.image.

On Linux, static linking fails with some undefined symbols:
   (gcc -rdynamic -o
   /afs/inria.fr/common/usr/local/src/scsh-0.5.2/scsh/scsh.vm
   static-p0.o static-i0.o [...] static-p336.o static-i336.o static.o
   -L /usr/local/lib/scsh -lscshvm -ldl -lelf -lnsl -lm -lc)
   static-i51.o(.data+0x5c8): undefined reference to `df_compile_re'
   static-i51.o(.data+0x764): undefined reference to `df_free_re'
   static-i51.o(.data+0xb18): undefined reference to `df_scheme_tcgetattrB'
   static-i51.o(.data+0xb28): undefined reference to `df_re_search'
   static-i51.o(.data+0xb5c): undefined reference to `df_re_errint2str'
   collect2: ld returned 1 exit status

In both cases, I used this command to do the link:
   time ./scsh/static.scm --cc gcc --temp /tmp -o scsh/scsh.vm -i 
scsh/scsh.image 
(.. that worked for scsh 0.5.1).  I didn't find anything resembling
the scsh-hlink command referred to near the pages 173-175 of the new
manual, so I used the same recipe than with 0.5.1.  I can give you
more specific details if you need them.

Have you heard of anything like this ?  Can you give me some advice ?

Thanks in advance,

Bruno.

<Prev in Thread] Current Thread [Next in Thread>