Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Kurobox problem emerge PHP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rndguy
n00b
n00b


Joined: 06 Oct 2006
Posts: 6

PostPosted: Fri Oct 06, 2006 6:06 am    Post subject: [SOLVED]Kurobox problem emerge PHP Reply with quote

I have run into difficulty emerging PHP using the following command:

ACCEPT_KEYWORD="~ppc" emerge dev-lang/php

Certain packages under X11 have been causing difficulty and cause emerge to fail. I have already installed Apache2, Python, Perl, and mySQL. I am looking to install PHP for webservices. Here is the error I get during the emerge:

/bin/sh: line 1: 32215 Segmentation fault ../src/util/makekeys </usr/include/X11/keysymdef.h >ks_tables_h
make[1]: *** [ks_tables.h] Error 139
make[1]: Leaving directory `/var/tmp/portage/libX11-1.0.0-r2/work/libX11-1.0.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: x11-libs/libX11-1.0.0-r2 failed.
!!! Function x-modular_src_make, Line 326, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


emerge tends to quit after this x11 library package, which is also masked. Any suggestions?

Thanks.


Last edited by rndguy on Mon Oct 09, 2006 9:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Oct 06, 2006 2:17 pm    Post subject: Reply with quote

What are your CFLAGs?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rndguy
n00b
n00b


Joined: 06 Oct 2006
Posts: 6

PostPosted: Fri Oct 06, 2006 6:40 pm    Post subject: How to get CFLAGS Reply with quote

Pardon my inexperience with Gentoo...what's the best way to list all my CFLAGS?
I looked in /etc/env.d/gcc/ and found a 'config' file that only had the following line:

CURRENT=powerpc-unknown-linux-gnu-3.4.5
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Oct 06, 2006 7:14 pm    Post subject: Reply with quote

post the output of emerge --info please
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
rndguy
n00b
n00b


Joined: 06 Oct 2006
Posts: 6

PostPosted: Fri Oct 06, 2006 7:24 pm    Post subject: emerge --info results Reply with quote

Portage 2.0.54 (!/var/overlays/20060216/profiles/kurobox, gcc-3.4.5, glibc-2.3.5-r3, 2.4.17_mvl21 ppc)
=================================================================
System uname: 2.4.17_mvl21 ppc 82xx
Gentoo Base System version 1.6.14
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python: 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.13-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=603e -fno-strict-aliasing -pipe -fsigned-char"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=603e -fno-strict-aliasing -pipe -fsigned-char"
DISTDIR="/var/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.gatech.edu/pub/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
MAKEOPTS="-j1"
PKGDIR="/var/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlays/20060216"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="ppc X acl alsa apache2 berkdb bitmap-fonts bzip2 cjk cli crypt cups dlloader dri eds expat gdbm gif gnome gpm gstreamer gtk gtk2 ipv6 isdnlog jpeg kde kuro ldap libwww mailwrapper mbox milter motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam pcre perl png ppds pppd python qt3 qt4 readline reflection sasl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml2 xorg xv zlib video_cards_dummy video_cards_fbdev video_cards_v4l input_devices_keyboard input_devices_mouse input_devices_evdev userland_GNU kernel_linux elibc_glibc"
Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Back to top
View user's profile Send private message
rndguy
n00b
n00b


Joined: 06 Oct 2006
Posts: 6

PostPosted: Fri Oct 06, 2006 9:13 pm    Post subject: emerge output Reply with quote

This is what I get during an emerge with no keywords:

# emerge --pretend dev-lang/php

These are the packages that I would merge, in order:

Calculating dependencies -
!!! All ebuilds that could satisfy "x11-misc/imake" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-misc/imake-1.0.1 (masked by: ~ppc keyword)
- x11-misc/imake-1.0.1-r1 (masked by: ~ppc keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
!!! (dependency required by "virtual/x11-7.0-r2" [ebuild])
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Oct 06, 2006 9:44 pm    Post subject: Reply with quote

Using no keywords doesn't make sense, the keywords select your architecture. Also, don't set -fsigned-char in your CFLAGS, that's for the author of the application, not for general use. You might want to try without this flag. That said, it's probably not causing your problem. Are you sure your RAM is okay and the CPU isn't overheating? Is there anything in dmesg? Does it always segfault in the same place?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
camille
n00b
n00b


Joined: 27 May 2005
Posts: 7

PostPosted: Sat Oct 07, 2006 5:47 am    Post subject: Reply with quote

Do you really need to use ~ppc? I have the stable ppc version of PHP on my kurobox, and everything runs like a charm.
Also, do you already have X11 installed on your Kurobox? X11 went modular recently, and as far as I understand, there are certain things you need to do before updating X11 to modular.

If like me you don't need X, why don't you remove it and put the flag -X in the USE line of your make.conf? That way PHP should emerge easily enough, at least it did for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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