Re: [htdig] compilation PB with const on HPUX 10.2 and htdig 3.1.4


Subject: Re: [htdig] compilation PB with const on HPUX 10.2 and htdig 3.1.4
From: Geoff Hutchison (ghutchis@wso.williams.edu)
Date: Mon Feb 21 2000 - 18:22:39 PST


At 10:44 AM +0100 2/21/00, Thierry Herve wrote:
> CC -c -DDEFAULT_CONFIG_FILE=\"/opt/www/htdig/conf/htdig.conf\"
>-I../htlib -I../htcommon -I../db/dist -I../include -g Configuration.cc
>CC: "/opt/CC/include/CC/iostream.h", line 117: error: two definitions of
>ios::operator void *() (1034)
>CC: "/opt/CC/include/CC/iostream.h", line 117: error: ios::operator void
>*() cannot be redeclared in class declaration (1168)
>*** Error exit code 1
>
>This error is producced because C or C++ keyword const is re-defined as
>"" (#define const).

Goodness. I don't think I've seen a C++ compiler complain on that
sort of stuff. Then again, most of us are compiling with gcc/g++.

>What is 'ac_cv_c_const' variable used in configure script? Where must be
>initialize and by which script?
>Where can I find explainations about comfigure script? (How it works and
>so on)

The configure script is generated by the autoconf package:
<http://sourceware.cygnus.com/autoconf/>

The "variable" is part of the AC_C_CONST macro. The script couldn't
figure out how to get your compiler to use const and so it tried to
hack it. To see the test program that it used, check config.log

-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Mon Feb 21 2000 - 18:36:52 PST