Friday, December 28, 2012

LibreOffice File not recognized: File truncated


Problem :

I have the following problem when I build libreoffice. I've tried to delete it and emerge it an other time
but without success :

[ build CXX ] stoc/source/corereflection/crarray.cxx
[ build CXX ] stoc/source/corereflection/crbase.cxx
[ build CXX ] stoc/source/corereflection/crcomp.cxx
[ build CXX ] stoc/source/corereflection/crefl.cxx
[ build CXX ] stoc/source/corereflection/crenum.cxx
[ build CXX ] stoc/source/corereflection/criface.cxx
[ build LNK ] Library/reflection.uno.so
/var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3/workdir/unxlngi6.pro/CxxObject/stoc/source/corereflection/crenum.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3/workdir/unxlngi6.pro/LinkTarget/Library/reflection.uno.so] Error 1

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 512 occurred while making /var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3/stoc/prj

 it seems that the error is inside 'stoc', please re-run build
 inside this module to isolate the error and/or test your fix:

build_error.log should contain the captured output of the failed module(s)

-----------------------------------------------------------------------
To rebuild a specific module:

make stoc.clean # optional
make stoc

when the problem is isolated and fixed, re-run 'make'
make[1]: *** [build-packimages] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3'
make: *** [build] Error 2
 * ERROR: app-office/libreoffice-3.6.4.3 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 8981:  Called die
 * The specific snippet of code:
 *       make build || die
 *
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-3.6.4.3'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-3.6.4.3'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-3.6.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-3.6.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3'
 * S: '/var/tmp/portage/app-office/libreoffice-3.6.4.3/work/libreoffice-core-3.6.4.3'

Solution :

You just have to delete data in your cache directory.For example, if you have a CCache, it's probably set in make.conf with CCACHE_DIR="/var/tmp/ccache".
A good explanation about reason could be found on this blog http://fossdev.blogspot.fr/2011/08/file-not-recognized-file-truncated.html


Wednesday, December 26, 2012

Technorati

Hi,

I reference this blog at Technorati with the reference  ZFZ6FQ3Z8PWG .

KDE informations

If you search a kde package list or other information about kde, you should see Gentoo Wiki.
For my needs, I search KDE admin package.So i found :
kde-base/kdeadmin-meta: Administrative utilities, which helps you manage your system.

For additionnal information, you should see :  http://wiki.gentoo.org/wiki/KDE




Wednesday, December 19, 2012

Block openrc-0.9.9.3

Problème :

During update, I have the following problem :

[blocks B      ] <sys-apps/openrc-0.9.9.3 ("<sys-apps/openrc-0.9.9.3" is blocking sys-apps/net-tools-1.60_p20120127084908)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/net-tools-1.60_p20120127084908::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/net-tools required by @system

  (sys-apps/openrc-0.9.8.4::gentoo, installed) pulled in by
    sys-apps/openrc required by (dev-db/mysql-init-scripts-2.0_pre1-r2::gentoo, installed)
    sys-apps/openrc required by (sys-apps/baselayout-2.1-r1::gentoo, ebuild scheduled for merge)

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

Solution :

Some package (net-tools) ask a new version of openrc. However, in my system, there is an old version installed (openrc-0.9.9.3). To resolv the problem, you only need to uninstall openrc :

emerge -C sys-apps/openrc

Then, install the new version of openrc :

emerge  sys-apps/openrc

Sunday, November 18, 2012

Skype installation

Skype is in testing branch.So, if you want to only put the skype package in testing branch, you have to do the following :

vi /etc/portage/package.accept_keywords
 =net-im/skype-4.0.0.8-r1

Then you can install skype :

emerge skype

Saturday, November 10, 2012

package.use


sys-fs/udev gudev hwdb
media-plugins/gst-plugins-meta ogg vorbis
sys-auth/pambase consolekit
media-libs/mesa gles2
sys-auth/consolekit policykit
media-libs/mesa xa
x11-libs/libdrm libkms
x11-libs/pango X
x11-libs/cairo X
=sys-apps/dbus-1.6.2 X
=media-libs/libpng-1.5.10 apng
>=media-libs/libpng-1.5.13-r1 apng
>=x11-libs/goffice-0.8.17-r1 gnome
=x11-libs/qt-webkit-4.8.2 icu
=dev-libs/libxml2-2.8.0-r2 python icu
>=media-libs/imlib2-1.4.5 X
=sys-apps/dbus-1.6.8 X
x11-wm/fluxbox -gnome -kde truetype vim-syntax

