php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37651 buildconf fails with error code 1
Submitted: 2006-05-31 13:08 UTC Modified: 2006-06-01 10:48 UTC
From: ktrinczek at bfs dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5CVS-2006-05-31 (snap) OS: Solaris 10
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: ktrinczek at bfs dot de
New email:
PHP Version: OS:

 

 [2006-05-31 13:08 UTC] ktrinczek at bfs dot de
Description:
------------
I have an Solaris 10 on an 64-bit Sparc-system.
I have to install PHP with support for mysql, ldap, ... and pdf.
I had successfully installed PHP5.0.4, but the libpdf_php.so for the PDFsupport wasn't recognized. I think that was because the library for the 32-bit system.
That's why I have to do buildconf (instructions from PDFlib).
But something is wrong.


Reproduce code:
---------------
root@server003 # ./buildconf --force
Forcing buildconf
using default Zend directory
make: Fatal error in reader: build/build2.mk, line 31: Badly formed macro assignment
Current working directory /tmp/php5.2-200605311030
*** Error code 1
The following command caused the error:
make -s -f build/build2.mk
make: Fatal error: Command failed for target `all'


Expected result:
----------------
Please help me.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-31 14:02 UTC] tony2001@php.net
Please install all the required GNU utils (GNU make, automake, autoconf etc.) and try again.
 [2006-06-01 08:37 UTC] ktrinczek at bfs dot de
There is installed :
autoconf-2.13
automake-1.8.3
make-3.80

but no other result.

root@server003 # ./buildconf --force
Forcing buildconf
using default Zend directory
make: Fatal error in reader: build/build2.mk, line 31: Badly formed macro assignment
Current working directory /tmp/php5.2-200605311030
*** Error code 1
The following command caused the error:
/usr/xpg4/bin/make -s -f build/build2.mk
make: Fatal error: Command failed for target `all'
 [2006-06-01 08:43 UTC] tony2001@php.net
Are you sure GNU make is used ?
What do you get with `make --version` ?
 [2006-06-01 08:48 UTC] ktrinczek at bfs dot de
I'm not sure. But I can't controll.

root@server003 # /usr/xpg4/bin/make --version
make: Warning: Ignoring DistributedMake -v option
make: Warning: Ignoring DistributedMake -o option
make: Fatal error: No dmake output dir argument after -o flag

root@server003 # /usr/ccs/bin/make --version
make: Warning: Ignoring DistributedMake -v option
make: Warning: Ignoring DistributedMake -o option
make: Fatal error: No dmake output dir argument after -o flag
 [2006-06-01 08:53 UTC] derick@php.net
PHP requires gnu make.
 [2006-06-01 10:48 UTC] ktrinczek at bfs dot de
That was it. BUILDCONF runs through.
But what's doing make here?

