Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] :: mod_php 4.3.11 fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Mon Apr 11, 2005 5:53 pm    Post subject: [Solved] :: mod_php 4.3.11 fails to compile Reply with quote

mod_php-4.3.11 bombs out on me with this compile error:
Code:
/gentoo-portage/portage/tmp/portage/mod_php-4.3.11/work/php-4.3.11/ext/swf/swf.c:256: error: label at end of compound statement
make: *** [ext/swf/swf.lo] Error 1
make: *** Waiting for unfinished jobs....
/gentoo-portage/portage/tmp/portage/mod_php-4.3.11/work/php-4.3.11/ext/sysvmsg/sysvmsg.c: In function `zif_msg_receive':
/gentoo-portage/portage/tmp/portage/mod_php-4.3.11/work/php-4.3.11/ext/sysvmsg/sysvmsg.c:318: warning: passing arg 2 of `php_var_unserialize' from incompatible pointer type


Any ideas why?


Last edited by Ateo on Mon Apr 11, 2005 10:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 829
Location: Sweden

PostPosted: Mon Apr 11, 2005 10:18 pm    Post subject: Reply with quote

Hi,

You can emerg it by
Code:
USE="-flash" emerge mod_php

Beqause it would not compile with flash (ming).

You can file a bug report.
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Mon Apr 11, 2005 10:45 pm    Post subject: Reply with quote

Well, that worked. I'm not even sure I really need flash now that I equeried and found what it's use is...

Thanks
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 829
Location: Sweden

PostPosted: Tue Apr 12, 2005 6:14 am    Post subject: Reply with quote

Well, it may be true that you don't need it.

But i don't think it should be marked stable as long as you can
set the flash flag and hope to get it to compile.
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Tue Apr 12, 2005 8:52 am    Post subject: Reply with quote

To really solve this problem you want to use my patch I posted on bugs.g.o:
https://bugs.gentoo.org/show_bug.cgi?id=88756
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
mcguire
n00b
n00b


Joined: 29 Nov 2004
Posts: 19
Location: France

PostPosted: Wed Apr 13, 2005 3:41 pm    Post subject: Reply with quote

I'm a newbie...

How can I use your patch ?
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Fri Apr 15, 2005 10:36 am    Post subject: Reply with quote

Code:
cd /usr/portage/dev-php/mod_php/files/
wget "http://bugs.gentoo.org/attachment.cgi?id=56014&action=view"
mv attachment.cgi\?id\=56014\&action\=view swf.c.patch
cd ..


Now open the file mod_php-4.3.11.ebuild and search for the src_unpack function. Add epatch ${FILESDIR}/swf.c.patch before the } bracket of the function. E.g:

Code:
src_unpack() {
    multiinstwarn
    detectapache domsg
    php-sapi_src_unpack
    if [ "${ARCH}" == "amd64" ] ; then
        epatch ${FILESDIR}/mod_php-4.3.4-amd64hack.diff
    fi
    [ "${ARCH}" == "sparc" ] && epatch ${FILESDIR}/stdint.diff

    # bug fix for security problem - bug #39952
    # second revision as the apache2 stuff was resolved upstream
    epatch ${FILESDIR}/mod_php-4.3.5-apache1security.diff

    # stop php from activing the apache config, as we will do that ourselves
    for i in configure sapi/apache/config.m4 sapi/apache2filter/config.m4 sapi/apache2handler/config.m4; do
        sed -i.orig -e 's,-i -a -n php4,-i -n php4,g' $i
    done

    epatch ${FILESDIR}/swf.c.patch
}


Run emerge mod_php now. Remember: All your changes (to the ebuild/patch) will be lost the next time you run emerge --sync.
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
MaxDamage
l33t
l33t


Joined: 03 Jan 2004
Posts: 650
Location: Oviedo, Spain

PostPosted: Tue Apr 19, 2005 11:11 pm    Post subject: Reply with quote

It works for me both with php and mod_php. I hope this'll go into portage soon.
_________________
La PDA de tungsteno
Back to top
View user's profile Send private message
scoy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 93

PostPosted: Wed Apr 20, 2005 6:35 pm    Post subject: more problems with emerge mod_php-4.3.11 Reply with quote

My emerge is failing, but with different errors. I haven't been able to find anyone else with these errors. Can anyone help me out?
Code:
$ emerge -uDv mod_php
...
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1
make: *** Waiting for unfinished jobs....
...


Those are all the errors I get, and here are my USE flags...

Code:
$ cat /etc/portage/package.use
...
dev-php/mod_php  -X apache2 berkdb crypt curl -debug -doc -fdftk -firebird -flash -freetds gd gd-external gdbm -gmp -hardenedphp imap -informix -ipv6 -java jpeg -kerberos -ldap mcal -memlimit -mssql mysql nls -oci8 -odbc -pam -pdflib png -postgres -qt -snmp spell ssl tiff truetype xml2 -yaz
dev-php/php  -X apache2 berkdb crypt curl -debug -doc -fdftk -firebird -flash -freetds gd gd-external gdbm -gmp -hardenedphp imap -informix -ipv6 -java jpeg -kerberos -ldap mcal -memlimit -mssql mysql nls -oci8 -odbc -pam -pdflib png -postgres -qt -snmp spell ssl tiff truetype xml2 -yaz
Back to top
View user's profile Send private message
MaxDamage
l33t
l33t


Joined: 03 Jan 2004
Posts: 650
Location: Oviedo, Spain

PostPosted: Thu Apr 21, 2005 5:01 pm    Post subject: Reply with quote

I suppose you've upgraded gcc lately from 3.3.4 to a newer version, probably 3.4.3. You need to fix some things. Here is a thread where all is explained.

https://forums.gentoo.org/viewtopic-t-318790-highlight-libstdc.html
_________________
La PDA de tungsteno
Back to top
View user's profile Send private message
scoy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 93

PostPosted: Mon Apr 25, 2005 6:00 pm    Post subject: Thanks Reply with quote

Thanks MaxDamage, worked just fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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