|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43040 redeclaration of bc_rt_warn and bc_rt_error
Submitted: 2007-10-19 14:52 UTC Modified: 2007-10-20 15:08 UTC
From: mamfelt at acm dot org Assigned:
Status: Not a bug Package: BC math related
PHP Version: 5.2.4 OS: AIX 5.3 TL06
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 45 = ?
Subscribe to this entry?

 [2007-10-19 14:52 UTC] mamfelt at acm dot org
Build of php stops with compile of rt.c due to redeclaration of:
bc_rt_warn and bc_rt_error

This error also occurs with PHP 4.4.7.

Bug report 43000 got put up as bogus, rather than changing topic to BC math related.

If there is a different area to be posting this - PLEASE excuse my ignorance. I have tried finding something of "bcmath maintainers" but just get bug report 43000 as first hit, and little else I can make sense of.

Seeing that this error is also occurring in 4.4.7 I am hoping PHP has a some interest in assisting in it's resolution.

Reproduce code:
        /bin/sh /home/michael/prj/php-5.2.4/libtool --silent
--preserve-dup-deps --mode=compile cc
-I/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src -Iext/bcmath/
-I/home/michael/prj/php-5.2.4/ext/bcmath/ -DPHP_ATOM_INC
-I/home/michael/prj/php-5.2.4/include -I/home/michael/prj/php-5.2.4/main
-I/home/michael/prj/php-5.2.4 -I/usr/local/include/libxml2
-I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/mysql/include
-I/home/michael/prj/php-5.2.4/TSRM -I/home/michael/prj/php-5.2.4/Zend   
-I/usr/include -g  -c
/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src/rt.c -o
"/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src/rt.c", line 42.6:
1506-343 (S) Redeclaration of bc_rt_warn differs from previous
declaration on line 155 of
"/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src/rt.c", line 42.6:
1506-378 (I) Prototype for function bc_rt_warn cannot contain "..." when
mixed with a nonprototype declaration.
"/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src/rt.c", line 55.6:
1506-343 (S) Redeclaration of bc_rt_error differs from previous
declaration on line 156 of
"/home/michael/prj/php-5.2.4/ext/bcmath/libbcmath/src/rt.c", line 55.6:
1506-378 (I) Prototype for function bc_rt_error cannot contain "..."
when mixed with a nonprototype declaration.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-20 15:08 UTC]
It's inside bcmath library unfortunately we can't do much to fix it.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Apr 01 21:03:46 2023 UTC