Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 1998 22:58:35 +0000
From:      Peter Hamilton <fbq@hamil.demon.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Perl, Semaphores and ftok
Message-ID:  <19981205225835.A4049@hamil.demon.co.uk>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981205225835.A4049>