Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320083 - dev-php5/pecl-ps-1.3.5 emerge fails to detect pslib
Summary: dev-php5/pecl-ps-1.3.5 emerge fails to detect pslib
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 01:59 UTC by Richard
Modified: 2010-08-09 15:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch that disables the check in the configure script (configure.patch,392 bytes, patch)
2010-05-17 02:03 UTC, Richard
Details | Diff
A modified ebuild that applies the patch. (pecl-ps-1.3.6.ebuild,624 bytes, text/plain)
2010-05-17 02:07 UTC, Richard
Details
A patch that disables the check in the configure script (pecl-ps-1.3.5-configure.patch,392 bytes, patch)
2010-05-18 01:29 UTC, Richard
Details | Diff
A modified ebuild that applies the patch. (pecl-ps-1.3.5.ebuild,590 bytes, text/plain)
2010-05-18 01:29 UTC, Richard
Details
An ebuild to make upstream happy (pecl-ps-1.3.6.ebuild,590 bytes, text/plain)
2010-05-18 01:57 UTC, Richard
Details
A patch that disables the check in the configure script (pecl-ps-1.3.6-configure.patch,392 bytes, patch)
2010-05-18 01:58 UTC, Richard
Details | Diff
An version bumped ebuild that has the problem - also something for upstream (pecl-ps-1.3.6.ebuild,515 bytes, text/plain)
2010-05-18 02:03 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2010-05-17 01:59:02 UTC
The configure script for dev-php5/pecl-ps fails to detect pslib, despite it being installed on the system. Modifying the ebuild to patch the configure script to ignore the check allows it to install without issue.

Reproducible: Always

Steps to Reproduce:
On my system, all I have to do is run "emerge -1 =dev-php5/pecl-ps-1.3.5".



Here is the console output from the installation.

# 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'

Here is emerge --info:

# emerge --info =dev-php5/pecl-ps-1.3.5
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33.4 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33.4-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 16 May 2010 19:55:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm berkdb bzip2 cdr cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr fftw fortran gd gdbm gif gnutls gpm hal iconv ipv6 java java6 jpeg kde lzma midi mmap mmx mng modules mp3 mudflap ncurses networkmanager nptl nptlonly nsplugin opengl openmp pam pcre perl png pppd python qt3 qt3support qt4 readline reflection samba session spl sqlite sse sse2 sse3 ssl svg sysfs tcpd threads tiff unicode vorbis x264 x86 xml xorg xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" NETBEANS_MODULES="*" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Richard 2010-05-17 02:03:03 UTC
Created attachment 231747 [details, diff]
A patch that disables the check in the configure script

This is the patch I used to disable the check in the configure script. It is a hack and it should not be included with portage. I am only attaching it because it shows exactly where in the configure script the pslib check is.

I have dev-libs/pslib-0.4.1-r1 installed on my system, so I do not see understand why it is failing to detect it. If I were more fluent in bash shell scripts, I would probably know why, but unfortunately I am not, so I am leaving that to someone more capable.
Comment 2 Richard 2010-05-17 02:07:36 UTC
Created attachment 231749 [details]
A modified ebuild that applies the patch.

During my troubleshooting, I did a version bump of pecl-ps to version 1.3.6 via a local overlay in the hope that the windows build issues it resolved would resolve my issues on Linux. Unfortunately, it did not.

After 1.3.6 failed to resolve the issue, I started fiddling with the ebuild to get one that would apply the workaround patch I wanted to apply. While I never bothered to go back to 1.3.5, renaming the ebuild to 1.3.5 should apply the configure script patch to it, enabling it to work on my system, although I have not verified this.

If anyone can reproduce my issue, a combination of this ebuild and the patch should work around it, which should confirm that the issue is with the pslib detection.
Comment 3 Seth Shelnutt 2010-05-17 23:13:06 UTC
I can verify this problem on ~amd64 also.
Comment 4 Richard 2010-05-18 01:29:04 UTC
Created attachment 231877 [details, diff]
A patch that disables the check in the configure script

The previous patch was not following Gentoo's naming convention (assuming there is one) while the ebuild contained some debug code that I forgot to strip and the ebuild did an unnecessary version bump, so I am replacing both of them with new versions that resolve those issues.
Comment 5 Richard 2010-05-18 01:29:50 UTC
Created attachment 231879 [details]
A modified ebuild that applies the patch.

This ebuild fixes the poor coding practices I followed in the previous ebuild I uploaded.
Comment 6 Richard 2010-05-18 01:32:30 UTC
(In reply to comment #3)
> I can verify this problem on ~amd64 also.
> 

I have uploaded a patch and ebuild that implement a workaround for this issue. The workaround is really a hack, but until someone more knowledge figures out why the check for pslib is failing, this is probably the best that can be done. I am not one of Gentoo's developers, but I suspect that this bug will need to go to upstream for them to fix it at some point.

Would you mind trying out the new ebuild in a local overlay and seeing if things work for you?
Comment 7 Richard 2010-05-18 01:57:27 UTC
Created attachment 231881 [details]
An ebuild to make upstream happy

I decided to take the initiative to report this issue to upstream. Their bug tracker required that the issue be present in the latest version, so I am attaching an ebuild for dev-php5/pecl-ps-1.3.6 that has the ooding quality issues I mentioned earlier resolved.

Here is a link to the bug report with upstream:

http://pecl.php.net/bugs/bug.php?id=17524
Comment 8 Richard 2010-05-18 01:58:31 UTC
Created attachment 231883 [details, diff]
A patch that disables the check in the configure script

This is a duplicate of the pecl-ps-1.3.5-configure.patch. It just has the version in its name changed to make the 1.3.6 ebuild happy.
Comment 9 Richard 2010-05-18 02:03:33 UTC
Created attachment 231885 [details]
An version bumped ebuild that has the problem - also something for upstream

I attached an ebuild that applied the patch (thus making things work), so I am attaching an ebuild that does not apply the patch. This is for upstream to make it easier for them should they want to reproduce it on a Gentoo Linux system with the latest version of their software.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2010-06-18 22:09:32 UTC
Thanks for taking the time to report this.

However, I can't find a fault with the package (tested on amd64). What version of pslib are you using (please post the output of emerge --info pslib)?
If the configure run fails, it leaves a config.log file in /var/tmp/portage/dev-php5/pecl-ps-1.3.5/temp/configure.log. Please attach this file to the bug report, so we can diagnose the problem.
Comment 11 Ole Markus With (RETIRED) gentoo-dev 2010-06-22 20:43:22 UTC
I also fail to be able to reproduce this
Comment 12 Matti Bickel (RETIRED) gentoo-dev 2010-08-09 13:29:26 UTC
Please reopen or comment on the bug if you still hit this problem and can provide the requested information.
Comment 13 Richard 2010-08-09 14:51:36 UTC
(In reply to comment #12)
> Please reopen or comment on the bug if you still hit this problem and can
> provide the requested information.
> 

I apologize for my late response. I was busy around the time comment #10 was made and while I planned to post a follow-up, it appears to have slipped through the cracks. Despite my best efforts, I can no longer reproduce this issue so it appears to have been resolved.
Comment 14 Matti Bickel (RETIRED) gentoo-dev 2010-08-09 15:47:12 UTC
Good to hear it's working again :-)