*BSD News Article 33782


Return to BSD News archive

Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!demon!ferroday!ferroday.demon.co.uk!rjs
From: rjs@ferroday.demon.co.uk (Robert Swindells)
Subject: Re: Anybody made akcl-1-625?
Sender: rjs@ferroday.demon.co.uk (Robert Swindells)
Organization: Ferroday Limited
Message-ID: <RJS.94Aug1231218@ferroday.demon.co.uk>
References: <AH6QBAUW@math.fu-berlin.de> <CttvvB.C3x@cogsci.ed.ac.uk>
	<GD7QBDG@math.fu-berlin.de>
In-Reply-To: gusw@zedat.fu-berlin.de's message of Mon, 1 Aug 1994 09:51:08 GMT
Date: Mon, 1 Aug 1994 23:12:03 GMT
Lines: 87

>>>>> "Gunther" == Gunther Shadow <gusw@zedat.fu-berlin.de> writes:

    Gunther> Thank's for the hint, but I think 1-615 is a bit
    Gunther> outdated. As far as I know, 1-619 was the last release
    Gunther> which depended on the change mechanism to the original
    Gunther> kcl files. Since then (and in any case since 1-625) akcl
    Gunther> is a self containing package, which makes things a lot
    Gunther> more easy.  The real problem is, that I don't want to
    Gunther> link with -static, but I want to get a dynamic -- and
    Gunther> thus a more efficient -- akcl. I know that this is
    Gunther> possible, because emacs-19.25 can dump itself dynamically
    Gunther> (with the mentioned `unexsunos4.c'). But I seem to know
    Gunther> too little about the pitfalls of dumping a dynamic
    Gunther> executable as I always got stuck in this matter
    Gunther> :-(. That's why I was asking. Maybe, you can still help
    Gunther> me?

You really don't want to link with -dynamic. I did this with GCL 1.0,
everything seemed to work fine until I tried to load a .o file then
the internal linker function was unable to find a symbol since it was
in the shared libc.

It should be possible to make the AKCL/GCL fasl function understand about
FreeBSD shared libraries, but I haven't tried yet.

I copied the file "unexfreebsd.c" from the emacs 19 distribution and
made the following changes.


*** /usr/src/local/emacs/src/unexfreebsd.c	Sun Mar  6 00:08:46 1994
--- unexfreebsd.c	Fri Jun 10 23:40:26 1994
***************
*** 26,41 ****
  
  /********************** Included .h Files **************************/
  
  #include "config.h"
  
- #include <stdarg.h>
  #include <sys/param.h>
  #include <sys/mman.h>
  #include <sys/file.h>
  #include <sys/stat.h>
  #include <sys/types.h>
- #include <string.h>
  #include <stdio.h>
  #include <a.out.h>
  #include <unistd.h>
  #include <ctype.h>
--- 26,46 ----
  
  /********************** Included .h Files **************************/
  
+ #ifndef emacs
+ #define PERROR(arg) perror (arg); return -1
+ #else
  #include "config.h"
+ #define PERROR(file) report_error (file, new)
+ #endif
  
  #include <sys/param.h>
  #include <sys/mman.h>
  #include <sys/file.h>
  #include <sys/stat.h>
  #include <sys/types.h>
  #include <stdio.h>
+ #include <stdarg.h>
+ #include <string.h>
  #include <a.out.h>
  #include <unistd.h>
  #include <ctype.h>
***************
*** 702,704 ****
--- 707,713 ----
               
    return 0;
  }
+ 
+ #ifdef UNIXSAVE
+ #include "save.c"
+ #endif
--
Robert Swindells - Ferroday Limited
rjs@ferroday.demon.co.uk
-- 
Robert Swindells - Ferroday Limited
rjs@ferroday.demon.co.uk