Re: [ROOT] Can't configure CARROT.

From: Shitov Yuriy (yuriy@nusun.jinr.ru)
Date: Thu Mar 27 2003 - 12:38:48 MET


Hi, Valeriy

I solved the problem of configuration. The error was forced by the 
following string in
acinclude.m4 (line 112):
   GCC_VER=`g++ --version`
The problem is that by this command gcc 3.2 generates rather long 
complicated string with round brackets,
which force sed to confuse. So, I modified the determination of GCC_VER 
in the
following way:
   GCC_VER=`g++ --version | sed -ne "s,(,,g;s,),,g;1p"`
and now configuration stage finishes well.

Unfortunately, compilation fails now, and I sure that it is due to usage 
of gcc 3.2 instead of gcc < 3...
(I saw the same problems with other packages migrating from gcc 2.xx to 
gcc 3.xx...)
Does somebody use CARROT under gcc 3.2?

Best wishes,
Yuriy.

[root@pcnu34 Carrot-1.0.7]# gmake
gmake  all-recursive
gmake[1]: Entering directory `/cern/root/Carrot-1.0.7'
Making all in include
gmake[2]: Entering directory `/cern/root/Carrot-1.0.7/include'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/cern/root/Carrot-1.0.7/include'
Making all in module
gmake[2]: Entering directory `/cern/root/Carrot-1.0.7/module'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. 
-I/cern/root/Carrot-1.0.7/include  -I/usr/include/httpd -D_REENTRANT 
-I/cern/root/pro/include -O2 -march=i386 -mcpu=i686   -D_GNU_SOURCE -g 
-g -O2 -MT TApacheModule.lo -MD -MP -MF ".deps/TApacheModule.Tpo" \
  -c -o TApacheModule.lo `test -f 'TApacheModule.cxx' || echo 
'./'`TApacheModule.cxx; \
then mv ".deps/TApacheModule.Tpo" ".deps/TApacheModule.Plo"; \
else rm -f ".deps/TApacheModule.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/cern/root/Carrot-1.0.7/include 
-I/usr/include/httpd -D_REENTRANT -I/cern/root/pro/include -O2 
-march=i386 -mcpu=i686 -D_GNU_SOURCE -g -g -O2 -MT TApacheModule.lo -MD 
-MP -MF .deps/TApacheModule.Tpo -c  -fPIC -DPIC TApacheModule.cxx -o 
TApacheModule.lo
In file included from TApacheModule.cxx:64:
/cern/root/Carrot-1.0.7/include/TApacheModule.h:43: ISO C++ forbids 
declaration
   of `handler_rec' with no type
