F_LOCK and F_ULOCK are constants used by the lockf function, which 
provides a simpler interface to fcntl

On the linux box I'm looking at, they are defined in /usr/lib/unistd.h 
*and* /usr/lib/fcntl.h

The lockf function appears to be absent on OS X (I'm on 10.1.2)

The simplest thing is probably either to patch Data::UUID with the lockf 
code under Mac OS X, or to hack it to use fcntl directly ...


On Thursday, January 31, 2002, at 11:36 PM, Chris Angelli wrote:

> Hello,
>
> Has anyone out there installed the Data::UUID CPAN
> module?  I have been unsuccessful so far.  I believe
> it is having trouble finding a library and/or possibly
> missing some include files.
>
> I am running version 10.1 of the OS and version 5.6.1
> of Perl.
>
>  Here is what is happening when I try to install the
> module:
>
> % perl Makefile.pl
> UUID state storage (/var/tmp):
> Note (probably harmless): No library found for
> -lsocket
> Writing Makefile for Data::UUID
>  % make
> cc -c  -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE
> -fno-strict-aliasing -I/usr/local/include -O3
> -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\"
> -I/System/Library/Perl/darwin/CORE
> -D_STDIR=\"/var/tmp\" UUID.c
> UUID.xs: In function `XS_Data__UUID_create':
> UUID.xs:316: `F_LOCK' undeclared (first use in this
> function)
> UUID.xs:316: (Each undeclared identifier is reported
> only once
> UUID.xs:316: for each function it appears in.)
> UUID.xs:318: `F_ULOCK' undeclared (first use in this
> function)
> make: *** [UUID.o] Error 1
>
>
> Note that in a vain attempt to fix this, I tried
> installing Socket, but that seems to have fixed
> nothing.
>
> Also, I've grepped around for 'F_LOCK' and 'F_UNLOCK'
> in all of the include directories I could think of and
> can't find them anywhere.
>
> Anyone have any experience/insight/suggestions?
>
> Thank you.
>
> -chris
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>

Reply via email to