Change to GDM

I decided to switch to GDM.In fact, I wanted to chnage easily between KDE, fluxbox and perhaps other.
That's why I decided o change.

Tuesday, November 6, 2012

make.conf


Here is my new make.conf.I use Kde and Fluxbox (split and toolbar in USE).
You alse have to install ccache and my processor is Intel(R) Core(TM)2 Quad  CPU   Q9550  @ 2.83GHz.That's why I put march=native?



# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
USE="kde qt4 qt3support gles opengl dbus alsa pulseaudio nsplugin slit toolbar"

FEATURES="parallel-fetch ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"

LINGUAS="fr FR_fr"
VIDEO_CARDS="nvidia"

ACCEPT_LICENSE="Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright"

INPUT_DEVICES="mouse keyboard evdev"

SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"

Thursday, October 25, 2012

Play 1.2.5 Python 3 on Gentoo problem


Problem

Now, I have error with play command (writes in python)
Here is the error :


play
  File "/opt/drieu/play/play", line 50
    print r"~        _            _ "
                                    ^
SyntaxError: invalid syntax



Solution

In fact, on my gentoo, I have Python 3.Or this command needs python 2
So you just have to change python version.
However, it's not really easy because of a bug with : eselect python set 1
It's not a bug.You just have to execute this command in root.
I will made a post on gentoo forum and I will add comment to this article after

Monday, October 8, 2012

package.use

Here is my config of package.use.It's solve the problem with ICU.
cat /etc/portage/package.use 

sys-fs/udev gudev hwdb
media-plugins/gst-plugins-meta ogg vorbis
sys-auth/pambase consolekit
media-libs/mesa gles2
sys-auth/consolekit policykit
media-libs/mesa xa
x11-libs/libdrm libkms
x11-libs/pango X
x11-libs/cairo X
=sys-apps/dbus-1.6.2 X
#=net-im/skype-4.0.0.8-r1 ~x86
=media-libs/libpng-1.5.10 apng
>=x11-libs/goffice-0.8.17-r1 gnome
=x11-libs/qt-webkit-4.8.2 icu
=dev-libs/libxml2-2.8.0-r2 python icu

Monday, October 1, 2012

grub.conf


My grub.conf :

default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.3.8-gentoo
root (hd0,0)
kernel /boot/kernel-3.3.8-gentoo root=/dev/sda3

Wednesday, September 26, 2012

Kde 4.8.5 Problem with the left click


I've met a strange problem with Kde 4.8.5.I can't make left click !
I've made an update and then I was the problem.
To solve the problem, I use the following command : emerge --update --deep --newuse world

Tuesday, September 18, 2012

service `xdm' does not exist


Problem

During install, I've met the following problem :

rc-update: service `xdm' does not exist
- /etc/conf.d/xdm doesn't exist.

I try emerge xdm but it doesn't work.


Solution

I've solved the problem like this : emerge xorg-server

Saturday, September 15, 2012

Gentoo install with kde 4.8.5 and fluxbox

This document contains a list of package I'v installed to having gentoo with kde.

emerge --sync
emerge portage
emerge system
emerge vim



vi /etc/portage/package.use

sys-fs/udev gudev hwdb
dev-libs/libxml2 python icu
media-plugins/gst-plugins-meta ogg vorbis
sys-auth/pambase consolekit
media-libs/mesa gles2
sys-auth/consolekit policykit
media-libs/mesa xa
x11-libs/libdrm libkms
x11-libs/pango X
x11-libs/cairo X




emerge gentoo-sources
⇒ Make the kernel configuration.


emerge kdebase-meta (very long)

emerge kde-base/kdeadmin-meta (Admin package no mandatory.)
emerge kde-base/kcalc
emerge dhcpcd
emerge grub
emerge kdm

