On our Suse 9.0 with Apache 2.0, after having installed apache2-devel
(2.0.48) in order to have apxs2 installed, I've tried to install Carrot
v1.0.7 , but I've got some compilation errors which I reported below
(together with the log of the ./configure command).
Please note that I've modified your "configure" script by replacing any
occurence of "apxs" with "apxs2" (otherwise it was not able to find it).
Before running the "configure" script, I've also defined the env. variable
$APACHE_SYSCONFDIR="/etc/apache2".
Thank you in advance for any help.
Best Regards.
Massimo Trifoglio.
gtb:/usr/local/Carrot-1.0.7 # ./configure --with-gs=/usr/bin/gs
--with-convert=/usr/bin/convert
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for a BSD compatible install... /usr/bin/install -c
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... -static
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i586-suse-linux/bin/ld) supports shared
libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking ROOT is installed in ... /usr/local/root
checking for apxs... /usr/sbin/apxs2
checking Apache modules are installed in ... /usr/lib/apache2
checking for gs... /usr/bin/gs
checking for convert... /usr/bin/convert
checking for Xvfb... not found
configure: warning: No X virtual frame-buffer found
updating cache ./config.cache
creating ./config.status
creating Makefile
creating Carrot.spec
creating include/Makefile
creating module/Makefile
creating src/Makefile
creating macros/Makefile
creating macros/tutorial/Makefile
creating macros/classref/Makefile
creating icons/Makefile
creating config.h
gtb:/usr/local/Carrot-1.0.7 # gmake
gmake all-recursive
gmake[1]: Entering directory `/usr/local/Carrot-1.0.7'
Making all in include
gmake[2]: Entering directory `/usr/local/Carrot-1.0.7/include'
sed -e 's/#\([^ ][^ ]*\) \([^ ][^ ]*\)/#\1 ROOT_APACHE_\2/g' >>
TApacheConfig.h < ../config.h
gmake[2]: Leaving directory `/usr/local/Carrot-1.0.7/include'
Making all in module
gmake[2]: Entering directory `/usr/local/Carrot-1.0.7/module'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/Carrot-1.0.7/include -I/usr/include/apache2 -pthread
-I/usr/local/root/include -O2 -march=i586 -mcpu=i686 -fmessage-length=0
-fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -g -O2 -c TApacheModule.cxx
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/Carrot-1.0.7/include
-I/usr/include/apache2 -pthread -I/usr/local/root/include -O2 -march=i586
-mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -g -O2 -c
-fPIC -DPIC TApacheModule.cxx -o .libs/TApacheModule.lo
In file included from TApacheModule.cxx:64:
/usr/local/Carrot-1.0.7/include/TApacheModule.h:43: error: ISO C++ forbids
declaration of `handler_rec' with no type
/usr/local/Carrot-1.0.7/include/TApacheModule.h:43: error: parse error
before `[' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:50: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:50: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:51: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:51: error: `p' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:51: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:52: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:52: error: `p' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:52: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:53: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:53: error: `p' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:53: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:54: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:54: error: `p' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:54: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:63: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:63: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:64: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:64: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h: In function `void
init(...)':
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: error: `s' undeclared
(first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: error: `p' undeclared
(first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/usr/local/Carrot-1.0.7/include/TApacheModule.h:79: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:79: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h: In function `void*
create_dir_config(...)':
/usr/local/Carrot-1.0.7/include/TApacheModule.h:79: error: `dirspec'
undeclared (first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/usr/local/Carrot-1.0.7/include/TApacheModule.h:80: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:80: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h: In function `void*
merge_dir_config(...)':
/usr/local/Carrot-1.0.7/include/TApacheModule.h:80: error: `parent_conf'
undeclared (first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h:80: error: `newloc_conf'
undeclared (first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/usr/local/Carrot-1.0.7/include/TApacheModule.h:81: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:81: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:82: error: `pool' was not
declared in this scope
/usr/local/Carrot-1.0.7/include/TApacheModule.h:82: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h: In function `void*
merge_server_config(...)':
/usr/local/Carrot-1.0.7/include/TApacheModule.h:82: error: `base'
undeclared (first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h:82: error: `newc'
undeclared (first use this function)
/usr/local/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/usr/local/Carrot-1.0.7/include/TApacheModule.h:91: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:91: error: parse error
before `*' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:92: error: type specifier
omitted for parameter `pool'
/usr/local/Carrot-1.0.7/include/TApacheModule.h:92: error: parse error
before `*' token
TApacheModule.cxx:121: error: syntax error before `=' token
TApacheModule.cxx: In function `Int_t PrintHeaders()':
TApacheModule.cxx:184: error: `ap_send_http_header' undeclared (first use
this function)
TApacheModule.cxx: In function `void PrintError(const char*)':
TApacheModule.cxx:209: error: invalid conversion from `server_rec*' to `int'
TApacheModule.cxx:209: error: cannot convert `const char*' to `const
server_rec*' for argument `5' to `void ap_log_error(const char*, int, int,
int, const server_rec*, const char*, ...)'
TApacheModule.cxx: In function `void RestoreStdout()':
TApacheModule.cxx:305: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:318: error: cannot convert `FILE*' to `apr_file_t*' for
argument `1' to `apr_status_t ap_send_fd(apr_file_t*, request_rec*, long
long int, unsigned int, apr_size_t*)'
TApacheModule.cxx:323: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `char* URL_Encode(const char*)':
TApacheModule.cxx:389: error: `ap_palloc' undeclared (first use this
function)
TApacheModule.cxx: In member function `void
RootApacheModule::Init(server_rec*, pool*)':
TApacheModule.cxx:538: error: `ap_null_cleanup' undeclared (first use this
function)
TApacheModule.cxx:538: error: `ap_register_cleanup' undeclared (first use
this function)
TApacheModule.cxx:548: error: cannot convert `const char*' to
`apr_pool_t*' for argument `1' to `void
ap_add_version_component(apr_pool_t*, const char*)'
TApacheModule.cxx:576: error: `ap_log_reason' undeclared (first use this
function)
TApacheModule.cxx: In member function `void
RootApacheModule::ChildInit(server_rec*, pool*)':
TApacheModule.cxx:598: error: `ap_log_reason' undeclared (first use this
function)
TApacheModule.cxx: In member function `void
RootApacheModule::ChildExit(server_rec*, pool*)':
TApacheModule.cxx:626: error: `ap_log_reason' undeclared (first use this
function)
TApacheModule.cxx: In member function `virtual void KeyValue::ls(const
Option_t*) const':
TApacheModule.cxx:741: error: `REDIRECT' undeclared (first use this function)
TApacheModule.cxx: In function `char* GetAuthUser()':
TApacheModule.cxx:755: error: `ap_table_get' undeclared (first use this
function)
TApacheModule.cxx:758: error: `ap_uudecode' undeclared (first use this
function)
TApacheModule.cxx: In function `char* GetAuthPw()':
TApacheModule.cxx:772: error: `ap_table_get' undeclared (first use this
function)
TApacheModule.cxx:775: error: `ap_uudecode' undeclared (first use this
function)
TApacheModule.cxx: In function `char* GetAuthType()':
TApacheModule.cxx:790: error: `ap_table_get' undeclared (first use this
function)
TApacheModule.cxx: In function `void AddEnvVars()':
TApacheModule.cxx:813: error: `array_header' undeclared (first use this
function)
TApacheModule.cxx:813: error: `hdrs_arr' undeclared (first use this function)
TApacheModule.cxx:814: error: `table_entry' undeclared (first use this
function)
TApacheModule.cxx:814: error: `hdrs' undeclared (first use this function)
TApacheModule.cxx:815: error: `env_arr' undeclared (first use this function)
TApacheModule.cxx:816: error: `env' undeclared (first use this function)
TApacheModule.cxx:819: error: `ap_clear_table' undeclared (first use this
function)
TApacheModule.cxx:825: error: `ap_table_elts' undeclared (first use this
function)
TApacheModule.cxx:826: error: parse error before `)' token
TApacheModule.cxx:829: error: parse error before `)' token
TApacheModule.cxx:835: error: 'struct apr_finfo_t' has no member named
'st_mtim'
TApacheModule.cxx:850: error: 'struct apr_finfo_t' has no member named
'st_uid'
TApacheModule.cxx:850: error: `getpwuid' undeclared (first use this function)
TApacheModule.cxx:852: error: invalid use of undefined type `struct passwd'
TApacheModule.cxx:808: error: forward declaration of `struct passwd'
TApacheModule.cxx:852: error: `ap_pstrdup' undeclared (first use this
function)
TApacheModule.cxx:856: error: 'struct apr_finfo_t' has no member named
'st_uid'
TApacheModule.cxx:856: error: `ap_psprintf' undeclared (first use this
function)
TApacheModule.cxx: In function `void LoadAndExecute(const char*)':
TApacheModule.cxx:1157: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:1161: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `Int_t ReadConfigString(const char*)':
TApacheModule.cxx:1181: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:1185: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `Int_t ExecuteMacro(request_rec*)':
TApacheModule.cxx:1210: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:1221: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `Int_t ParseAndSendFile(request_rec*)':
TApacheModule.cxx:1277: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:1284: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `int send_rootfile(request_rec*)':
TApacheModule.cxx:1368: error: `ap_hard_timeout' undeclared (first use
this function)
TApacheModule.cxx:1369: error: `ap_send_http_header' undeclared (first use
this function)
TApacheModule.cxx:1375: error: `ap_log_reason' undeclared (first use this
function)
TApacheModule.cxx:1376: error: `FORBIDDEN' undeclared (first use this
function)
TApacheModule.cxx:1379: error: `ap_pfopen' undeclared (first use this
function)
TApacheModule.cxx:1392: error: `ap_palloc' undeclared (first use this
function)
TApacheModule.cxx:1399: error: 'struct conn_rec' has no member named 'client'
TApacheModule.cxx:1399: error: `ap_bwrite' undeclared (first use this
function)
TApacheModule.cxx:1401: error: `ap_reset_timeout' undeclared (first use
this function)
TApacheModule.cxx:1408: error: 'struct conn_rec' has no member named 'client'
TApacheModule.cxx:1408: error: `BO_BYTECT' undeclared (first use this
function)
TApacheModule.cxx:1408: error: `ap_bgetopt' undeclared (first use this
function)
TApacheModule.cxx:1410: error: 'struct conn_rec' has no member named 'client'
TApacheModule.cxx:1410: error: `ap_bflush' undeclared (first use this
function)
TApacheModule.cxx:1412: error: `ap_pfclose' undeclared (first use this
function)
TApacheModule.cxx: In function `int root_action(request_rec*)':
TApacheModule.cxx:1435: error: 'struct apr_finfo_t' has no member named
'st_mode'
TApacheModule.cxx:1440: error: `ap_pstrcat' undeclared (first use this
function)
TApacheModule.cxx:1441: error: invalid conversion from `server_rec*' to `int'
TApacheModule.cxx:1441: error: cannot convert `const char*' to `const
server_rec*' for argument `5' to `void ap_log_error(const char*, int, int,
int, const server_rec*, const char*, ...)'
TApacheModule.cxx:1487: error: `ap_table_set' undeclared (first use this
function)
TApacheModule.cxx:1494: error: 'struct apr_finfo_t' has no member named
'st_mtim'
TApacheModule.cxx:1512: error: `ap_cpystrn' undeclared (first use this
function)
TApacheModule.cxx:1531: error: `ap_hard_timeout' undeclared (first use
this function)
TApacheModule.cxx:1535: error: `ap_reset_timeout' undeclared (first use
this function)
TApacheModule.cxx:1540: error: `ap_pstrdup' undeclared (first use this
function)
TApacheModule.cxx:1550: error: `ap_kill_timeout' undeclared (first use
this function)
TApacheModule.cxx:1555: error: `ap_soft_timeout' undeclared (first use
this function)
TApacheModule.cxx: At global scope:
TApacheModule.cxx:1604: error: syntax error before `::' token
/usr/local/Carrot-1.0.7/include/TApacheModule.h:78: warning: `void
init(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:79: warning: `void*
create_dir_config(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:80: warning: `void*
merge_dir_config(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:81: warning: `void*
create_server_config(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:82: warning: `void*
merge_server_config(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:83: warning: `int
translate_handler(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:84: warning: `int
check_user_id(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:85: warning: `int
auth_checker(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:86: warning: `int
access_checker(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:87: warning: `int
type_checker(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:88: warning: `int
fixer_upper(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:89: warning: `int
logger(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:90: warning: `int
header_parser(request_rec*)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:91: warning: `void
child_init(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:92: warning: `void
child_exit(...)' defined but not used
/usr/local/Carrot-1.0.7/include/TApacheModule.h:93: warning: `int
post_read_request(request_rec*)' defined but not used
TApacheModule.cxx:1418: warning: `int root_action(request_rec*)' defined
but not used
gmake[2]: *** [TApacheModule.lo] Error 1
gmake[2]: Leaving directory `/usr/local/Carrot-1.0.7/module'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/Carrot-1.0.7'
gmake: *** [all-recursive-am] Error 2
gtb:/usr/local/Carrot-1.0.7 #
Received on Thu Mar 03 2005 - 14:03:32 MET