Re: [htdig] configure under BSD not finding fstream.h


Subject: Re: [htdig] configure under BSD not finding fstream.h
From: Brett Rabideau (misha@toto.com)
Date: Tue Sep 12 2000 - 15:48:19 PDT


Close - it's:

% setenv CFLAGS "-O2"
     % setenv CXXFLAGS "-O2"
     % setenv CPPFLAGS "-I/usr/include/g++ -I/usr/local/include/g++"
     % ./configure

The local is unnecessary.

I also have run into problems with the make (no surprise there<G>):

(1) Geoff, I found you instructions on using GCC make vs. BSD make (thank
you).

(2) I found that I still had to manually add the above includes into the
Makefile.config.in file to allow the same file to be found yet again(!)

(3)I'm now much farther along, but have run into a new compilation
difficulty with a library on the server (?) which may mean that the wrong
libraries are being included:

make[1]: Entering directory
`/usr/home/technoco/usr/home/derek/htdig/ht-src/htcommon'
c++ -c -DBIN_DIR=\"/opt/www/htdig/bin\"
-DCOMMON_DIR=\"/opt/www/htdig/common\" -DCONFIG_DIR=\"/opt/www/htdig/conf\"
-DDATABASE_DIR=\"/opt/www/htdig/db\" -DIMAGE_URL_PREFIX=\"/htdig\"
-DPDF_PARSER=\"/usr/local/bin/acroread\" -DSORT_PROG=\"/usr/bin/sort\"
-DDEFAULT_CONFIG_FILE=\"/opt/www/htdig/conf/htdig.conf\" -I../htlib
-I../htcommon -I../db/dist -I../include -I/usr/include/g++
-I/usr/local/include/g++ -O2 DocumentRef.cc
In file included from DocumentRef.cc:21:
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:28: parse
error before `)'
In file included from
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:38,
                 from DocumentRef.cc:21:
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zconf.h:160: syntax
error before `;'
In file included from DocumentRef.cc:21:
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:72: syntax
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:76: syntax
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:432: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:548: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:602: `Bytef'
was not declared in this scope
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:602: `dest'
was not declared in this scope
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:602: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:617: `Bytef'
was not declared in this scope
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:617: `dest'
was not declared in this scope
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:617: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:712: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:729: parse
error before `*'
/usr/local/lib/gcc-lib/i386-pc-bsdi4.0.1/2.8.1/include/zlib.h:777: parse
error before `}'
DocumentRef.cc: In method `int DocumentRef::Compress(class String &)':
DocumentRef.cc:48: `struct z_stream_s' has no member named `next_in'
DocumentRef.cc:48: `Bytef' undeclared (first use this function)
DocumentRef.cc:48: (Each undeclared identifier is reported only once
DocumentRef.cc:48: for each function it appears in.)
DocumentRef.cc:48: parse error before `)'
DocumentRef.cc:48: parse error before `*'
DocumentRef.cc:51: `struct z_stream_s' has no member named `next_out'
DocumentRef.cc:54: `struct z_stream_s' has no member named `next_out'
DocumentRef.cc:58: `struct z_stream_s' has no member named `next_out'
DocumentRef.cc:61: `struct z_stream_s' has no member named `next_out'
DocumentRef.cc: In method `int DocumentRef::Decompress(class String &)':
DocumentRef.cc:86: `struct z_stream_s' has no member named `next_in'
DocumentRef.cc:86: `Bytef' undeclared (first use this function)
DocumentRef.cc:86: parse error before `)'
DocumentRef.cc:86: parse error before `*'
DocumentRef.cc:93: `struct z_stream_s' has no member named `next_out'
DocumentRef.cc:96: `struct z_stream_s' has no member named `next_out'
make[1]: *** [DocumentRef.o] Error 1
make[1]: Leaving directory
`/usr/home/technoco/usr/home/derek/htdig/ht-src/htcommon'
make: *** [all] Error 1

Always a challenge<G>... but if we get beyond this, you'll have a nifty
tutorial for users of vservers.com to be able to use this software.

Of course, if you've seen this one before, I'd love some input<G>

Kind Regards,

Brett

--On Tuesday, September 12, 2000 5:38 PM -0500 Gilles Detillieux
<grdetil@scrc.umanitoba.ca> wrote:

> According to Brett Rabideau:
>> The difficulties are that this isn't *my* server (sigh!), and that this
>> is on one of the horrible virtual servers. Which means I don't have
>> access to installing libraries, etc., nor do I have any idea of what
>> they installed or when they installed it.
>>
>> However, thanks to Gilles' excellent help, I was able to work through
>> the problem - adding the second include fixed the errors!
>
> So, for the sake of the archives, is it correct to say that the right
> commands to do this on your system are as follow?
>
> % setenv CFLAGS "-O2"
> % setenv CXXFLAGS "-O2"
> % setenv CPPFLAGS "-I/usr/include/g++ -I/usr/local/include/g++"
> % ./configure --prefix=/usr/local
>
> --
> Gilles R. Detillieux E-mail: <grdetil@scrc.umanitoba.ca>
> Spinal Cord Research Centre WWW:
> http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba
> Phone: (204)789-3766
> Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930

Brett Rabideau
 "She sells C-Shells and other Assorted Perls by the Seashore..."
 Periwinkle Communications LLC
 Performance-based Web Site Hosting, Programming & Design
 http://www.toto.com
 misha@toto.com

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Tue Sep 12 2000 - 15:50:58 PDT