Skip Menu |

This queue is for tickets about the Lingua-Identify-CLD CPAN distribution.

Report information
The Basics
Id: 73740
Status: new
Priority: 0/
Queue: Lingua-Identify-CLD

Owner: Nobody in particular
Requestors: RURBAN [...]

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)

Subject: Sunpro patch (not working yet)
Download (untitled) / with headers
text/plain 642b
solaris sunpro cc is unsupported by cld-src. attached patch adds some support for these compilers (cc and CC). However ExtUtils::CBuilder does not support sunpro CC. A c++ rule using CC instead of cc is missing in ExtUtils::CBuilder::Platform::solaris So I'm giving up. With gcc on solaris I get different errors: /usr/local/bin/perl5.14.2d-nt-gcc Build.PL Can't locate Config/ in @INC (@INC contains: inc /usr/local/lib/perl5/site_perl/5.14.2/i86pc-solaris-debug /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/i86pc- solaris-debug /usr/local/lib/perl5/5.14.2 .) at inc/ line 7. -- Reini Urban
Subject: sunpro.patch
Download sunpro.patch
text/x-diff 1.3k
difforig diff -u ./cld-src/base/build_config.h.orig --- ./cld-src/base/build_config.h.orig Wed Jan 4 02:19:17 2012 +++ ./cld-src/base/build_config.h Wed Jan 4 02:41:11 2012 @@ -68,6 +68,8 @@ #define COMPILER_GCC 1 #elif defined(_MSC_VER) #define COMPILER_MSVC 1 +#elif defined(OS_SOLARIS) && (defined(__SUNPRO_C) || defined(__SUNPRO_CC)) +#define COMPILER_SUNPRO 1 #else #error Please add support for your compiler in build/build_config.h #endif @@ -76,11 +78,11 @@ // // // or with gcc, run: "echo | gcc -E -dM -" -#if defined(_M_X64) || defined(__x86_64__) +#if defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) #define ARCH_CPU_X86_FAMILY 1 #define ARCH_CPU_X86_64 1 #define ARCH_CPU_64_BITS 1 -#elif defined(_M_IX86) || defined(__i386__) +#elif defined(_M_IX86) || defined(__i386__) || defined(__i386) #define ARCH_CPU_X86_FAMILY 1 #define ARCH_CPU_X86 1 #define ARCH_CPU_32_BITS 1 @@ -108,6 +110,11 @@ // other projects using base who manage their own dependencies and make sure // short wchar works for them. #define WCHAR_T_IS_UTF16 +#elif defined(OS_SOLARIS) && defined(COMPILER_SUNPRO) +#ifndef __WCHAR_MAX__ +#define __WCHAR_MAX__ 0x7fff +#endif +#define WCHAR_T_IS_UTF16 #else #error Please add support for your compiler in build/build_config.h #endif

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to