Subject: Re: Your Installation isn't able to compile simple C++ programs.
To: Thomas devreese <thomasdevreese@hotmail.com>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 02/27/2004 19:50:20
--0rSojgWGcpz+ezC3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 23, 2004 at 06:26:56PM +0100, Thomas devreese wrote:

> >Are there any helpful error messages in the config.log of the arts
> >build directory?  Anything that would give a clue why the test for
> >c++ compiler is failing.
>=20
> There are some errors reported in pthread.h.
> I suppose the relevant part of it is the following.
>=20
> configure:27069: checking if C++ programs can be compiled
> configure:27099: c++ -c -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -=
W=20
> -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2=20
> -DGLX_GLXEXT_LEGACY -I/usr/pkg/inc
> lude -I/usr/X11R6/include  -fno-check-new -fno-common=20
> -I/usr/pkg/include/freetype2 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include=20
> -I/usr/X11R6/include conftest.cc >&5
> In file included from /usr/include/g++/bits/gthr-default.h:40,
>                 from /usr/include/g++/bits/gthr.h:101,
>                 from /usr/include/g++/bits/c++io.h:37,
>                 from /usr/include/g++/bits/fpos.h:44,
>                 from /usr/include/g++/bits/char_traits.h:46,
>                 from /usr/include/g++/string:47,
>                 from conftest.cc:63:
> /usr/pkg/include/pthread.h:285: error: conflicting types for `typedef str=
uct
>   pthread_st*pthread_t'
> /usr/include/pthread_types.h:71: error: previous declaration as `typedef=
=20
> struct

this looks like you have GNU pth installed as well as having native
threads in NetBSD. they don't play nicely together :)

has this system been updated to a newer -current after you installed
GNU pth? if so, existing packages should continue to work as normal,
but I suggest you remove GNU pth and rebuild packages which need
pthreads, or you'll keep running into this when building new
packages.

grant.


--0rSojgWGcpz+ezC3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAPwTMluYOb9yiFXoRAiG8AJ4yOxX8hdrn0sTfH7zm6EQ+johl4wCdFNXp
jaeiEmYOFxYeb/9D62jcxbA=
=K+z6
-----END PGP SIGNATURE-----

--0rSojgWGcpz+ezC3--