From owner-freebsd-questions Sat Dec 5 14:59:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA21068 for freebsd-questions-outgoing; Sat, 5 Dec 1998 14:59:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA21063 for ; Sat, 5 Dec 1998 14:59:47 -0800 (PST) (envelope-from fbq@hamil.demon.co.uk) Received: from [158.152.95.87] (helo=yuri.quake) by post.mail.demon.net with esmtp (Exim 2.054 #1) id 0zmQfw-0002x0-00 for freebsd-questions@FreeBSD.ORG; Sat, 5 Dec 1998 22:59:44 +0000 Received: (from fbq@localhost) by yuri.quake (8.9.0/8.9.0) id WAA05166 for freebsd-questions@FreeBSD.ORG; Sat, 5 Dec 1998 22:58:35 GMT Message-ID: <19981205225835.A4049@hamil.demon.co.uk> Date: Sat, 5 Dec 1998 22:58:35 +0000 From: Peter Hamilton To: freebsd-questions@FreeBSD.ORG Subject: Perl, Semaphores and ftok Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm writing an administration robot in Perl for the ACCU website, and want to use semaphores to lock specific actions performed by the robot. When installing the IPC-SysV-1.03 module, 'make test' complains about a missing '_ftok': PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/i386-freebsd/5.00404 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/msg...............Can't load './blib/arch/auto/IPC/SysV/SysV.so' for module IPC::SysV: Undefined symbol "_ftok" in perl:./blib/arch/auto/IPC/SysV/SysV.so at /usr/local/lib/perl5/i386-freebsd/5.00404/DynaLoader.pm line 166. The kernel has options SYSVSHM, SYSVSEM, SYSVMSG enabled and perl has been recompiled with: "Any additional libraries? [-lm -lc -lcrypt -lcompat]". /usr/lib contains libcompat.a and libcompat_p.a. Perl is version 5.004.04 and we're running FreeBSD 2.2.5 (but I'm trying to get this running on my home machine first, which is 2.2.6). Any ideas? Should I just give up and write an external C program to handle semaphores? Thanks in advance, Pete. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message