Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
building php4 apache module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Fri Jul 31, 2009 10:06 am    Post subject: building php4 apache module Reply with quote

Yes, I know PHP4 is dead dead dead. But I've got a few hosts that still require this old crap.

So I've got the php-4 overlay from layman and unmasked it. But it builds only the cli and cgi, but not the mod_php. First I thought it might be the a problem with apache-2.2, so I took old ebuilds from cvs and built an apache-2.0.58 - But: same result, no mod_php.

If I try to build only mod_php it failes without any useful error:
Code:
# USE="-cli -cgi apache" emerge -v \<php-5

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-4.4.8  USE="apache2 bcmath berkdb bzip2 calendar cdb crypt ctype curl doc exif expat force-cgi-redirect ftp gd-external gdbm gmp iconv imap inifile ipv6 mcal memlimit mhash mysql ncurses nls pcre pic postgres readline session sharedext sharedmem ssl tokenizer truetype unicode xml xmlrpc xsl zlib (-adabas) (-birdstep) -cgi* -cjk -cli* -concurrentmodphp -db2 -dbase (-dbmaker) -dbx -debug -discard-path (-empress) (-empress-bcs) (-esoob) -fastbuild (-fdftk) (-filepro) (-firebird) -flatfile (-frontbase) -gd -hyperwave-api (-informix) -interbase -iodbc (-java-external) -java-internal -kerberos -ldap -libedit -mcve -ming -mnogosearch -msql -mssql -oci8 -oci8-instant-client -odbc -oracle7 -overload -pcntl (-pfpro) -posix -recode -sapdb -snmp -sockets (-solid) -spell -sqlite -suhosin (-sybase) (-sybase-ct) -sysvipc -threads -wddx -xpm -yaz -zip" 0 kB [1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/php-4


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/php-4.4.8 from php-4

!!! Directory does not exist: '/usr/lib/ccache/bin'
!!! Disabled FEATURES='ccache'
 * php-4.4.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                           [ ok ]
 * php-patchset-4.4.8-r0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                         [ ok ]

!!! Directory does not exist: '/usr/lib/ccache/bin'
!!! Disabled FEATURES='ccache'
 * Determining SAPI(s) to build
 *   Disabled SAPI: cli
 *   Disabled SAPI: cgi
 *   Enabled  SAPI: apache2
 * QA Notice: USE Flag 'kolab' not in IUSE for dev-lang/php-4.4.8
>>> Unpacking source...
>>> Unpacking php-4.4.8.tar.bz2 to /var/tmp/portage/dev-lang/php-4.4.8/work
>>> Unpacking php-patchset-4.4.8-r0.tar.bz2 to /var/tmp/portage/dev-lang/php-4.4.8/work
 * Applying php4.4.8-multilib-search-path.patch ...                                                                                             [ ok ]
 * Applying various patches (bugfixes/updates) ...
 *   php4-apache2handler_volatile_vars_typos.patch ...                                                                                          [ ok ]
 *   php4-dba_config.patch ...                                                                                                                  [ ok ]
 *   php4-gd_namespacing.patch ...                                                                                                              [ ok ]
 *   php4-imap-symlink.patch ...                                                                                                                [ ok ]
 *   php4-iodbc-config.patch ...                                                                                                                [ ok ]
 *   php4-java-jpeg-libdir.patch ...                                                                                                            [ ok ]
 *   php4-libtool-1.5.patch ...                                                                                                                 [ ok ]
 *   php4-make_test.patch ...                                                                                                                   [ ok ]
 *   php4-mysql-charsetphpini.patch ...                                                                                                         [ ok ]
 *   php4-mysql-ztsclientlib.patch ...                                                                                                          [ ok ]
 *   php4-prefork-peruser-itk.patch ...                                                                                                         [ ok ]
 *   php4-session_fixes.patch ...                                                                                                               [ ok ]
 *   php4-std_array_merge_bin_safety.patch ...                                                                                                  [ ok ]
 *   php4-std_string_wordwrap.patch ...                                                                                                         [ ok ]
 *   php4-uClibc-have_dn_skipname.patch ...                                                                                                     [ ok ]
 *   php4-with-iodbc.patch ...                                                                                                                  [ ok ]
 * Done with patching
 * Applying various patches (bugfixes/updates) ...
 * Done with patching
 * Running eautoreconf in '/var/tmp/portage/dev-lang/php-4.4.8/work/php-4.4.8' ...
 * Running aclocal ...                                                                                                                          [ ok ]
 * Running libtoolize --copy --force ...                                                                                                        [ ok ]
 * Running aclocal ...                                                                                                                          [ ok ]
 * Running autoconf ...                                                                                                                         [ ok ]
 * Running autoheader ...                                                                                                                       [ ok ]
 * Running elibtoolize in: php-4.4.8
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-1.5.26.patch ...
>>> Source unpacked in /var/tmp/portage/dev-lang/php-4.4.8/work
>>> Compiling source in /var/tmp/portage/dev-lang/php-4.4.8/work/php-4.4.8 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/php-4.4.8

>>> Install php-4.4.8 into /var/tmp/portage/dev-lang/php-4.4.8/image/ category dev-lang
make: *** No rule to make target `install-build'.  Stop.
 *
 * ERROR: dev-lang/php-4.4.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 4345:  Called php4_4-sapi_src_install
 *             environment, line 3312:  Called die
 * The specific snippet of code:
 *       make INSTALL_ROOT="${D}" install-build install-headers install-programs || die "make install failed";
 *  The die message:
 *   make install failed
 *
 * 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-lang/php-4.4.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-4.4.8/temp/environment'.
 * This ebuild is from an overlay named 'php-4': '/usr/local/portage/layman/php-4/'
 *

>>> Failed to emerge dev-lang/php-4.4.8, Log file:

>>>  '/var/tmp/portage/dev-lang/php-4.4.8/temp/build.log'

 * Messages for package dev-lang/php-4.4.8:

 *
 * ERROR: dev-lang/php-4.4.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 4345:  Called php4_4-sapi_src_install
 *             environment, line 3312:  Called die
 * The specific snippet of code:
 *       make INSTALL_ROOT="${D}" install-build install-headers install-programs || die "make install failed";
 *  The die message:
 *   make install failed
 *
 * 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-lang/php-4.4.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-4.4.8/temp/environment'.
 * This ebuild is from an overlay named 'php-4': '/usr/local/portage/layman/php-4/'
 *


Any ideas what might cause this?
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Jul 31, 2009 11:48 pm    Post subject: Reply with quote

looks to me like that ebuild is broken.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Sat Aug 01, 2009 2:00 pm    Post subject: Reply with quote

SVN says the ebuild is unchanged since it was moved to the overlay. (09.08.2008)

After digging a bit into the ebuild I found the problem:

Code:

   if use apache2 ; then
      PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
   fi

But the $APACHE_VERSION variable is'nt set.

Simply adding
Code:
APACHE_VERSION=2

at the beginning of the ebuild, and it works again.
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Aug 01, 2009 7:07 pm    Post subject: Reply with quote

good sleuthing! May I recommend you file a bug report with the overlay -- or with whoever?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Sun Aug 02, 2009 12:24 pm    Post subject: Reply with quote

Filed as bug #280029
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sun Aug 02, 2009 6:53 pm    Post subject: Reply with quote

thanks! Better than everyone having to dig through the forums and fix themselves!
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
The_Invisible
n00b
n00b


Joined: 03 Nov 2004
Posts: 11
Location: Austria, Styria

PostPosted: Tue Aug 25, 2009 2:40 pm    Post subject: Reply with quote

hi,

i still have the problem with the fixed ebuild. :(

is there another solution or workaround?
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Tue Aug 25, 2009 6:53 pm    Post subject: Reply with quote

There are problems with some use-Flags - think it was posix and sqlite and maybe some more - Just switch off everything that makes troubles.
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum