Squid
When compiling squid-3.0.STABLE1 I ran into this error
$ ./configure --prefix=/app/retailtools --with-openssl=/usr/local/ssl ... config.status: creating tools/Makefile config.status: creating include/autoconf.h config.status: executing depfiles commands === configuring in lib/libTrie (/usr/dev/emgdev/src/squid-3.0.STABLE1/lib/libTrie) configure: running /bin/bash ./configure '--prefix=/app/retailtools' '--with-openssl=/usr/local/ssl' --cache-file=/dev/null --srcdir=. checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. configure: error: ./configure failed for lib/libTrie
I installed [GNU's libtool 1.5], and that didn't help.
This didn't work, so I tried to run bootstrap.sh. This requires automake, which requires autoconf, which requires m4. This is not a problem on a Linux system with a package manager, but on a Solaris system w/o root and no direct internet access, it requires downloading each one.
<geshi lang="bash"> $ ./bootstrap.sh automake : autoconfg: libtool : Bootstrapping Bootstrapping lib/libTrie ./bootstrap.sh: !: not found Autotool bootstrapping complete. </geshi>
Still no luck, so I tried installing gcc-g++-3.4.6.tar.bz2. Nope - I did have g++ properly installed. I ran ./configure in the lib/libTrie directory and found this problem:
configure:2083: ./a.out ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or directory ./configure: line 2084: 8701 Killed ./$ac_file
Turns out a Sybase script in my bashrc was removing /usr/local/lib from my LD_LIBRARY_PATH. Adding it back allowed ./configure to work. Next step is getting 'make' to run.
make[4]: Entering directory `/scratch/src/squid-3.0.STABLE1/lib/libTrie/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT Trie.o -MD -MP -MF ".deps/Trie.Tpo" -c -o Trie.o Trie.cc; \ then mv -f ".deps/Trie.Tpo" ".deps/Trie.Po"; else rm -f ".deps/Trie.Tpo"; exit 1; fi In file included from ../include/Trie.cci:22, from ../include/Trie.h:98, from Trie.cc:20: ../include/TrieNode.h:40:19: utility: No such file or directory make[4]: *** [Trie.o] Error 1