scsh-users
[Top] [All Lists]

Re: Build fails --- unable to find externals

To: "Michial A. Gunter" <gunter@netcom.com>
Subject: Re: Build fails --- unable to find externals
From: bdc@ai.mit.edu (Brian D. Carlstrom)
Date: Wed, 2 Nov 94 14:42:06 EST
Cc: scsh-bugs@martigny.ai.mit.edu
>>> Michial A Gunter writes:

     > When trying to build on a Sparc IPC runing Sunos 4.1.1 I get
     > errors about externals not being found.

     > How can I debug this problem?

hmm, its working on our 4.1.3 boxes. scheme48 is using nlist to try and
find the symbols. start up the vm by hand with

        ./scshvm -o ./scshvm -i ./scsh/scsh.image 

the -o is important because it tells it the vm where it is located. 
then you should be able to check against this. this is what we get:

        2:40pm muesli:~> scsh
        Scsh 0.1
        > ,open externals
        > (lookup-all-externals)
        #t
        > (get-external "df_open")
        '#{Random object}
        > (get-external "_df_open")
        Warning: External not found
                 "_df_open"
        #f
        > 

there is a hack so that you shouldnt need the leading underscore that is
done in ./confgure and sets USCORE apporpriately. maybe this is failing.
our 4.1.3 system has this at the end of sysdep.h (set by configure).

/* Define USCORE if your c externals are prepended with an underscore */
#define USCORE 1

-bri

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