You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by MLVJ <ml...@yahoo.co.uk> on 2006/04/07 16:39:03 UTC

installing rivet on solaris (help requested)

Hi guys,
I have done a load of work in tcl (8.4), and I've got oratcl working on my sparc solaris 5.8 box, which runs apache 1.3.
I'd like to get rivet on it as well, so that I may serve up some web pages dynamically, using tcl.
I downloaded the 0.5.0 latest stable source (from http://mirrors.dedipower.com/ftp.apache.org/tcl/rivet/), and that didn't build according to the install instructions in INSTALL, as the required tcl files are not in src.
I downloaded the very very latest source from cvs: http://cvs.apache.org/snapshots/tcl-rivet/ and that didn't build because it wants apr includes, and the --apache-version=1 flag doesn't work (there's no code for it other than in the help). I hacked the configure a little bit to skip past the apr thing without doing anything, and I hardcoded the apacheversion to be 1, but the make failed:
checking for apr includes directory... checking for apache version... building for apache 1.x 
configure: creating ./config.status
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
Making all in src
make: Fatal error: Don't know how to make target `all'
hmmmm I just tried doing the rivet 0.5.0 again, in case configure / make / make install will work... let's see... ok it was a lot nicer than the latest cvs, but I got a different issue:
./configure --with-apxs=/usr/apache/bin/apxs --with-apache=/usr/apache
(no hacking required)
make
Making all in src
if /bin/bash ../libtool --mode=compile gcc -pipe -DPACKAGE_NAME=\"Rivet\" -DPACKAGE_TARNAME=\"rivet\" -DPACKAGE_VERSION=\"0.5.0\" -DPACKAGE_STRING=\"Rivet\ 0.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rivet\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_DLFCN_H=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_ISOC99_SOURCE= -D_LARGEFILE64_SOURCE= -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DNAMEOFEXECUTABLE=\"/usr/local/lib/../bin/tclsh8.4\" -I. -I.  -I"/usr/local/include"  -I -DSTART_TAG='"<?"' -DEND_TAG='"?>"'   -O -Wall -Wno-implicit-int -fPIC -MT mod_rivet_la-apache_multipart_buffer.lo -MD -MP -MF ".deps/mod_rivet_la-apache_multipart_buffer.Tpo" -c -o mod_rivet_la-apache_multipart_buffer.lo `test -f
 'apache_multipart_buffer.c' || echo './'`apache_multipart_buffer.c; \
then mv -f ".deps/mod_rivet_la-apache_multipart_buffer.Tpo" ".deps/mod_rivet_la-apache_multipart_buffer.Plo"; else rm -f ".deps/mod_rivet_la-apache_multipart_buffer.Tpo"; exit 1; fi
mkdir .libs
 gcc -pipe -DPACKAGE_NAME=\"Rivet\" -DPACKAGE_TARNAME=\"rivet\" -DPACKAGE_VERSION=\"0.5.0\" "-DPACKAGE_STRING=\"Rivet 0.5.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rivet\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_DLFCN_H=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_ISOC99_SOURCE= -D_LARGEFILE64_SOURCE= "-DTCL_WIDE_INT_TYPE=long long" -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DNAMEOFEXECUTABLE=\"/usr/local/lib/../bin/tclsh8.4\" -I. -I. -I/usr/local/include -I "-DSTART_TAG=\"<?\"" "-DEND_TAG=\"?>\"" -O -Wall -Wno-implicit-int -fPIC -MT mod_rivet_la-apache_multipart_buffer.lo -MD -MP -MF .deps/mod_rivet_la-apache_multipart_buffer.Tpo -c apache_multipart_buffer.c  -fPIC -DPIC -o .libs/mod_rivet_la-apache_multipart_buffer.o
In file included from apache_multipart_buffer.h:4,
                 from apache_multipart_buffer.c:21:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
<lots of other errors>
apache_multipart_buffer.c:296: error: `self' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `mod_rivet_la-apache_multipart_buffer.lo'
Current working directory /home/mjenkins/rivet-0.5.0/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
>From this I can see that the apache include directory, which is a bit unusual - /usr/apache/include, isn't being included.
Can anybody please tell me how I may get it included such that I may install rivet?
Thank you very much,
Martin J

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: installing rivet on solaris (help requested)

Posted by "David N. Welton" <da...@dedasys.com>.
MLVJ wrote:
> Hi guys,
> I have done a load of work in tcl (8.4), and I've got oratcl working on my sparc solaris 5.8 box, which runs apache 1.3.
> I'd like to get rivet on it as well, so that I may serve up some web pages dynamically, using tcl.
> I downloaded the 0.5.0 latest stable source (from http://mirrors.dedipower.com/ftp.apache.org/tcl/rivet/), and that didn't build according to the install instructions in INSTALL, as the required tcl files are not in src.
> I downloaded the very very latest source from cvs: http://cvs.apache.org/snapshots/tcl-rivet/ and that didn't build because it wants apr includes, and the --apache-version=1 flag doesn't work (there's no code for it other than in the help). I hacked the configure a little bit to skip past the apr thing without doing anything, and I hardcoded the apacheversion to be 1, but the make failed:
> checking for apr includes directory... checking for apache version... building for apache 1.x 
> configure: creating ./config.status
> cd . && /bin/bash ./config.status config.h
> config.status: creating config.h
> config.status: config.h is unchanged
> make  all-recursive
> Making all in src
> make: Fatal error: Don't know how to make target `all'

> hmmmm I just tried doing the rivet 0.5.0 again, in case configure / make / make install will work... let's see... ok it was a lot nicer than the latest cvs, but I got a different issue:
> ./configure --with-apxs=/usr/apache/bin/apxs --with-apache=/usr/apache
> (no hacking required)
> make
> Making all in src
> if /bin/bash ../libtool --mode=compile gcc -pipe -DPACKAGE_NAME=\"Rivet\" -DPACKAGE_TARNAME=\"rivet\" -DPACKAGE_VERSION=\"0.5.0\" -DPACKAGE_STRING=\"Rivet\ 0.5.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rivet\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_DLFCN_H=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_ISOC99_SOURCE= -D_LARGEFILE64_SOURCE= -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DNAMEOFEXECUTABLE=\"/usr/local/lib/../bin/tclsh8.4\" -I. -I.  -I"/usr/local/include"  -I -DSTART_TAG='"<?"' -DEND_TAG='"?>"'   -O -Wall -Wno-implicit-int -fPIC -MT mod_rivet_la-apache_multipart_buffer.lo -MD -MP -MF ".deps/mod_rivet_la-apache_multipart_buffer.Tpo" -c -o mod_rivet_la-apache_multipart_buffer.lo `test -f
>  'apache_multipart_buffer.c' || echo './'`apache_multipart_buffer.c; \
> then mv -f ".deps/mod_rivet_la-apache_multipart_buffer.Tpo" ".deps/mod_rivet_la-apache_multipart_buffer.Plo"; else rm -f ".deps/mod_rivet_la-apache_multipart_buffer.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -pipe -DPACKAGE_NAME=\"Rivet\" -DPACKAGE_TARNAME=\"rivet\" -DPACKAGE_VERSION=\"0.5.0\" "-DPACKAGE_STRING=\"Rivet 0.5.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rivet\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_DLFCN_H=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_ISOC99_SOURCE= -D_LARGEFILE64_SOURCE= "-DTCL_WIDE_INT_TYPE=long long" -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DNAMEOFEXECUTABLE=\"/usr/local/lib/../bin/tclsh8.4\" -I. -I. -I/usr/local/include -I "-DSTART_TAG=\"<?\"" "-DEND_TAG=\"?>\"" -O -Wall -Wno-implicit-int -fPIC -MT mod_rivet_la-apache_multipart_buffer.lo -MD -MP -MF .deps/mod_rivet_la-apache_multipart_buffer.Tpo -c apache_multipart_buffer.c  -fPIC -DPIC -o .libs/mod_rivet_la-apache_multipart_buffer.o
> In file included from apache_multipart_buffer.h:4,
>                  from apache_multipart_buffer.c:21:
> apache_request.h:5:19: httpd.h: No such file or directory
> apache_request.h:6:25: http_config.h: No such file or directory
> apache_request.h:7:23: http_core.h: No such file or directory

This looks like it's not finding the Apache header files...  Where are
they located?  Does apxs -q INCLUDEDIR agree with that?

-- 
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org