Re: Compile Error

From: Robert Collins <robertc@dont-contact.us>
Date: Thu, 25 Sep 2003 07:08:59 +1000

On Thu, 2003-09-25 at 06:03, WA Support wrote:
> Hello,
>
> I am trying to compile squid-3.0-PRE3-20030830 on a Redhat 7.3 system.

I suggest you grab a newer snapshot... some key bugs where fixed in the
last week.

> I just upgraded gcc from gcc-2.9.6 that came with the Redhat
> distribution to gcc-3.2.3 that I got from the gnu.org tarball.
...
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> configure: error: /bin/sh './configure' failed for lib/libTrie
>
> Any ideas what might be going on here?

If you check lib/libTrie/config.log you'll probably find that a.out
couldn't be run. That suggests that you have a library problem.

try creating a dummy source program:

foo.cc:
#include <iostream>
int
main (int argc, char **argv)
{
  return 0;
}

and compile:
g++ foo.cc

this should create a.out

Now, run it:
./a.out

if you get any errors, your c++ install is bust.

My WAG: you installed g++ into /usr/local/ and /usr/local/lib isn't in
your ld.so.conf.

Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Received on Wed Sep 24 2003 - 15:09:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:01 MST