You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@ooo.lanl.gov> on 1995/03/13 18:20:47 UTC
util.c:796: `LOCK_SH' undeclared (first use this function)
I just downlaoded apache-pre.tar.Z and tried to build it
on my HP UX 712/80 (if I had the chance I'd dump the HP in
favour of a Sun)
gcc -c -DXBITHACK -O -I/usr/include -DNSCACHE -DHPUX util.c
util.c: In function `search_nameserver_cache':
util.c:796: `LOCK_SH' undeclared (first use this function)
util.c:796: (Each undeclared identifier is reported only once
util.c:796: for each function it appears in.)
util.c:808: `LOCK_UN' undeclared (first use this function)
util.c: In function `write_nameserver_cache':
util.c:829: `LOCK_EX' undeclared (first use this function)
util.c:860: `LOCK_UN' undeclared (first use this function)
*** Error code 1
If I explicitly add (taken from a SunOs system. A bad idea I suspect)
#define LOCK_SH 1 /* shared lock */
#define LOCK_EX 2 /* exclusive lock */
#define LOCK_NB 4 /* don't block when locking */
#define LOCK_UN 8 /* unlock */
I then end up with
gcc -o httpd http_config.o httpd.o http_request.o util.o http_dir.o http_alias.o http_log.o http_mime.o http_access.o http_auth.o http_get.o http_post.o http_script.o http_include.o rfc931.o http_put.o http_delete.o stream.o
/bin/ld: Unsatisfied symbols:
flock (code)
collect: ld returned 1 exit status
*** Error code 1
Any suggestions ?
rob h