Author Topic: Errors on compiling in flux's openbox remaster  (Read 997 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Errors on compiling in flux's openbox remaster
« on: October 16, 2009, 06:03:49 AM »
Hi,

I started a subject at mypclinuxos.com to present a new project : Openbox/fluxbox flux's remaster.

Well, I didn't reveal all in that thread yet, I would have liked to be more advanced with it and see if I could get a satisfiying fr-en remaster before... but things turn out in a way such that I need your help !

My project is to use my companion's script that allows for dynamic menus in Openbox : without the help of a panel, without the need for icons on the desktop !

Thoses who know Openbox know about the contextual menu in the desktop, and that it has to be edited by hand in the xml files, or edited by hand in a program named "obmenu" : still it's handcraft.

A few months ago, using Openbox on a daily basis, mimas did a first script in lua language. Then I told him I would like to do a remaster with Openbox and his dynamic menu, but when I took a look at the depends, luafilesystems which is needed for his script is not packaged for PClos, and he then decided to port it to C.

The only depends are menu-cache, libmenu-cache, and the devel package. All are available, and now installed in Flux's remaster that I started to modify (updated fully and changed the kernel to 2.6.27.31.tex5 successfully).

The openbox-menu web page is here: http://mimasgpc.free.fr/open-boxmenu.html

The sources are here:
L'archive : openbox-menu.

All menu-cache installed:
Quote
libmenu-cache-devel - Contains development files for menu-cache
libmenu-cache0 - Contains shared libraries for menu-cache
menu-cache - A library to speed up freedesktop.org application menus


