php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43000 compile problem with rt.c, function redeclarations cause halt
Submitted: 2007-10-16 20:29 UTC Modified: 2007-10-16 20:57 UTC
From: mamfelt at acm dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.4 OS: AIX 5.3 TL06
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mamfelt at acm dot org
New email:
PHP Version: OS:

 

 [2007-10-16 20:29 UTC] mamfelt at acm dot org
Description:
------------
 Build of php stops with compile of rt.c due to redeclaration of:
bc_rt_warn and bc_rt_error



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/home/michael/prj/php-5.2.4/ext/date/lib -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 ext/bcmath/libbcmath/src/rt.lo 
"/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/bcmath.h".
"/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/bcmath.h".
"/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.
make: 1254-004 The error code from the last command is 1.
Stop.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-16 20:57 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The problem is inside the bcmath library which is bundled by PHP so the bcmath maintainers should fix it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC