First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 220519
Alias:
Product:
Component:
Status: ASSIGNED
Resolution:
Assigned To: PHP Bugs <php-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Peter Volkov <pva@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 220519 depends on: 232538 Show dependency tree
Show dependency graph
Bug 220519 blocks: 212763
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-06 05:28 0000
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/libtool
--mode=compile i686-pc-linux-gnu-gcc  -I.
-I/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23 -DPHP_ATOM_INC
-I/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/include
-I/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/main
-I/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23
-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 
-DHAVE_CONFIG_H  -O2 -march=i686 -pipe -mtune=i686   -c
/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/suhosin.c -o
suhosin.lo
/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/libtool: line 460:
CDPATH: command not found
/var/tmp/portage/dev-php5/suhosin-0.9.23/work/suhosin-0.9.23/libtool: line
1152: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4
libtool: and run autoconf again.
make: *** [suhosin.lo] Ошибка 63
 *
 * ERROR: dev-php5/suhosin-0.9.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3579:  Called php-ext-source-r1_src_compile
 *             environment, line 2834:  Called die
 * The specific snippet of code:
 *       emake || die "Unable to make code";
 *  The die message:
 *   Unable to make code
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/dev-php5/suhosin-0.9.23/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-php5/suhosin-0.9.23/temp/environment'.

------- Comment #1 From Christian Hoffmann 2008-05-06 10:55:11 0000 -------
Ok, this really sucks.
This patch fixes it:

diff -u -r1.16 php-ext-source-r1.eclass
--- php-ext-source-r1.eclass    6 Jan 2008 19:30:24 -0000       1.16
+++ php-ext-source-r1.eclass    6 May 2008 10:48:33 -0000
@@ -59,6 +59,8 @@
        # Create configure out of config.m4
        if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then
                ${PHPIZE}
+               rm aclocal.m4
+               eautoreconf
        fi

        # Concurrent PHP Apache2 modules support


But as we all know that it is wrong to run the autotools regeneration stuff in
src_compile, I'm not going to commit this right now.
IMO $PHPIZE stuff should be moved to src_unpack (along with eautoreconf), the
problem is that we currently don't export src_unpack and we'll probably have to
fix several ebuilds to manually call it.

I think this affects every php extension (I verified by trying xdebug), so
we'll need to fix the pecl eclass as well...

I'm not sure if I've got time to fix that before Saturday, so if anyone from
php team can do it, feel free to.

------- Comment #2 From Christian Hoffmann 2008-05-06 20:00:38 0000 -------
These are the ebuilds which need manual checking/fixing after we move the
phpize code to src_unpack:

$ find -type f -and -not -path './dev-php4*' -and -name '*.ebuild' -exec grep
-l 'inherit.*php-ext-' {} + | xargs grep -l 'src_unpack'
./dev-libs/ossp-uuid/ossp-uuid-1.6.1.ebuild
./dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild
./dev-php5/pecl-apc/pecl-apc-3.0.16.ebuild
./dev-php5/pecl-apc/pecl-apc-3.0.16-r1.ebuild
./dev-php5/pecl-crack/pecl-crack-0.4.ebuild
./dev-php5/pecl-imagick/pecl-imagick-2.1.1_rc1.ebuild
./dev-php5/pecl-mcve/pecl-mcve-5.2.2-r1.ebuild
./dev-php5/pecl-memcache/pecl-memcache-2.0.4.ebuild
./dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild
./dev-php5/php-gtk/php-gtk-2.0.0.ebuild
./dev-php5/php-java-bridge/php-java-bridge-2.0.8.ebuild
./dev-php5/php-qt/php-qt-0.9.ebuild
./dev-php5/pecl-htscanner/pecl-htscanner-0.8.1.ebuild
./sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild

------- Comment #3 From Christian Hoffmann 2008-05-07 16:09:15 0000 -------
I committed a noop change to the eclass which should allow for graceful
migration of the ebuilds.
Fixing all the ebuilds with explicit src_unpack to call the one from the eclass
now...

The fix is already in the eclass, but commented out.

------- Comment #4 From Christian Hoffmann 2008-05-07 16:24:20 0000 -------
./dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild done

sci-geosciences: ./sci-geosciences/mapserver/mapserver-5.0.0-r1.ebuild is a bit
strange, it fails for me, but for non-obvious reasons.
 * Using dev-lang/php-5.2.6-r1
 * 
cp: cannot stat
`/var/tmp/portage/sci-geosciences/mapserver-5.0.0-r1/work/php_mapscript-versioned.so':
No such file or directory

Apparently it doesn't use the related php eclass and builds the extension on
its own, which does not work properly if php was built w/ USE=concurrentmodphp
(because then all php extensions have to be build twice).

------- Comment #5 From Christian Hoffmann 2008-05-07 17:03:41 0000 -------
> ./dev-libs/ossp-uuid/ossp-uuid-1.6.1.ebuild
dev-zero, please give your ok or simply do it yourself, thanks. ;)

> ./dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild
> ./dev-php5/pecl-apc/pecl-apc-3.0.16.ebuild
> ./dev-php5/pecl-apc/pecl-apc-3.0.16-r1.ebuild
> ./dev-php5/pecl-crack/pecl-crack-0.4.ebuild
Done.

> ./dev-php5/pecl-imagick/pecl-imagick-2.1.1_rc1.ebuild
Bad versions punted.

> ./dev-php5/pecl-mcve/pecl-mcve-5.2.2-r1.ebuild
> ./dev-php5/pecl-memcache/pecl-memcache-2.0.4.ebuild
Done.

> ./dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild
> ./dev-php5/php-gtk/php-gtk-2.0.0.ebuild
KillerX / anant, can you please fix those yourself? They call ./buildconf
instead of running the eclass functions, looks wrong.

> ./dev-php5/php-java-bridge/php-java-bridge-2.0.8.ebuild
E_DONT_CARE (hardmasked).

> ./dev-php5/php-qt/php-qt-0.9.ebuild
Uses cmake and not autotools/libtool. I guess it'll simply work, but I'm trying
to verify.

> ./dev-php5/pecl-htscanner/pecl-htscanner-0.8.1.ebuild
Done.

------- Comment #6 From Christian Hoffmann 2008-05-07 17:24:01 0000 -------
(In reply to comment #5)
> > ./dev-php5/php-qt/php-qt-0.9.ebuild
> Uses cmake and not autotools/libtool. I guess it'll simply work, but I'm trying
> to verify.
Doesn't compile here, but unrelated to libtool, so doesn't prevent this bug
from being fixed.

Those still need to be fixed before I can commit the fixed eclass:
> > ./dev-libs/ossp-uuid/ossp-uuid-1.6.1.ebuild
dev-zero or me
> > ./dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild
> > ./dev-php5/php-gtk/php-gtk-2.0.0.ebuild
anant (or me :/)

> > ./dev-php5/php-java-bridge/php-java-bridge-2.0.8.ebuild
Won't be fixed unless someone wants to (not me ;)).
Same for dev-php4/*

------- Comment #7 From Christian Hoffmann 2008-05-08 19:32:56 0000 -------
*** Bug 220897 has been marked as a duplicate of this bug. ***

------- Comment #8 From Christian Hoffmann 2008-05-09 13:04:46 0000 -------
All listed ebuilds fixed, fixed eclass committed. I hope I did not break
stable. Everything works for me now (both those extensions which have their own
src_unpack as those listed in this bug and those which just inherit the eclass
src_unpack).

dev-php5/php-gtk is probably still broken as it doesn't properly use ebuild
functions. anant, please take a look.

dev-libs/ossp-uuid fixed by dev-zero's ok on IRC, un'cc'ing as such.

sci-geosciences/mapserver seems to work fine nevertheless, but you might want
to check behavior when php is emerged w/ USE=concurrentmodphp (use the eclass
functions). Keeping in CC as such.

Bug will be closed if the remaining problems are sorted.

------- Comment #9 From Christian Hoffmann 2008-05-09 13:27:19 0000 -------
*** Bug 212777 has been marked as a duplicate of this bug. ***

------- Comment #10 From Rafał Mużyło 2008-07-21 10:47:10 0000 -------
It looks like the expected bug in dev-php5/php-gtk
has finally arrived (bug 232538).

First Last Prev Next    No search results available      Search page      Enter new bug