From - Sun Oct 05 20:44:57 1997 Return-Path: Received: from punt-2.mail.demon.net by mailstore for rleyton@dogbert.demon.co.uk id 876047869:06:00775:4; Sun, 05 Oct 97 11:37:49 BST Received: from mail.acm.org ([199.222.69.4]) by punt-2.mail.demon.net id aa1219682; 5 Oct 97 11:37 BST Received: from brookes.ac.uk (csmail.brookes.ac.uk [161.73.1.1]) by mail.acm.org (8.8.5/8.7.5) with ESMTP id GAA68164 for ; Sun, 5 Oct 1997 06:41:59 -0400 From: majordomo@brookes.ac.uk Received: by brookes.ac.uk (8.8.7/SMI-SVR4) id LAA22045; Sun, 5 Oct 1997 11:37:35 +0100 (BST) Date: Sun, 5 Oct 1997 11:37:35 +0100 (BST) Message-Id: <199710051037.LAA22045@brookes.ac.uk> To: rleyton@acm.org Subject: Majordomo file: list 'leap' file 'leap.9612' Reply-To: majordomo@brookes.ac.uk X-Mozilla-Status: 2001 -- >From leap-owner Tue Dec 3 16:47:26 1996 Received: by brookes.ac.uk (8.7.3/SMI-SVR4) id QAA29582; Tue, 3 Dec 1996 16:46:30 GMT Message-Id: <32A45868.3A8E@acm.org> Date: Tue, 03 Dec 1996 17:42:16 +0100 From: Richard Leyton Organization: AMS Management Systems X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: leap@brookes.ac.uk Cc: bandeira@inf.ufrgs.br Subject: leap list: SOLUTION to Compilation problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-leap@brookes.ac.uk Precedence: bulk Reply-To: leap@brookes.ac.uk Dear all, It's come to my attention that there is a problem running LEAP on SunOS, and I was aware through my own experiences with a problem on Ultrix. They were apparantly seperate problems, but it transpires they were not... Both have now been solved, and it's an interesting problem. Here then was the scenario: - Compilation works fine - no problems - Linking works fine - Segmentation fault immediately on startup - Debugging shows the problem occuring in print_header() when calling function write. Well, the problem is caused because certain linkers would appear to use the LEAP write function (present in util.c), before using the system supplied write (in unistd.h). This meant that even though it is nestled away in the core of a fprintf command, the system calls the LEAP write function (Despite having different parameters). So a string is passed instead of an integer, all hell breaks loose, pointers get confused, blam. Core file. The solution to this is very easy indeed: Delete the write function in util.c, and delete the entry in util.h - write() is not used by LEAP, and was provided there to provide a comparable operation to Pascal's write early in the port from Pascal to C. I got hooked on printf's, and never used it. Then do a complete recompile (who knows which function object files might try to call, so clear the lot), and rerun it. The end result of this is that Ultrix is now a supported Operating System, and so is SunOS (it always was until I heard about this problem). There are two other (unrelated) problems to be aware of if you plan to compile on SunOS or Ultrix, or any system missing some ANSI defines: If you're not using a fully ANSI C library, you might be missing the following defines: CLOCKS_PER_SEC and FILENAME_MAX. Solution: Enter the following lines into consts.h (constants.h in 0.9), somewhere in the middle (it doesn't matter where particularly, so long as it is inside the compiler directives "#ifndef _LEAP_CONSTS_" #define FILENAME_MAX 127 #define CLOCKS_PER_SEC 1 These problems will be resolved in the next release of LEAP - 0.11, which has already been released for Windows. Thanks for your patience, and thanks to Louise Banderia da Silva for bringing the SunOS problem to my attention. Regards, Richard. -- Richard Leyton, AMS Management Systems Deutschland GmbH mailto:rleyton@acm.org http://www.brookes.ac.uk/~e0190404/home.html Opinions are my own, and not representative of AMS. >From leap-owner Wed Dec 4 14:35:22 1996 Received: by brookes.ac.uk (8.7.3/SMI-SVR4) id OAA06656; Wed, 4 Dec 1996 14:34:00 GMT Message-Id: <32A57ACB.1711@acm.org> Date: Wed, 04 Dec 1996 14:21:15 +0100 From: Richard Leyton Organization: AMS Management Systems X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: leap@brookes.ac.uk Subject: leap list: ANNOUNCE: LEAP-0.11 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-leap@brookes.ac.uk Precedence: bulk Reply-To: leap@brookes.ac.uk Dear all, This is to announce the availability of the latest version of LEAP. This version, 0.11, incorporates the changes to the system to enable the software to compile and run on Windows (This is released seperately with a compiled windows binary). In addition, this release contains: o Fixes notable core dumps on SunOS and Ultrix o Incorporates changes announced as interim fix. o Minor performance improvements. o Modified internal tuple structure. It has only just been uploaded to the normal ftp sites (sunsite, tsx and demon), and will take a while to be positioned/propogated to mirror sites. I will update the links on the LEAP home page. In the meantime, if you'd like to download it, you may ftp from: ftp://sunsite.unc.edu/pub/Linux/Incoming/leap-0.11.tar.gz Or contact me, and I can e-mail it, or ftp it to a site of convenience to yourself. As always, feel free to let me know of any problems or suggestions you have, Regards, Richard Leyton. -- Richard Leyton, AMS Management Systems Deutschland GmbH mailto:rleyton@acm.org Opinions are my own, and not representative of AMS.