[tlbuild] trial builds for TL'13

Apostolos Syropoulos asyropoulos at gmail.com
Sun Mar 31 14:58:36 CEST 2013


2013/3/28 Karl Berry <karl at freefriends.org>


> The other patch, for uposixdefs.h, also looks problematic to me, I'm
> sorry to say.  It would affect not just your compilations with the
> latest OpenSolaris but any compilation on a Sun with any version of any
> OS.  It does not seem implausible to me that _XOPEN_SOURCE_EXTENDED is
> actually desirable/needed in other cases ...
>


Hello again,

If you try to compile the following program on any Solaris platform using
g++

#define _XOPEN_SOURCE_EXTENDED 1
#include <iostream>

int main() { }

you will get

g++ -c xx.cpp
In file included from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/include-fixed/wchar.h:41:0,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:46,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/postypes.h:42,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/iosfwd:42,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ios:39,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ostream:40,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/iostream:40,
                 from xx.cpp:2:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/include-fixed/sys/feature_tests.h:362:2:
σφάλμα: #error "Compiler or options invalid for pre-UNIX 03 X/Open
applications and pre-2001 POSIX applications"
In file included from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/postypes.h:42:0,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/iosfwd:42,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ios:39,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ostream:40,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/iostream:40,
                 from xx.cpp:2:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:143:11:
σφάλμα: ‘::btowc’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:148:11:
σφάλμα: ‘::fwide’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:149:11:
σφάλμα: ‘::fwprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:150:11:
σφάλμα: ‘::fwscanf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:153:11:
σφάλμα: ‘::mbrlen’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:154:11:
σφάλμα: ‘::mbrtowc’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:155:11:
σφάλμα: ‘::mbsinit’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:156:11:
σφάλμα: ‘::mbsrtowcs’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:160:11:
σφάλμα: ‘::swprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:162:11:
σφάλμα: ‘::swscanf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:164:11:
σφάλμα: ‘::vfwprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:169:11:
σφάλμα: ‘::vswprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:174:11:
σφάλμα: ‘::vwprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:178:11:
σφάλμα: ‘::wcrtomb’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:189:11:
σφάλμα: ‘::wcsrtombs’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:199:11:
σφάλμα: ‘::wctob’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:200:11:
σφάλμα: ‘::wmemcmp’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:201:11:
σφάλμα: ‘::wmemcpy’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:202:11:
σφάλμα: ‘::wmemmove’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:203:11:
σφάλμα: ‘::wmemset’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:204:11:
σφάλμα: ‘::wprintf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:205:11:
σφάλμα: ‘::wscanf’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:209:11:
σφάλμα: ‘::wcsstr’ has not been declared
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/cwchar:210:11:
σφάλμα: ‘::wmemchr’ has not been declared
In file included from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ios:41:0,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/ostream:40,
                 from
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/iostream:40,
                 from xx.cpp:2:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:
In static member function ‘static int
std::char_traits<wchar_t>::compare(const char_type*, const char_type*,
std::size_t)’:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:328:39:
σφάλμα: ‘wmemcmp’ was not declared in this scope
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:
In static member function ‘static const char_type*
std::char_traits<wchar_t>::find(const char_type*, std::size_t, const
char_type&)’:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:336:37:
σφάλμα: ‘wmemchr’ was not declared in this scope
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:
In static member function ‘static std::char_traits<wchar_t>::char_type*
std::char_traits<wchar_t>::move(std::char_traits<wchar_t>::char_type*,
const char_type*, std::size_t)’:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:340:40:
σφάλμα: ‘wmemmove’ was not declared in this scope
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:
In static member function ‘static std::char_traits<wchar_t>::char_type*
std::char_traits<wchar_t>::copy(std::char_traits<wchar_t>::char_type*,
const char_type*, std::size_t)’:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:344:39:
σφάλμα: ‘wmemcpy’ was not declared in this scope
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:
In static member function ‘static std::char_traits<wchar_t>::char_type*
std::char_traits<wchar_t>::assign(std::char_traits<wchar_t>::char_type*,
std::size_t, std::char_traits<wchar_t>::char_type)’:
/usr/lib/gcc/i386-pc-solaris2.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:348:37:
σφάλμα: ‘wmemset’ was not declared in this scope

Removing the #define solves the problem.


-- 
Apostolos Syropoulos
Xanthi, GREECE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20130331/d67b46fd/attachment.html>


More information about the tlbuild mailing list