php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59219 configure script fails to detect pslib
Submitted: 2010-05-17 21:55 UTC Modified: 2021-06-13 04:22 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: shiningarcanine at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: ps (PECL)
PHP Version: 5.2.13 OS: Gentoo Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-05-17 21:55 UTC] shiningarcanine at gmail dot com
Description:
------------
pslib 0.4.1 is installed on my system, but for some reason, 
the pecl-ps configure script fails to detect it. I examined 
it manually, but I am not particularly fluent in bash 
scripts so I was not able to understand why it was failing. 
I was able to isolate the if statement that was causing this 
to fail by evaluating to false, so I wrote a hack that 
forced it to evaluate to true, which enables the package to 
be built and installed without issues.

The issue is present in both pecl-ps 1.3.5 and pecl-ps 
1.3.6. The patch that applies that hack works around the 
issue on both versions.

I filed a bug report regarding this at the Gentoo Linux Bug 
Tracker, but so far the package maintainer has not responded 
to it, assuming there is one. I thought I would take the 
initiative by asking the upstream developers why this is 
happening so that a proper fix can be made to resolve this.

Here is a link to the bug at Gentoo's bug tracker:

http://bugs.gentoo.org/show_bug.cgi?id=320083

Actual result:
--------------
# emerge -1 =dev-php5/pecl-ps-1.3.5
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-php5/pecl-ps-1.3.5
 * ps-1.3.5.tgz RMD160 SHA1 SHA256 size ;-) ...                                
                     [ ok ]
 * checking ebuild checksums ;-) ...                                           
                     [ ok ]
 * checking auxfile checksums ;-) ...                                          
                     [ ok ]
 * checking miscfile checksums ;-) ...                                         
                     [ ok ]
 * CPV:  dev-php5/pecl-ps-1.3.5
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking ps-1.3.5.tgz to /var/tmp/portage/dev-
php5/pecl-ps-1.3.5/work
 * 
 * Using dev-lang/php-5.2.13
 * 
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; 
ignoring.
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; 
ignoring.
 * Running eautoreconf in
'/var/tmp/portage/dev-php5/pecl-ps-1.3.5/work/ps-1.3.5' ...
 * Running aclocal ...                                                         
                      [ ok ]
 * Running libtoolize --copy --force --install ...                             
                      [ ok ]
 * Running aclocal ...                                                         
                      [ ok ]
 * Running autoconf ...                                                        
                      [ ok ]
 * Running autoheader ...                                                      
                      [ ok ]
 * Running elibtoolize in: ps-1.3.5
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source unpacked in /var/tmp/portage/dev-php5/pecl-ps-
1.3.5/work
>>> Compiling source in /var/tmp/portage/dev-php5/pecl-ps-
1.3.5/work/ps-1.3.5 ...
 * 
 * Using dev-lang/php-5.2.13
 * 
 * 
 * Using dev-lang/php-5.2.13
 * 
 * 
 * Using dev-lang/php-5.2.13
 * 
 * econf: updating ps-1.3.5/config.guess with 
/usr/share/gnuconfig/config.guess
 * econf: updating ps-1.3.5/config.sub with 
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --
host=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --
datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --
prefix=/usr/lib/php5
--with-php-config=/usr/lib/php5/bin/php-config
checking for grep that handles long lines and -e... 
/bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for i686-pc-linux-gnu-cc... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO 
C89... none needed
checking how to run the C preprocessor... i686-pc-linux-gnu-
gcc -E
checking for icc... no
checking for suncc... no
checking whether i686-pc-linux-gnu-gcc and cc understand -c 
and -o together...
yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/lib/php5
checking for PHP includes... -I/usr/lib/php5/include/php
-I/usr/lib/php5/include/php/main -
I/usr/lib/php5/include/php/TSRM
-I/usr/lib/php5/include/php/Zend -
I/usr/lib/php5/include/php/ext
-I/usr/lib/php5/include/php/ext/date/lib
checking for PHP extension directory...
/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613
checking for PHP installed headers prefix... 
/usr/lib/php5/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if 
you want to
regenerate PHP parsers.
checking for gawk... gawk
checking for ps support... yes, shared
checking for ps files in default path... found in /usr
checking for PS_begin_pattern in -lps... no
configure: error: wrong pslib lib version or lib not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-php5/pecl-ps-1.3.5/work/ps-
1.3.5/config.log
 * ERROR: dev-php5/pecl-ps-1.3.5 failed:
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3957:  Called php-ext-pecl-
r1_src_compile
 *   environment, line 3174:  Called php-ext-source-
r1_src_compile
 *   environment, line 3205:  Called econf '--
prefix=/usr/lib/php5'
'--with-php-config=/usr/lib/php5/bin/php-config'
 *     ebuild.sh, line  544:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info
=dev-php5/pecl-ps-1.3.5',
 * the complete build log and the output of 'emerge -pqv
=dev-php5/pecl-ps-1.3.5'.
 * The complete build log is located at
'/var/tmp/portage/dev-php5/pecl-ps-1.3.5/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-php5/pecl-ps-1.3.5/temp/environment'.
 * S: '/var/tmp/portage/dev-php5/pecl-ps-1.3.5/work/ps-
1.3.5'

>>> Failed to emerge dev-php5/pecl-ps-1.3.5, Log file:

>>>  '/var/tmp/portage/dev-php5/pecl-ps-
1.3.5/temp/build.log'

 * Messages for package dev-php5/pecl-ps-1.3.5:

 * ERROR: dev-php5/pecl-ps-1.3.5 failed:
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3957:  Called php-ext-pecl-
r1_src_compile
 *   environment, line 3174:  Called php-ext-source-
r1_src_compile
 *   environment, line 3205:  Called econf '--
prefix=/usr/lib/php5'
'--with-php-config=/usr/lib/php5/bin/php-config'
 *     ebuild.sh, line  544:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info
=dev-php5/pecl-ps-1.3.5',
 * the complete build log and the output of 'emerge -pqv
=dev-php5/pecl-ps-1.3.5'.
 * The complete build log is located at
'/var/tmp/portage/dev-php5/pecl-ps-1.3.5/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-php5/pecl-ps-1.3.5/temp/environment'.
 * S: '/var/tmp/portage/dev-php5/pecl-ps-1.3.5/work/ps-
1.3.5'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-31 15:14 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-05-31 15:14 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1] and latest ps (1.4.1)?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-13 04:22 UTC] pecl-dev at lists dot php dot 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 "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 03:03:43 2022 UTC