pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem building pcre (2009Q2 | NetBSD 5)



On Thu, Sep 24, 2009 at 01:29:20AM +0000, piminx%comcast.net@localhost wrote:
> -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c -o pcrecpp.lo pcrecpp.cc
>     c++ -DHAVE_CONFIG_H -I. -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo 
> -c pcrecpp.cc  -fPIC -DPIC -o .libs/pcrecpp.o
>    /usr/include/g++/bits/type_traits.h:90: error: redefinition of 'struct 
> __true_type'
>    /usr/include/g++/bits/cpp_type_traits.h:93: error: previous definition of 
> 'struct __true_type'
>    /usr/include/g++/bits/type_traits.h:91: error: redefinition of 'struct 
> __false_type'
>    /usr/include/g++/bits/cpp_type_traits.h:94: error: previous definition of 
> 'struct __false_type'
>    *** Error code 1
...
> Where did I go wrong?

We should make that a FAQ somewhere, it's asked so often.

When updating your NetBSD installation, you didn't run 'postinstall
fix' and thus haven't removed old header files that conflict with
current ones.
 Thomas


Home | Main Index | Thread Index | Old Index