ID:               40474
 User updated by:  zesigur at free dot fr
 Reported By:      zesigur at free dot fr
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Redhat 7.3 (2.4.29)
 PHP Version:      5.2.1
 New Comment:

I have some Warnings but no errors : 

root : h195-114 - /var/tmp/apache_1.3.34/php5.2-200702141130>
USE_ZEND_ALLOC=0 valgrind --tool=memcheck ./sapi/cli/php -n
-dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir=
-derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0
pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b
"/usr/local/bin"
==19100== Memcheck, a memory error detector.
==19100== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==19100== Using LibVEX rev 1732, a library for dynamic binary
translation.
==19100== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==19100== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==19100== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==19100== For more details, rerun with: -v
==19100== 
Warning: Cannot use a scalar value as an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 720

Warning: Cannot use a scalar value as an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 720

Warning: Cannot use a scalar value as an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 740

Warning: Invalid argument supplied for foreach() in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1207

Notice: Undefined variable: ret in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1269

Warning: Invalid argument supplied for foreach() in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1207

Notice: Undefined variable: ret in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1269

Warning: Cannot use a scalar value as an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 757

Warning: array_merge(): Argument #2 is not an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 766

Notice: Undefined index:  pearinstaller in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 777

Warning: Cannot use a scalar value as an array in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 720

Warning: Invalid argument supplied for foreach() in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1207

Notice: Undefined variable: ret in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Generator/v1.php on
line 1269
[PEAR] Console_Getopt: upgrade to a newer version (1.2.1 is not newer
than 1.2.1)
[PEAR] Archive_Tar: upgrade to a newer version (1.3.2 is not newer than
1.3.2)
[PEAR] Structures_Graph: upgrade to a newer version (1.0.2 is not newer
than 1.0.2)

[PEAR] PEAR: upgrade to a newer version (1.5.0 is not newer than
1.5.0)
==19100== 
==19100== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 65 from
2)
==19100== malloc/free: in use at exit: 4,033 bytes in 102 blocks.
==19100== malloc/free: 1,667,468 allocs, 1,667,366 frees, 1,691,171,570
bytes allocated.
==19100== For counts of detected errors, rerun with: -v
==19100== searching for pointers to 102 not-freed blocks.
==19100== checked 2,046,164 bytes.
==19100== 
==19100== LEAK SUMMARY:
==19100==    definitely lost: 0 bytes in 0 blocks.
==19100==      possibly lost: 0 bytes in 0 blocks.
==19100==    still reachable: 4,033 bytes in 102 blocks.
==19100==         suppressed: 0 bytes in 0 blocks.
==19100== Rerun with --leak-check=full to see details of leaked memory.


Previous Comments:
------------------------------------------------------------------------

[2007-02-14 16:39:34] [EMAIL PROTECTED]

Could you try to run it with valgrind and see if there are any errors?
Try this command:
USE_ZEND_ALLOC=0 valgrind --tool=memcheck ./sapi/cli/php -n
-dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir=
-derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0
pear/install-pear-nozlib.phar -d "/usr/local/lib/php" -b
"/usr/local/bin"

You should not see any errors except maybe for some OpenSSL warnings,
which we obviously can't fix..

------------------------------------------------------------------------

[2007-02-14 16:13:56] zesigur at free dot fr

strange...
With the last snapshot :
without CLAGS, enable inline optimization and this : 
./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../ \
--with-config-file-path=/servers/apache/conf \
--enable-track-vars \
--enable-safe-mode \
--with-gd=/usr/local/gd \
--with-ttf \
--with-jpeg \
--with-jpeg-dir \
--with-png \
--with-mm \
--with-gnu-ld \
--with-gettext \
--enable-mbstring \
--with-curl=/usr/local/curl \
--with-zlib \
--enable-bcmath \
--enable-memory-limit \
--enable-libxml \
--with-libxml-dir=/usr/local/libxml2 \
--with-freetype-dir=/usr/local/freetype \
--with-mysql=/usr/include/mysql \
--with-imap \
--with-kerberos \
--with-imap-ssl

It fails with the same error.
If I just add : --enable-debug, it works......
make install
Installing PHP SAPI module:       apache
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/man/man1/
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/
--17:10:48--  http://pear.php.net/install-pear-nozlib.phar
           => `pear/install-pear-nozlib.phar'
Résolution de pear.php.net... 216.92.131.66
Connexion vers pear.php.net[216.92.131.66]:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 3,551,864 [text/plain]

100%[=======================================================>]
3,551,864    191.96K/s    ETA 00:00

17:11:17 (118.68 KB/s) - « pear/install-pear-nozlib.phar » sauvegardé
[3551864/3551864]

[PEAR] Console_Getopt - already installed: 1.2.1
[PEAR] Archive_Tar    - already installed: 1.3.2
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR] PEAR           - already installed: 1.5.0
Wrote PEAR system config file at: /usr/etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
Installing PDO headers:          /usr/include/php/ext/pdo/

------------------------------------------------------------------------

[2007-02-14 15:34:03] [EMAIL PROTECTED]

No, please use the snapshot.

------------------------------------------------------------------------

[2007-02-14 15:25:18] zesigur at free dot fr

OK no problem to help you! I've tried with the original php-5.2.1
version. with that :

./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../ \
--with-config-file-path=/servers/apache/conf \
--enable-track-vars \
--enable-safe-mode \
--with-gd=/usr/local/gd \
--with-ttf \
--with-jpeg \
--with-jpeg-dir \
--with-png \
--with-mm \
--with-gnu-ld \
--with-gettext \
--enable-mbstring \
--with-curl=/usr/local/curl \
--with-zlib \
--enable-bcmath \
--enable-memory-limit \
--enable-libxml \
--with-libxml-dir=/usr/local/libxml2 \
--with-freetype-dir=/usr/local/freetype \
--with-mysql=/usr/include/mysql \
--with-imap \
--with-kerberos \
--with-imap-ssl

So, without the CFLAGS, and without --enable-inline-optimization . The
problem is the same.
Installing PEAR environment:      /usr/lib/php/
make[1]: *** [install-pear-installer] Erreur de segmentation
make: *** [install-pear] Erreur 2
You can tell me what to try next..

------------------------------------------------------------------------

[2007-02-14 14:42:56] [EMAIL PROTECTED]

Well, I would appreciate if you help us to find the roots of the
problem.
First of all, please remove all these custom CFLAGS and see if it works
without them.
Then remove --enable-inline-optimization and check it once again.
If that doesn't help, tell me. I'll show you what to do after that.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40474

-- 
Edit this bug report at http://bugs.php.net/?id=40474&edit=1

Reply via email to