Package: bison
Version: 1:2.1-0.2
Severity: normal

This error appeared recently and prevents the compilation of parsers 
written in C++. Not sure if it is actually caused by Bison or GCC or the 
libc, but Bison should perhaps try not to define these symbols on its 
own.

parser/parser.cpp:259: error: declaration of 'void* malloc(unsigned int)' 
throws different exceptions
/usr/include/stdlib.h:584: error: than previous declaration 'void* 
malloc(unsigned int) throw ()'
parser/parser.cpp:266: error: declaration of 'void free(void*)' throws 
different exceptions
/usr/include/stdlib.h:597: error: than previous declaration 'void free(void*) 
throw ()'

Defining the YYINCLUDED_STDLIB_H macro in user code works around this 
issue. Another solution would be to define YYMALLOC as malloc, but this 
seems just wrong to have to do it when using the standard malloc.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages bison depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  m4                            1.4.4-1    a macro processing language

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to