last gcc 4.4.1 installed, tons of devel packages installed (they were allready in flux's remaster)...

Quote
gnome-vfs2-devel libIDL2_0-devel libORBit2_0-devel libalsa2-devel libart_lgpl2-devel libaudiofile0-devel libavahi-common-devel libbzip2-devel libdbus-glib-1_2-devel libdirectfb0.9_25-devel libdrm-devel libfreetype6-devel libfs-devel libgcrypt-devel libgpg-error-devel libgtk+2.0_0-devel libice6-devel libjpeg62-devel libltdl3-devel libmowgli-devel libopenssl0.9.8-devel libpixman-1-devel libpng-devel libpopt0-devel libpython2.5-devel libtasn1_3-devel libtcl8.4-devel libusb-devel libx11_6-devel x11-xtrans-devel zlib1-devel GConf2-devel audacious-devel libapplewm-devel libavahi-client-devel libavahi-glib-devel libbonobo2_0-devel libbonoboui2_0-devel libcairo-devel libdmx-devel libesound0-devel libfontconfig-devel libfontenc1-devel libgail-devel libgdk_pixbuf2.0_0-devel libglade2.0_0-devel libgnome-keyring-devel libgnome2_0-devel libgnomecanvas2_0-devel libgnomeui2_0-devel libgsf-1_114-devel liblbxutil-devel libmcs1-devel libmesagl1-devel libmesaglu1-devel libmesaglut3-devel libmesaglw1-devel liboldx6-devel libpango1.0-devel libsm6-devel libtk8.4-devel libwindowswm7-devel libxaw-devel libxcomposite1-devel libxcursor-devel libxdamage-devel libxevie-devel libxext6-devel libxfixes3-devel libxfont1-devel libxfontcache1-devel libxft-devel libxi-devel libxinerama1-devel libxkbfile-devel libxkbui-devel libxml2-devel libxmu6-devel libxorg-x11-devel libxp-devel libxpm-devel libxrandr2-devel libxrender1-devel libxres1-devel libxscrnsaver1-devel libxt6-devel libxtrap-devel libxtst6-devel libxv1-devel libxvmc1-devel libxxf86dga-devel libxxf86misc-devel libxxf86vm-devel x11-server-devel libgcrypt-devel libgnutls-devel libgpg-error-devel liblzo2_2-devel libopencdk-devel libtasn1_3-devel zlib1-devel


To compile, it needs just "make" as user:
Quote
$ make
 gcc -Wall -O -g `pkg-config --cflags glib-2.0 libmenu-cache` -c menu.c -o menu.o
In file included from /usr/include/bits/posix1_lim.h:157,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:122,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:11,
                 from /usr/lib/glib-2.0/include/glibconfig.h:11,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from menu.c:15:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/signal.h:339,
                 from /usr/include/glib-2.0/glib/gbacktrace.h:35,
                 from /usr/include/glib-2.0/glib.h:36,
                 from menu.c:15:
/usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory


Quote
$ locate limits.h
/usr/include/limits.h
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/syslimits.h
/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimplimits.html
/usr/src/linux-2.6.27.31.tex5/include/asm-x86/mach-generic/irq_vectors_limits.h
/usr/src/linux-2.6.27.31.tex5/include/asm-x86/mach-summit/irq_vectors_limits.h
/usr/src/linux-2.6.27.31.tex5/include/linux/limits.h
/usr/src/linux-2.6.28-quax/3rdparty/drbd/linux/drbd_limits.h
/usr/src/linux-2.6.28-quax/arch/arm/include/asm/limits.h
/usr/src/linux-2.6.28-quax/include/linux/limits.h


Quote
$ locate sigcontext.h
/usr/include/bits/sigcontext.h
/usr/src/linux-2.6.27.31.tex5/include/asm-x86/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/alpha/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/arm/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/avr32/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/blackfin/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/cris/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/h8300/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/ia64/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/m68knommu/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/mips/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/parisc/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/powerpc/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/s390/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/sh/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/sh/include/cpu-common/cpu/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/sh/include/cpu-sh4/cpu/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/sparc/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/um/sys-i386/shared/sysdep/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/um/sys-ia64/sysdep/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/um/sys-ppc/shared/sysdep/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/um/sys-x86_64/shared/sysdep/sigcontext.h
/usr/src/linux-2.6.28-quax/arch/x86/include/asm/sigcontext.h
/usr/src/linux-2.6.28-quax/include/asm-frv/sigcontext.h
/usr/src/linux-2.6.28-quax/include/asm-m32r/sigcontext.h
/usr/src/linux-2.6.28-quax/include/asm-m68k/sigcontext.h
/usr/src/linux-2.6.28-quax/include/asm-mn10300/sigcontext.h
/usr/src/linux-2.6.28-quax/include/asm-xtensa/sigcontext.h


(Seems some cleaning has still to be done after changing kernel... )

What do you think ? Does the make command work in your machines ? (With or without Openbox but with the menu-cache files)

Thanks for helping me.
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

flux

  • Guest
Re: Errors on compiling in flux's openbox remaster
« Reply #1 on: October 16, 2009, 06:23:03 AM »
I updated to current state (without testing) and inserted the .27 kernel.

Code: [Select]
root@localhost: /tmp/openbox-menu # uname -r
2.6.27.31.tex5
root@localhost: /tmp/openbox-menu #

Then I installed the 3 menu-cache-packages (you listed the packages in your post), downloaded the sources, extracted the sources in /tmp and did a

Code: [Select]
root@localhost: /tmp/openbox-menu # make
gcc -Wall -O -g `pkg-config --cflags glib-2.0 libmenu-cache` -c menu.c -o menu.o
gcc `pkg-config --libs glib-2.0 libmenu-cache` menu.o -o openbox-menu
strip -s openbox-menu
root@localhost: /tmp/openbox-menu #

Then I had

Code: [Select]
root@localhost: /tmp/openbox-menu # ls
Makefile  menu.c  menu.o  openbox-menu
root@localhost: /tmp/openbox-menu #

the binary in the directory to use it or to copy it into the system (/usr/local/bin or /usr/bin).

I think you are missing the package

Code: [Select]
glibc-headers-devel-2.6.30-1pclos2010
...

flux.
« Last Edit: October 16, 2009, 06:26:12 AM by flux »

flux

  • Guest
Re: Errors on compiling in flux's openbox remaster
« Reply #2 on: October 16, 2009, 06:45:39 AM »
Or you try to fix it in this way:

Code: [Select]
cd  /usr/include/
rm -rf asm
ln -s /usr/src/linux/arch/x86/include/asm .

The sources of the .27.31 kernel must be installed and linked to /usr/src/linux to go this way.

flux.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Errors on compiling in flux's openbox remaster
« Reply #3 on: October 16, 2009, 07:25:48 AM »
Or you try to fix it in this way:

Code: [Select]
cd  /usr/include/
rm -rf asm
ln -s /usr/src/linux/arch/x86/include/asm .

The sources of the .27.31 kernel must be installed and linked to /usr/src/linux to go this way.

flux.


Hi,

We should never have to build a whole oil factory just to run a tiny program. The includes are supposed to be at the right place as kernel-headers are installed (which obviously are, as in PClos it's a dependency of the kernel).

I tried openbox-menu as a binary : mimasgpc.free.fr/openbox-menu
It works nicely.

In ~/.config/openbox/autostart.sh I added menu-cached & after the other programs you configured to be started at boot, in ~/.config/openbox/menu.xml some changes were made too.

I had put the binary made executable into ~/.local/bin and added:
Code: [Select]
<menu id="desktop-app-menu" label="Applications" execute="~/.local/bin/openbox-menu" />

Then I added the menu just defined :

Code: [Select]
<menu id="desktop-app-menu" />
under the section «id="root-menu"». (Under the Openbox menu separator).

And now, that's what it looks like  :D :



Well, I'd like the headers to be constructed so that they would do their job. :)


« Last Edit: October 16, 2009, 07:27:27 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

flux

  • Guest
Re: Errors on compiling in flux's openbox remaster
« Reply #4 on: October 16, 2009, 07:33:58 AM »
Very nice, great work, gratulation!

flux.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Errors on compiling in flux's openbox remaster
« Reply #5 on: October 16, 2009, 07:42:27 AM »
Very nice, great work, gratulation!

flux.


I just told him your congrats. Feel free to get the sources and use if for all Openbox installs.

As his scripts (one in C, one in lua) allows to have permanently the menus up to date automatically, I thought it would be a good idea to ask him to publish it.

The first place is here : http://mimasgpc.free.fr/open-boxmenu.html

it's under Gpl V3, the second place will be at Google Code. I proposed him to translate his page to english along with a short tutorial.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode