Project

General

Profile

Bug #6224

conflict definitions in locale.h

Added by Igor Kozhukhov about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-09-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

libtool: compile:  /ec/bin/g++ -DHAVE_CONFIG_H -I. -I/myshare/builds7/ec/ec-userland/components/xapian/bindings-php54/source/xapian-bindings-1.2.15/php -I.. -I/ec/lib/php/5.4/include/php -I/ec/lib/php/5.4/include/php/main -I/ec/lib/php/5.4/include/php/TSRM -I/ec/lib/php/5.4/include/php/Zend -I/ec/lib/php/5.4/include/php/ext -I/ec/lib/php/5.4/include/php/ext/date/lib -I/ec/include -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/ec/include -DSWIG_ZEND_ERROR_NORETURN=zend_error -I/ec/include -m32 -O3 -march=i686 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c /myshare/builds7/ec/ec-userland/components/xapian/bindings-php54/source/xapian-bindings-1.2.15/php/php5/xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
In file included from /ec/gcc/4.8/include/c++/4.8.5/clocale:42:0,
                 from /ec/gcc/4.8/include/c++/4.8.5/i386-pc-solaris2.11/bits/c++locale.h:41,
                 from /ec/gcc/4.8/include/c++/4.8.5/bits/localefwd.h:40,
                 from /ec/gcc/4.8/include/c++/4.8.5/string:43,
                 from /myshare/builds7/ec/ec-userland/components/xapian/bindings-php54/source/xapian-bindings-1.2.15/php/php5/xapian_wrap.cc:1177:
/usr/include/locale.h:53:12: error: ‘lconv’ is already declared in this scope
 using std::lconv;
            ^

looking to /ec/gcc/4.8/include/c++/4.8.5/clocale:

//
// ISO C++ 14882: 18.2.2  Implementation properties: C library
//

#pragma GCC system_header

#include <bits/c++config.h>
#include <locale.h>

#ifndef _GLIBCXX_CLOCALE
#define _GLIBCXX_CLOCALE 1

// Get rid of those macros defined in <locale.h> in lieu of real functions.
#undef setlocale
#undef localeconv

namespace std
{
  using ::lconv;
  using ::setlocale;
  using ::localeconv;
} // namespace std

#endif

as you can see - we have defined the same variables in illumos local.h:

namespace std
{
  using ::lconv;
  using ::setlocale;
  using ::localeconv;
} // namespace std

History

#1

Updated by Igor Kozhukhov about 4 years ago

  • Status changed from New to Rejected

it is another conflict with xapian headers

Also available in: Atom PDF