php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23134 make gives error: No include path in which to find math.h
Submitted: 2003-04-09 10:26 UTC Modified: 2003-04-24 06:48 UTC
From: mkoopman at csc dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: solaris 7
Private report: No CVE-ID: None
 [2003-04-09 10:26 UTC] mkoopman at csc dot com
I am installing php 4.3.1 using ./configure --with-oci8=/opt/oracle
--with-nsapi=/usr/netscape/server4 --enable-libgcc --with-regex=php

but when I do the make I get an error:
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include
/math.h:5,                                                                      
                 from /export/home/php/php-4.3.1/Zend/../main/php_config.h:2443,
                 from /export/home/php/php-4.3.1/Zend/zend_config.h:1,          
                 from /export/home/php/php-4.3.1/Zend/zend.h:52,                
                 from /export/home/php/php-4.3.1/main/php.h:34,                 
                 from /export/home/php/php-4.3.1/ext/ctype/ctype.c:23:          
/usr/include/math.h:5: No include path in which to find math.h                  
make: *** [ext/ctype/ctype.lo] Error 1           

this is after putting a link in /usr/include. This is similiar to bug 8158 but there was no reolution for this. 

Any help would be most appreciated.

cheers
Menno                              .

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-09 10:29 UTC] mkoopman at csc dot com
my apologies the OS is Solaris 7
 [2003-04-16 08:15 UTC] mkoopman at csc dot com
I have tried the CVS version provided and get the following error when trying a make:

In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include
/math.h:5,                                                                      
                 from /export/home/php/php4-STABLE-200304110730/Zend/../main/php
_config.h:2506,                                                                 
                 from /export/home/php/php4-STABLE-200304110730/Zend/zend_config
.h:1,                                                                           
                 from /export/home/php/php4-STABLE-200304110730/Zend/zend.h:52, 
                 from /export/home/php/php4-STABLE-200304110730/main/php.h:34,  
                 from /export/home/php/php4-STABLE-200304110730/ext/ctype/ctype.
c:23:                                                                           
/usr/include/math.h:5: No include path in which to find math.h                  
make: *** [ext/ctype/ctype.lo] Error 1
 [2003-04-23 03:49 UTC] sniper@php.net
Ah..this is not PHP bug. There's obviously something really 
wrong with your system if math.h can't be found.

 [2003-04-24 06:48 UTC] mkoopman at csc dot com
It is a bit weird but the math.h file just calls itself on line 5 (which is where the error is)as far as I can see and there is a copy in /usr/lib/include so i`m a bit confused.

#ifndef _MATH_H_WRAPPER            
#ifdef __cplusplus                 
# define exception __math_exception
#endif                             
#include_next <math.h>             
#ifdef __cplusplus                 
# undef exception                  
#endif                             
#define _MATH_H_WRAPPER            
#endif /* _MATH_H_WRAPPER */       

Any help would be much appreciated.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 18:00:01 2026 UTC