php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8158 unable to find math.h when doing a make
Submitted: 2000-12-07 09:32 UTC Modified: 2001-03-09 20:54 UTC
From: kim at lmc dot cc dot mi dot us Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.3pl1 OS: Solaris 2.7
Private report: No CVE-ID: None
 [2000-12-07 09:32 UTC] kim at lmc dot cc dot mi dot us
When trying to do a make after compiling, I get the following error message :
Making all in Zend
make[1]: Entering directory `/temp/php-4.0.3pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -D
_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21  -g -O2 -c zend-scanner.c
In file included from ../math.h:5,
                 from ../php_config.h:1692,
                 from zend_config.h:1,
                 from zend.h:43,
                 from zend-scanner.c:2620:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/include/math.h:5: math.h: No such file or directory
make[1]: *** [zend-scanner.lo] Error 1
make[1]: Leaving directory `/temp/php-4.0.3pl1/Zend'
make: *** [all-recursive] Error 1

So then I created a soft link to this file in /usr/include/, and get the following :

Making all in Zend
make[1]: Entering directory `/temp/php-4.0.3pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -D
_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21  -g -O2 -c zend-scanner.c
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95/include/m
ath.h:5,
                 from ../math.h:5,
                 from ../php_config.h:1692,
                 from zend_config.h:1,
                 from zend.h:43,
                 from zend-scanner.c:2620:
/usr/include/math.h:5: No include path in which to find math.h
make[1]: *** [zend-scanner.lo] Error 1
make[1]: Leaving directory `/temp/php-4.0.3pl1/Zend'
make: *** [all-recursive] Error 1

   Which looks like it can't find the math.h file in the gcc-lib/include directory - but the file is in the directory where it is looking?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-07 18:59 UTC] sniper@php.net
Please try latest snapshot from http://snaps.php.net/
And if it still doesn't work, please add your configure line into this bug report too.

--Jani
 [2000-12-11 11:20 UTC] kim at lmc dot cc dot mi dot us
Okay, I downloaded and configured the php-4.200012080445 build, and got the same error. It looks like it's related to how the OS and gcc compiler is set up (I'm still trying to bring myself up to speed on Solaris :) )?  I'm configuring the package via ./configure --with-mysql --with-apxs (trying to create dynamic module for apache) - do I need to specify the location of the math.h file?


 [2000-12-11 13:31 UTC] kim at lmc dot cc dot mi dot us
Okay, I downloaded and configured the php-4.200012080445 build, and got the same error. It looks like it's related to how the OS and gcc compiler is set up (I'm still trying to bring myself up to speed on Solaris :) )?  I'm configuring the package via ./configure --with-mysql --with-apxs (trying to create dynamic module for apache) - do I need to specify the location of the math.h file?


 [2001-01-04 13:09 UTC] sniper@php.net
What was the configure line used? 
Have you tried PHP 4.0.4?
And I think this is more like problem with your system 
than with PHP.

--Jani
 [2001-03-09 20:54 UTC] sniper@php.net
No feedback.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC