Quote:
> Xref: bhamcs comp.lang.pop:3049
> Date: Fri, 12 Jul 2002 11:16:39 +0000 (UTC)
> Organization: cs.bham.ac.uk MAIL->NEWS gateway
> Hi,
> I'm trying to load a shared object file in poplog using the following
> syntax..
> external load example;
> 'file.so'
> endexternal;
> When I compile the file in XEMACS I get the following message
> : ;;; Compiling buffer file.p
> ;;; Warning: can't open shared object ./file.so (Inappropriate ioctl for
> ;;; device)
> When I compile the same file in XVed I get a slightly different error..
> ;;; Warning: can't open shared object ./file.so (Success)
> ....
> file.p and file.so are in the same directory and the permissions are
> fine for file.so.
Are you working in that directory? I.e. does pwd give the same
directory?
If not, that would explain it. Maybe some compilers take all file
names as being relative to the directory of the file currently being
compiled. Pop-11 does not.
The utility compilehere, available in these files
http://www.cs.bham.ac.uk/research/poplog/auto/compilehere.p
Program file
http://www.cs.bham.ac.uk/research/poplog/help/compilehere
Help file
gets over this for programs that use "compile".
Maybe a version of that for external load is also needed.
Try, in the meantime, ensuring that you either use an absolute
path name in the external load command, or work in the directory
containing the files.
Otherwise you may be able to use popfilename (which is the path name
of the file being compiled) to extract the directory, and then
construct the full path of the file to be externally loaded.
Quote:
> The both fail to find values for all symbols and then give...
> ;;; MISHAP - ERRORS ACCESSING EXTERNAL SYMBOLS (see above)
> ;;; FILE : /home/mhl/SIM_AGENT/external/file.p LINE NUMBER: 432
> ;;; DOING : external_do_load exload_do_batch_load external runproc
that's a consequence of not finding the file.
Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html