From owner-freebsd-ports Wed Oct 23 12:45:33 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA05199 for ports-outgoing; Wed, 23 Oct 1996 12:45:33 -0700 (PDT) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA05193 for ; Wed, 23 Oct 1996 12:45:30 -0700 (PDT) Received: from fiber.eng.umd.edu (fiber.eng.umd.edu [129.2.98.185]) by po2.glue.umd.edu (8.8.1/8.7.3) with ESMTP id PAA04567; Wed, 23 Oct 1996 15:45:26 -0400 (EDT) Received: from localhost (chuckr@localhost) by fiber.eng.umd.edu (8.7.5/8.7.3) with SMTP id PAA32029; Wed, 23 Oct 1996 15:45:25 -0400 (EDT) X-Authentication-Warning: fiber.eng.umd.edu: chuckr owned process doing -bs Date: Wed, 23 Oct 1996 15:45:24 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@fiber.eng.umd.edu To: Tom Cassiotis cc: freebsd-ports@freebsd.com Subject: Re: Typhoon In-Reply-To: <2.2.32.19961023185439.0093f964@caseware.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 23 Oct 1996, Tom Cassiotis wrote: > > I was wondering if anyone has ported Typhoon DBMS? > > If not maybe someone can help me with the following problem: > > Version: FreeBSD 2.1.0-Release > > ... > sprintf(dbdname, "%s.dbd", db->name); > key = ftok(dbdname, 30); > > if( (db->shm_id = shmget(key, sizeof(TyphoonSharedMemory), 0)) == -1 ) { > ... > key == 503615776 > sizeof == 120 > > The filename that is passed to ftok exists and has proper right. > > The stack trace is as follows: > > #0 0x8046975 in shmsys () > #1 0x803cdf0 in shmget.so () > #2 0xd3e0 in shm_alloc (db=0x119e8) at unix.c:205 > #3 0xba8d in d_open (dbname=0xefbfdafb "test", mode=0x2fd1 "s") > at ty_open.c:406 > #4 0x3030 in Import (dbname=0xefbfdafb "test") at import.c:497 > #5 0x3476 in main (argc=2, argv=0xefbfda98) at import.c:589 > > The man pages on shmget seem to be misleading as to the last parameter. It > describes variable names that do not exist in the header file. Do you have the following defined in your kernel config file, so that you have a valid shmget call? # # These three options provide support for System V Interface # Definition-style interprocess communication, in the form of shared # memory, semaphores, and message queues, respectively. # options SYSVSHM options SYSVSEM options SYSVMSG BTW, where are the sources to this? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------