Armand A. Verstappen wrote:
	flock is the ucb version of lockf (or vice-versa). Try setting both
-DSYSV and -DSVR4 in the makefile to try and make it use lockf instead.
If that doesn't work, try -I/usr/ucbinclude. Since this is a ucb
function, the definition of LOCK_EX and LOCK_UN is under /usr/ucbinclude
rather than under /usr/include (/usr/ucbinclude/sys/file.h to be exact).

Just hoping this will get you somewhere, I can't get my hands on a
Solaris 9 box right now.


Got rid of the LOCK_EX and LOCK_UN but it still can't find flock, or some other functions for that matter.

------<snip>-------
# gmake clean
Making clean in .
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3'
gmake[1]: Nothing to be done for `clean-am'.
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3'
Making clean in test
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/test'
test -z "pageresolve path_parser snippet owner" || rm -f pageresolve path_parser snippet owner
rm -rf .libs _libs
rm -f *.o core *.core
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/test'
Making clean in repligard
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/repligard'
test -z "repligard" || rm -f repligard
rm -rf .libs _libs
rm -f *.o core *.core
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/repligard'
Making clean in src
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/src'
test -z "libmidgard.la" || rm -f libmidgard.la
rm -rf .libs _libs
test -z "tablenames.c authfailure.c preparse.c" || rm -f tablenames.c authfailure.c preparse.c
rm -f *.o core *.core
rm -f *.o
rm -f *.lo
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/src'
Making clean in midgard
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/midgard'
test -z "tablenames.h authfailure.h" || rm -f tablenames.h authfailure.h
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/midgard'
# gmake
Making all in midgard
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/midgard'
perl ../tablenames.pl -h > tablenames.h
perl ../authfailure.pl -h > authfailure.h
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/midgard'
Making all in src
gmake[1]: Entering directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/src'
/bin/sh ../libtool --mode=compile gcc -DSYSV -DSVR4 -DPACKAGE=\"midgard\" -DVERSION=\"1.4.3-RC-2\" -DHAVE_DLFCN_H=1 -DHAVE_ZLIB_H=1 -DHAVE_CRYPT_H=1 -DHAVE_ICONV=1 -DHAVE_ERRMSG_H=1 -DHAVE_MYSQL_H=1 -I. -I. -I/usr/ucbinclude -I.. -DG_LOG_DOMAIN=\"midgard-lib\" -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/mysql/include/mysql -I/usr/local/include -Wall -g -O2 -c midgard.c
mkdir .libs
gcc -DSYSV -DSVR4 -DPACKAGE=\"midgard\" -DVERSION=\"1.4.3-RC-2\" -DHAVE_DLFCN_H=1 -DHAVE_ZLIB_H=1 -DHAVE_CRYPT_H=1 -DHAVE_ICONV=1 -DHAVE_ERRMSG_H=1 -DHAVE_MYSQL_H=1 -I. -I. -I/usr/ucbinclude -I.. -DG_LOG_DOMAIN=\"midgard-lib\" -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/mysql/include/mysql -I/usr/local/include -Wall -g -O2 -Wp,-MD,.deps/midgard.pp -c midgard.c -fPIC -DPIC -o .libs/midgard.lo
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
cc1: warning: changing search order for system directory "/usr/ucbinclude"
cc1: warning: as it has already been specified as a non-system directory
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from midgard/midgard.h:29,
from midgard.c:23:
/usr/ucbinclude/assert.h:38: warning: ignoring #pragma ident
In file included from midgard.c:38:
/usr/ucbinclude/stdio.h:41: warning: ignoring #pragma ident
In file included from midgard.c:42:
/usr/ucbinclude/sys/file.h:36: warning: ignoring #pragma ident
In file included from /usr/ucbinclude/sys/file.h:70,
from midgard.c:42:
/usr/ucbinclude/sys/fcntl.h:37: warning: ignoring #pragma ident
In file included from midgard.c:43:
/usr/ucbinclude/unistd.h:37: warning: ignoring #pragma ident
midgard.c: In function `mgd_log_debug_default':
midgard.c:61: warning: implicit declaration of function `fileno'
midgard.c:63: warning: implicit declaration of function `flock'
midgard.c: In function `mgd_parse_log_levels':
midgard.c:126: warning: subscript has type `char'
midgard.c:145: warning: subscript has type `char'
midgard.c: In function `mgd_init_ex':
midgard.c:178: warning: implicit declaration of function `gethostname'
midgard.c: In function `mgd_assert_db_connection':
midgard.c:387: warning: implicit declaration of function `sleep'
midgard.c: In function `mgd_query':
midgard.c:820: `__builtin_va_alist' undeclared (first use in this function)
midgard.c:820: (Each undeclared identifier is reported only once
midgard.c:820: for each function it appears in.)
midgard.c: In function `mgd_ungrouped_select':
midgard.c:904: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_sitegroup_select':
midgard.c:917: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_global_exists':
midgard.c:1166: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_exists_id':
midgard.c:1215: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_exists_bool':
midgard.c:1251: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_exec':
midgard.c:1362: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_create':
midgard.c:1406: `__builtin_va_alist' undeclared (first use in this function)
midgard.c: In function `mgd_update':
midgard.c:1458: `__builtin_va_alist' undeclared (first use in this function)
gmake[1]: *** [midgard.lo] Error 1
gmake[1]: Leaving directory `/mnt/z/home/cust/eero/midgard/midgard-lib-1.4.3/src'
gmake: *** [all-recursive] Error 1
------<snip>-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to