tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Adams <bad...@magus.co.uk>
Subject Can't compile webapp-1.0-tc4.0 under Solaris
Date Thu, 04 Oct 2001 20:09:20 GMT

 I can't compile webapp-1.0-tc4.0 under solaris (Solaris 8, sparc)

The Autoconf system doesn't seem to know much about solaris,

I managed to fix three problems as follows.

It couldn't find, sys/syslimits.h and stdint.h, so i make symbolic links
from

/usr/include/sys/syslimits.h -> /usr/include/limits.h
/usr/include/stdint.h -> /usr/include/inttypes.h

Which helped

In time.c and timestr.c, it couldn't find the symbols  tm_gmtoff
so i removed these, which help

In the locks, it couldn't find LOCK_EX or LOCK_UN, (missing from
solaris includes, so i added


#define LOCK_SH 1
#define LOCK_EX 2
#define LOCK_NB 4
#define LOCK_UN 8

to /usr/include/sys/file.h

But the DSO support won't compile either and has me stumped, here is
the offending errors from running 'make'.

make[4]: Entering directory `/software/webapp-module-1.0-tc40/apr/dso/unix'
/bin/sh /software/webapp-module-1.0-tc40/apr/libtool --silent
--mode=compile cc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../../include
-I../../include/arch -I../../include/arch/unix  -c dso.c && touch dso.lo
dso.c: In function `apr_dso_load':
dso.c:127: `NSObjectFileImage' undeclared (first use in this function)
dso.c:127: (Each undeclared identifier is reported only once
dso.c:127: for each function it appears in.)
dso.c:127: parse error before `image'
dso.c:128: `NSModule' undeclared (first use in this function)
dso.c:130: `image' undeclared (first use in this function)
dso.c:130: `NSObjectFileImageSuccess' undeclared (first use in this function)
dso.c:139: `os_handle' undeclared (first use in this function)
dso.c: In function `apr_dso_sym':
dso.c:205: `NSSymbol' undeclared (first use in this function)
dso.c:205: parse error before `symbol'
dso.c:211: `symbol' undeclared (first use in this function)
dso.c:218: warning: assignment makes pointer from integer without a cast
make[4]: *** [dso.lo] Error 1

Barry Adams










Mime
View raw message