/bin/sh /tmp/php5.2-200605311030/libtool --silent --preserve-dup-deps --mode=compile gcc -I"/usr/local/include" -Iext/iconv/ -I/tmp/php5.2-200605311030/ext/iconv/ -DPHP_ATOM_INC -I/tmp/php5.2-200605311030/include -I/tmp/php5.2-200605311030/main -I/tmp/php5.2-200605311030 -I/usr/local/include/libxml2 -I/opt/csw/include -I/usr/local/include -I/tmp/php5.2-200605311030/ext/date/lib -I/tmp/php5.2-200605311030/ext/mbstring/oniguruma -I/tmp/php5.2-200605311030/ext/mbstring/libmbfl -I/tmp/php5.2-200605311030/ext/mbstring/libmbfl/mbfl -I/usr/sfw/include/mysql -I/tmp/php5.2-200605311030/TSRM -I/tmp/php5.2-200605311030/Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/usr/local/include -g -O2   -c /tmp/php5.2-200605311030/ext/iconv/iconv.c -o ext/iconv/iconv.lo
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `_php_iconv_appendl':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:254: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `php_iconv_string':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:414: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `_php_iconv_strlen':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:528: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `_php_iconv_substr':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:641: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `_php_iconv_strpos':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:772: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `_php_iconv_mime_encode':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:1021: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c:1121: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c: In function `php_iconv_stream_filter_append_bucket':
/tmp/php5.2-200605311030/ext/iconv/iconv.c:2379: warning: passing arg 2 of `libiconv' from incompatible pointer type
/tmp/php5.2-200605311030/ext/iconv/iconv.c:2458: warning: passing arg 2 of `libiconv' from incompatible pointer type
/bin/sh /tmp/php5.2-200605311030/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/ldap/ -I/tmp/php5.2-200605311030/ext/ldap/ -DPHP_ATOM_INC -I/tmp/php5.2-200605311030/include -I/tmp/php5.2-200605311030/main -I/tmp/php5.2-200605311030 -I/usr/local/include/libxml2 -I/opt/csw/include -I/usr/local/include -I/tmp/php5.2-200605311030/ext/date/lib -I/tmp/php5.2-200605311030/ext/mbstring/oniguruma -I/tmp/php5.2-200605311030/ext/mbstring/libmbfl -I/tmp/php5.2-200605311030/ext/mbstring/libmbfl/mbfl -I/usr/sfw/include/mysql -I/tmp/php5.2-200605311030/TSRM -I/tmp/php5.2-200605311030/Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/usr/local/include -g -O2   -c /tmp/php5.2-200605311030/ext/ldap/ldap.c -o ext/ldap/ldap.lo
/tmp/php5.2-200605311030/ext/ldap/ldap.c: In function `_php_sasl_setdefs':
/tmp/php5.2-200605311030/ext/ldap/ldap.c:506: warning: assignment makes pointer from integer without a cast
/tmp/php5.2-200605311030/ext/ldap/ldap.c:507: warning: pointer/integer type mismatch in conditional expression
/tmp/php5.2-200605311030/ext/ldap/ldap.c:508: warning: pointer/integer type mismatch in conditional expression
/tmp/php5.2-200605311030/ext/ldap/ldap.c:509: warning: pointer/integer type mismatch in conditional expression
/tmp/php5.2-200605311030/ext/ldap/ldap.c:510: warning: pointer/integer type mismatch in conditional expression
/tmp/php5.2-200605311030/ext/ldap/ldap.c:511: warning: pointer/integer type mismatch in conditional expression
/tmp/php5.2-200605311030/ext/ldap/ldap.c: In function `zif_ldap_sasl_bind':
/tmp/php5.2-200605311030/ext/ldap/ldap.c:603: error: `LDAP_SASL_QUIET' undeclared (first use in this function)
/tmp/php5.2-200605311030/ext/ldap/ldap.c:603: error: (Each undeclared identifier is reported only once
/tmp/php5.2-200605311030/ext/ldap/ldap.c:603: error: for each function it appears in.)
make: *** [ext/ldap/ldap.lo] Error 1

Following configure was running through.

root@server003 # ./configure --with-apxs2=/usr/apache2/bin/apxs --enable-fastcgi --with-openssl=/opt/csw --enable-bcmath --enable-calendar --with-curl=/usr/local/bin/curl --with-curlwrappers --enable-dba --with-db4=/opt/csw/bdb4 --with-inifile --with-flatfile --enable-dio --enable-filepro --enable-ftp --with-ldap=/opt/csw --enable-mbstring --with-mysql=/usr/sfw --with-xsl=/usr/lib --enable-wddx --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets --with-zlib --with-bz2=/usr/bin --enable-exif --with-gd --with-gettext --with-ldap-sasl=/opt/csw --with-mime-magic --with-libxml-dir=/usr/include/libxml2 --with-pdflib=/tmp/PDFlib-6.0.3-SunOS-sparc64/bind/c
 [2010-11-18 19:28 UTC] mike at harschsystems dot com
buildconf expects the gnu version of the 'find' command - which accepts the -not 
flag.  The root user on solaris (by default) doesn't have gfind in it's PATH:

# which find
/usr/bin/find

whereas (at least on modern solaris distributions), regular users have gfind in 
their path by default:

$ which find
/usr/gnu/bin/find
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 21:01:33 2025 UTC