Subject: prc-tools fails to build on Solaris 9
To: None <tech-pkg@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 02/28/2004 23:57:30
Although gcc3-c++ is not in the dependency list, the configure script
for prc-tools checks for g++ anyway and fails, even though it is
installed.  It's a strange case of the linker being pointed exactly
where it needs to look and failing to find libstdc++.* anyway.

The config.log file is as follows:

-----------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:620: checking host system type
configure:641: checking target system type
configure:659: checking build system type
configure:855: checking for gcc
configure:968: checking whether the C compiler (gcc -O -I/usr/pkg/include -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib) works
configure:984: gcc -o conftest -O -I/usr/pkg/include -I/usr/pkg/include -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c  1>&5
configure:1010: checking whether the C compiler (gcc -O -I/usr/pkg/include -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib) is a cross-compiler
configure:1015: checking whether we are using GNU C
configure:1024: gcc -E conftest.c
configure:1043: checking whether gcc accepts -g
configure:1079: checking for c++
configure:1111: checking whether the C++ compiler (g++ -O -I/usr/pkg/include -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib) works
configure:1127: g++ -o conftest -O -I/usr/pkg/include -I/usr/pkg/include -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.2 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.C  1>&5
ld: fatal: library -lstdc++: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:

#line 1122 "configure"
#include "confdefs.h"

int main(){return(0);}

----------

What's going on here?

Thanks.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!