#1110: parrot fails to build with g++ 4.4.1 on Ubuntu 9.10 beta amd64
--------------------+-------------------------------------------------------
 Reporter:  mikehh  |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  build   |     Version:  trunk
 Severity:  medium  |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------

Comment(by mikehh):

 I looked at the definition problem after the release version of Ubuntu
 9.10 amd64

 extract from /usr/include/string.h with Ubuntu 9.04 amd64
 {{{

 __BEGIN_NAMESPACE_STD
 /* Find the first occurrence of C in S.  */
 extern char *strchr (__const char *__s, int __c)
      __THROW __attribute_pure__ __nonnull ((1));

 }}}

 extract from /usr/include/string.h with Ubuntu 9.10 amd64
 {{{

 __BEGIN_NAMESPACE_STD
 /* Find the first occurrence of C in S.  */
 #ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
 extern "C++"
 {
 extern char *strchr (char *__s, int __c)
      __THROW __asm ("strchr") __attribute_pure__ __nonnull ((1));
 extern __const char *strchr (__const char *__s, int __c)
      __THROW __asm ("strchr") __attribute_pure__ __nonnull ((1));

 # ifdef __OPTIMIZE__
 __extern_always_inline char *
 strchr (char *__s, int __c) __THROW
 {
   return __builtin_strchr (__s, __c);
 }

 __extern_always_inline __const char *
 strchr (__const char *__s, int __c) __THROW
 {
   return __builtin_strchr (__s, __c);
 }
 # endif
 }
 #else
 extern char *strchr (__const char *__s, int __c)
      __THROW __attribute_pure__ __nonnull ((1));
 #endif

 }}}

 as far as gcc is concerned the definition is the same (the #else branch at
 the end) however the g++ definition is now different.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1110#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to