⇒ rc-update: service `xdm' does not exist

To resolve that problem, you have to install xorg-server : emerge xorg-server
Then you can do : rc-update add xdm default

Kde in french :

emerge kde-base/kde-l10n
vi /usr/share/config/kdm/Xsetup
setxkbmap fr



Sound configuration

emerge media-sound/pulseaudio
emerge alsa-plugins
gpasswd -a drieu audio
emerge eix pavucontrol

Add alsa in the USE of make.conf
emerge --ask --changed-use --deep world


Developpement package

emerge virtual/jdk
emerge git

There is not yet maven 3 in ebuild.So you have to install it manually 


⇒ bashrc :
export M2_HOME=/opt/drieu/apache-maven-3.0.4
export M2=$M2_HOME/bin
export JAVA_HOME=/opt/icedtea-bin-6.1.11.3
export PATH="$PATH:$JAVA_HOME/bin:$M2"



# echo "dev-java/sun-jdk ~x86" >> /etc/portage/package.keywords
# echo "dev-java/java-sdk-docs ~x86" >> /etc/portage/package.keywords
# echo "dev-java/sun-jdk" >> /etc/portage/package.unmask
# echo "dev-java/java-sdk-docs" >> /etc/portage/package.unmask
# echo "dev-java/java-config ~x86" >> /etc/portage/package.keywords
# echo "dev-java/java-config-wrapper ~x86" >> /etc/portage/package.keywords


emerge sun-jdk
java-config --set-system-vm sun-jdk-1.6
emerge emul-linux-x86-java

Note : You have to download the jdk version it asked and put in on /urs/portage/distfile.

Other

emerge -av adobe-flash
emerge okular

Warning: Cannot open ConsoleKit session: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory.rc-update add dbus default
rc-update add consolekit default
emerge --ask net-im/skype


http://www.gentoo-wiki.info/Java_Installation_Help


emerge net-misc/telnet-bsd

umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo


Comptabilite

emerge gnucash

package.use :
>=x11-libs/goffice-0.8.17-r1 gnome

emerge ant


LibreOffice

emerge --ask libreoffice



Fluxbox

emerge ccache fluxbox xlockmore eterm commonbox-styles commonbox-styles-extra fluxbox-styles-fluxmod gentoo-artwork conky idesk gentoo gqview


Perl (Pour XmlEd)

perl -MCPAN -e'install "LWP::Simple"'
perl /home/drieu/dvp/script/Perl/installation-modules-perl-kit.pl

Saturday, September 1, 2012

make.conf

I've just begin a new install of my gentoo with kde.
So here is my make.conf without any improvement :


make.conf :


CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"

CHOST="i686-pc-linux-gnu"
USE="kde qt4 qt3support gles opengl dbus"

FEATURES="parallel-fetch"

LINGUAS="fr FR_fr"
VIDEO_CARDS="nvidia"

ACCEPT_LICENSE="Oracle-BCLA-JavaSE"

SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"






Thursday, April 12, 2012

xorg-x11 installation under VirtualBox : Xorg failed to load vmwgfx



Problem


I install xorg-x11 under VirtualBox and I met the following issue :


emerge xorg-x11
env-update
source /etc/profile
Xorg -configure

==> Xorg failed to load vmwgfx

Solution

emerge -C xf86-video-vmware
emerge x11-drivers/xf86-video-virtualbox

Friday, March 30, 2012

Clone with VirtualBox


I want to test severeal configuration like kde with gentoo or other test configuration.That's why, I create a common gentoo virtual machine and I clone it.
You can clone your virtual machine like that :

VBoxManage clonevdi ${HOME}/.VirtualBox/HardDisks/Gentoo_common.vdi ${HOME}/.VirtualBox/HardDisks/Gentoo_kde.vdi

Then, Clic add and after when you add you hard drive, choose your vdi file.

Monday, March 5, 2012

EXT3-fs couldn't mount because unsupported option No file system could mount root




I decide to update my Gentoo Virtual machine on my VirtualBox.
I configured my /etc/fstab like that :

/dev/sda1   /boot        ext4    defaults,noatime     1 2
/dev/sda2   none         swap    sw                   0 0
/dev/sda3   /            ext4    noatime              0 1
/dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0

proc        /proc        proc    defaults             0 0
shm         /dev/shm     tmpfs   nodev,nosuid,noexec  0 0

I also apply the EXT4 filesystem with mkfs.ext4

When I ran my Virtual machine, I have a kernel panic with the following message : EXT3-fs couldn't mount because unsupported option No file system could mount root
In fact, I forgot to add EXT4 support to my kernel. See this link to add EXT4 support on your kernel : EXT4_kernel