/cern/root/Carrot-1.0.7/include/TApacheModule.h:43: parse error before `['
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:50: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:50: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:51: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:51: `p' was not declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:51: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:52: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:52: `p' was not declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:52: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:53: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:53: `p' was not declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:53: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:54: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:54: `p' was not declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:54: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:63: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:63: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:64: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:64: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:78: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:78: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h: In function `void 
init(...)':
/cern/root/Carrot-1.0.7/include/TApacheModule.h:78: `s' undeclared 
(first use
   this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h:78: (Each undeclared 
identifier
   is reported only once for each function it appears in.)
/cern/root/Carrot-1.0.7/include/TApacheModule.h:78: `p' undeclared 
(first use
   this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/cern/root/Carrot-1.0.7/include/TApacheModule.h:79: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:79: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h: In function `void*
   create_dir_config(...)':
/cern/root/Carrot-1.0.7/include/TApacheModule.h:79: `dirspec' undeclared 
(first
   use this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/cern/root/Carrot-1.0.7/include/TApacheModule.h:80: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:80: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h: In function `void*
   merge_dir_config(...)':
/cern/root/Carrot-1.0.7/include/TApacheModule.h:80: `parent_conf' undeclared
   (first use this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h:80: `newloc_conf' undeclared
   (first use this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/cern/root/Carrot-1.0.7/include/TApacheModule.h:81: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:81: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:82: `pool' was not 
declared in
   this scope
/cern/root/Carrot-1.0.7/include/TApacheModule.h:82: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h: In function `void*
   merge_server_config(...)':
/cern/root/Carrot-1.0.7/include/TApacheModule.h:82: `base' undeclared (first
   use this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h:82: `newc' undeclared (first
   use this function)
/cern/root/Carrot-1.0.7/include/TApacheModule.h: At global scope:
/cern/root/Carrot-1.0.7/include/TApacheModule.h:91: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:91: parse error before `*'
   token
/cern/root/Carrot-1.0.7/include/TApacheModule.h:92: type specifier 
omitted for
   parameter `pool'
/cern/root/Carrot-1.0.7/include/TApacheModule.h:92: parse error before `*'
   token
TApacheModule.cxx:121: syntax error before `=' token
TApacheModule.cxx: In function `Int_t PrintHeaders()':
TApacheModule.cxx:184: `ap_send_http_header' undeclared (first use this
   function)
TApacheModule.cxx: In function `void PrintError(const char*)':
TApacheModule.cxx:209: invalid conversion from `server_rec*' to `int'
TApacheModule.cxx:209: 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: `ap_pfopen' undeclared (first use this function)
TApacheModule.cxx:318: cannot convert `FILE*' to `apr_file_t*' for 
argument `1'
   to `apr_status_t ap_send_fd(apr_file_t*, request_rec*, long int, unsigned
   int, apr_size_t*)'
TApacheModule.cxx:323: `ap_pfclose' undeclared (first use this function)
TApacheModule.cxx: In function `char* URL_Encode(const char*)':
TApacheModule.cxx:389: `ap_palloc' undeclared (first use this function)
TApacheModule.cxx: In member function `void 
RootApacheModule::Init(server_rec*,
   pool*)':
TApacheModule.cxx:538: `ap_null_cleanup' undeclared (first use this 
function)
TApacheModule.cxx:538: `ap_register_cleanup' undeclared (first use this
   function)
TApacheModule.cxx:548: 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: `ap_log_reason' undeclared (first use this function)
TApacheModule.cxx: In member function `virtual void KeyValue::ls(const
   Option_t*) const':
TApacheModule.cxx:741: `REDIRECT' undeclared (first use this function)
TApacheModule.cxx: In function `char* GetAuthUser()':
TApacheModule.cxx:755: `ap_table_get' undeclared (first use this function)
TApacheModule.cxx:758: `ap_uudecode' undeclared (first use this function)
TApacheModule.cxx: In function `void AddEnvVars()':
TApacheModule.cxx:813: `array_header' undeclared (first use this function)
TApacheModule.cxx:813: `hdrs_arr' undeclared (first use this function)
TApacheModule.cxx:814: `table_entry' undeclared (first use this function)
TApacheModule.cxx:814: `hdrs' undeclared (first use this function)
TApacheModule.cxx:815: `env_arr' undeclared (first use this function)
TApacheModule.cxx:816: `env' undeclared (first use this function)
TApacheModule.cxx:819: `ap_clear_table' undeclared (first use this function)
TApacheModule.cxx:825: `ap_table_elts' undeclared (first use this function)
TApacheModule.cxx:826: parse error before `)' token
TApacheModule.cxx:829: parse error before `)' token
TApacheModule.cxx:835: `struct apr_finfo_t' has no member named `st_mtim'
TApacheModule.cxx:850: `struct apr_finfo_t' has no member named `st_uid'
TApacheModule.cxx:850: `getpwuid' undeclared (first use this function)
TApacheModule.cxx:852: invalid use of undefined type `struct passwd'
TApacheModule.cxx:808: forward declaration of `struct passwd'
TApacheModule.cxx:852: `ap_pstrdup' undeclared (first use this function)
TApacheModule.cxx:856: `struct apr_finfo_t' has no member named `st_uid'
TApacheModule.cxx:856: `ap_psprintf' undeclared (first use this function)
TApacheModule.cxx: In function `int send_rootfile(request_rec*)':
TApacheModule.cxx:1368: `ap_hard_timeout' undeclared (first use this 
function)
TApacheModule.cxx:1376: `FORBIDDEN' undeclared (first use this function)
TApacheModule.cxx:1399: `struct conn_rec' has no member named `client'
TApacheModule.cxx:1399: `ap_bwrite' undeclared (first use this function)
TApacheModule.cxx:1401: `ap_reset_timeout' undeclared (first use this 
function)
TApacheModule.cxx:1408: `struct conn_rec' has no member named `client'
TApacheModule.cxx:1408: `BO_BYTECT' undeclared (first use this function)
TApacheModule.cxx:1408: `ap_bgetopt' undeclared (first use this function)
TApacheModule.cxx:1410: `struct conn_rec' has no member named `client'
TApacheModule.cxx:1410: `ap_bflush' undeclared (first use this function)
TApacheModule.cxx: In function `int root_action(request_rec*)':
TApacheModule.cxx:1435: `struct apr_finfo_t' has no member named `st_mode'
TApacheModule.cxx:1440: `ap_pstrcat' undeclared (first use this function)
TApacheModule.cxx:1441: invalid conversion from `server_rec*' to `int'
TApacheModule.cxx:1441: 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: `ap_table_set' undeclared (first use this function)
TApacheModule.cxx:1494: `struct apr_finfo_t' has no member named `st_mtim'
TApacheModule.cxx:1512: `ap_cpystrn' undeclared (first use this function)
TApacheModule.cxx:1550: `ap_kill_timeout' undeclared (first use this 
function)
TApacheModule.cxx:1555: `ap_soft_timeout' undeclared (first use this 
function)
TApacheModule.cxx: At global scope:
TApacheModule.cxx:1604: syntax error before `::' token
gmake[2]: *** [TApacheModule.lo] Error 1
gmake[2]: Leaving directory `/cern/root/Carrot-1.0.7/module'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/cern/root/Carrot-1.0.7'
gmake: *** [all] Error 2



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET