#1187: t/src/warnings fails test 2 on optimized build with Ubuntu 9.10 amd64
---------------------+------------------------------------------------------
 Reporter:  mikehh   |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  normal   |   Milestone:       
Component:  testing  |     Version:  trunk
 Severity:  medium   |    Keywords:       
     Lang:           |       Patch:       
 Platform:           |  
---------------------+------------------------------------------------------

Comment(by mikehh):

 chromatic commented via the mailing list which does not appear in the
 ticket (don't know why):

 This is because an optimized Parrot (built with -DNDEBUG) will not export
 the
 Parrot_pcc_warnings_on() symbol, thanks to a series of clever macro
 definitions
 in include/parrot/context.h:

        $ nm -g blib/lib/libparrot.so | grep Parrot_pcc_warnings

 We need to fix those macros so that the symbols always get exported but
 the
 Parrot core itself can use the quick accessors.

 -- c

 with a g++ build (with --optimize) at r42301, I get the following:
 {{{
 # t/src/warnings_2.c:14: error: invalid use of incomplete type ‘struct
 Parrot_Context_attributes’
 # ./include/parrot/context.h:34: error: forward declaration of ‘struct
 Parrot_Context_attributes’

 }}}

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