php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52601 make fails with error: conflicting types for 'int8_t'
Submitted: 2010-08-13 18:25 UTC Modified: 2011-07-07 15:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gwolanin at gmail dot com Assigned: iliaa (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.2.14 OS: Solaris 2.8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gwolanin at gmail dot com
New email:
PHP Version: OS:

 

 [2010-08-13 18:25 UTC] gwolanin at gmail dot com
Description:
------------
PHP v5.2.14
Solaris 2.8 (sparc)


./configure  \
--prefix=/opt/php-5.2.14 \
--with-mysql=/opt/mysql \
--with-mysql-sock=/tmp \
--with-apxs2=/opt/httpd-2.2.16/bin/apxs \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/share/src/libpng-1.2.1 \
--with-gd \
--with-ttf \
--with-freetype-dir=/usr/local/lib \
--with-curl=/usr/local/bin \
--with-xsl \
--enable-cli \
--enable-ftp \
--enable-zip \
--with-ldap=/opt/ldap \
--with-zlib

....
....

In file included from /usr/share/src/php-5.2.14/ext/pcre/pcrelib/pcre_internal.h:198,
                 from /usr/share/src/php-5.2.14/ext/pcre/pcrelib/pcre_chartables.c:25:
/usr/include/stdint.h:41: error: conflicting types for 'int8_t'
/usr/include/sys/int_types.h:62: error: previous declaration of 'int8_t' was here
/usr/include/stdint.h:42: error: conflicting types for 'int_least8_t'
/usr/include/sys/int_types.h:119: error: previous declaration of 'int_least8_t' was here
make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-14 00:50 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2010-08-14 00:50 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2010-08-14 00:53 UTC] felipe@php.net
This must be fixed by the fix for bug #52436
Could you check it? :) (trying the snapshot)

Thanks.
 [2010-08-20 20:46 UTC] gwolanin at gmail dot com
-Status: Feedback +Status: Open
 [2010-08-20 20:46 UTC] gwolanin at gmail dot com
Sorry for the late response.  I have d/l and tried to compile with the 'latest' and I get the same error.
 [2010-08-20 20:49 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: iliaa
 [2010-08-24 20:49 UTC] gwolanin at gmail dot com
I was unable to post the full configure results here.  I just downloaded 5.3.3 to compile.  I removed the --with-xsl from my previous configure command, I figured I didn't need it:

#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/opt/php-5.3.3' \
'--with-mysql=/opt/mysql' \
'--with-mysql-sock=/tmp' \
'--with-pdo-mysql=/opt/mysql' \
'--with-apxs2=/opt/httpd-2.2.16/bin/apxs' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/share/src/libpng-1.2.1' \
'--with-gd' \
'--with-freetype-dir=/usr/local/lib' \
'--with-curl=/usr/local/bin' \
'--enable-cli' \
'--enable-ftp' \
'--enable-zip' \
'--with-ldap=/opt/ldap' \
'--with-zlib' \
"$@"
~
~
~
~
~
~
~
~
~
~
"config.nice" 21 lines, 472 characters 

andromeda:/usr/share/src/php-5.3.3:>>> make
/bin/sh /usr/share/src/php-5.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/share/src/php-5.3.3/ext/pcre/pcrelib -Iext/pcre/ -I/usr/share/src/php-5.3.3/ext/pcre/ -DPHP_ATOM_INC -I/usr/share/src/php-5.3.3/include -I/usr/share/src/php-5.3.3/main -I/usr/share/src/php-5.3.3 -I/usr/share/src/php-5.3.3/ext/date/lib -I/usr/share/src/php-5.3.3/ext/ereg/regex -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/ldap/include -I/opt/mysql/include/mysql -I/usr/share/src/php-5.3.3/ext/sqlite3/libsqlite -I/usr/share/src/php-5.3.3/TSRM -I/usr/share/src/php-5.3.3/Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/usr/local/include -g -O2   -c /usr/share/src/php-5.3.3/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo 
In file included from /usr/share/src/php-5.3.3/ext/pcre/pcrelib/pcre_internal.h:197,
                 from /usr/share/src/php-5.3.3/ext/pcre/pcrelib/pcre_chartables.c:25:
/usr/include/stdint.h:41: error: conflicting types for 'int8_t'
/usr/include/sys/int_types.h:62: error: previous declaration of 'int8_t' was here
/usr/include/stdint.h:42: error: conflicting types for 'int_least8_t'
/usr/include/sys/int_types.h:119: error: previous declaration of 'int_least8_t' was here
make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1
andromeda:/usr/share/src/php-5.3.3:>>>
 [2010-12-13 17:26 UTC] iliaa@php.net
-Status: Assigned +Status: Feedback
 [2010-12-13 17:26 UTC] iliaa@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2011-06-01 12:01 UTC] iliaa@php.net
-Status: Feedback +Status: No Feedback
 [2011-06-01 12:01 UTC] iliaa@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2011-07-07 15:02 UTC] gwolanin at gmail dot com
-Status: No Feedback +Status: Closed
 [2011-07-07 15:02 UTC] gwolanin at gmail dot com
Sorry it took a while to retry this.

I am still getting this error with php 5.3.6

I have removed and updated pcre and perl from SunFreeware.com.  make stops at the same spot.

So I edited ext/pcre/pcrelib/pcre_internal.h
On line 198, I commented out #include <stdint.h>, compiles fine now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 22:01:35 2025 UTC