#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):

 on irc NotFound++ stated that there were a lot of problems with strchr in
 C++.  I searched for g++ and strchr and found quite a few entries - I
 found some information on launchpad that might be relevant.

 In [https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/412933] I found
 the following comment
 {{{
 Matthias Klose  wrote on 2009-08-13:
 this is unrelated to GCC, but is seen with glibc-2.10; see a diff of the
 preprocessed file (built with libc6-dev 2.9, vs built with 2.10.1)

 -extern char *strchr (__const char *__s, int __c)
 - throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

 -extern char *strrchr (__const char *__s, int __c)
 - throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
 +extern "C++"
 +{
 +extern char *strchr (char *__s, int __c)
 + throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__
 ((__nonnull__ (1)));
 +extern __const char *strchr (__const char *__s, int __c)
 + throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__
 ((__nonnull__ (1)));
 +
 +
 +extern __inline __attribute__ ((__always_inline__)) __attribute__
 ((__gnu_inline__, __artificial__)) char *
 +strchr (char *__s, int __c) throw ()
 +{
 + return __builtin_strchr (__s, __c);
 +}

 +extern __inline __attribute__ ((__always_inline__)) __attribute__
 ((__gnu_inline__, __artificial__)) __const char *
 +strchr (__const char *__s, int __c) throw ()
 +{
 + return __builtin_strchr (__s, __c);
 +}

 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1110#comment:3>
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