LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2009, 01:32 PM   #1
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
openmoko on ubuntu 9.04 jaunty


Hi,

I am building openmoko as described at:
http://wiki.openmoko.org/wiki/Host-b...Xoo_and_Xephyr

I svn-ed latest trunk.

I am at openmoko-panel-battery step and I am getting these errors:

make all-recursive
make[1]: Entering directory `/usr/local/pkg/openoko/src/target/OM-2007.2/panel-plugins/openmoko-panel-battery'
Making all in src
make[2]: Entering directory `/usr/local/pkg/openoko/src/target/OM-2007.2/panel-plugins/openmoko-panel-battery/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/local/share/openmoko-panel-battery\" -DGETTEXT_PACKAGE=\"matchbox-panel\" -Wall -std=c99 -pedantic -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MT openmoko-panel-battery.lo -MD -MP -MF .deps/openmoko-panel-battery.Tpo -c -o openmoko-panel-battery.lo openmoko-panel-battery.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/local/share/openmoko-panel-battery\" -DGETTEXT_PACKAGE=\"matchbox-panel\" -Wall -std=c99 -pedantic -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MT openmoko-panel-battery.lo -MD -MP -MF .deps/openmoko-panel-battery.Tpo -c openmoko-panel-battery.c -fPIC -DPIC -o .libs/openmoko-panel-battery.o
openmoko-panel-battery.c:30:17: error: apm.h: No such file or directory
openmoko-panel-battery.c: In function ‘battery_applet_init_dbus’:
openmoko-panel-battery.c:102: warning: format not a string literal and no format arguments
openmoko-panel-battery.c:111: warning: passing argument 2 of ‘dbus_connection_add_filter’ from incompatible pointer type
openmoko-panel-battery.c: At top level:
openmoko-panel-battery.c:115: error: expected declaration specifiers or ‘...’ before ‘apm_info’
openmoko-panel-battery.c: In function ‘battery_applet_notification’:
openmoko-panel-battery.c:126: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:126: error: (Each undeclared identifier is reported only once
openmoko-panel-battery.c:126: error: for each function it appears in.)
openmoko-panel-battery.c:128: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:131: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c: In function ‘timeout’:
openmoko-panel-battery.c:204: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:204: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:206: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:207: warning: implicit declaration of function ‘apm_read’
openmoko-panel-battery.c:211: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c:212: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:237: error: too many arguments to function ‘battery_applet_notification’
openmoko-panel-battery.c: In function ‘on_clicked_cb’:
openmoko-panel-battery.c:246: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:246: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:248: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:251: error: too many arguments to function ‘battery_applet_notification’
make[2]: *** [openmoko-panel-battery.lo] Error 1



I've modified Makefile and src/Makefile adding at CFLAGS

-I/usr/src/linux-headers-2.6.28-14-generic/include/config -I/usr/src/linux-headers-2.6.28-14-generic/include

because locate apm.h yields

/usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/mach-default/apm.h
/usr/src/linux-headers-2.6.28-11/include/sound/soc-dapm.h
/usr/src/linux-headers-2.6.28-11-generic/include/config/apm.h
/usr/src/linux-headers-2.6.28-14/arch/x86/include/asm/mach-default/apm.h
/usr/src/linux-headers-2.6.28-14/include/sound/soc-dapm.h
/usr/src/linux-headers-2.6.28-14-generic/include/config/apm.h



Now make returns .


openmoko-panel-battery.c: In function ‘battery_applet_init_dbus’:
openmoko-panel-battery.c:102: warning: format not a string literal and no format arguments
openmoko-panel-battery.c:111: warning: passing argument 2 of ‘dbus_connection_add_filter’ from incompatible pointer type
openmoko-panel-battery.c: At top level:
openmoko-panel-battery.c:115: error: expected declaration specifiers or ‘...’ before ‘apm_info’
openmoko-panel-battery.c: In function ‘battery_applet_notification’:
openmoko-panel-battery.c:126: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:126: error: (Each undeclared identifier is reported only once
openmoko-panel-battery.c:126: error: for each function it appears in.)
openmoko-panel-battery.c:128: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:131: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c: In function ‘timeout’:
openmoko-panel-battery.c:204: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:204: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:206: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:207: warning: implicit declaration of function ‘apm_read’
openmoko-panel-battery.c:211: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c:212: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:237: error: too many arguments to function ‘battery_applet_notification’
openmoko-panel-battery.c: In function ‘on_clicked_cb’:
openmoko-panel-battery.c:246: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:246: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:248: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:251: error: too many arguments to function ‘battery_applet_notification’
make[2]: *** [openmoko-panel-battery.lo] Error 1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove gnome-desktop ubuntu and strictly use lxde ubuntu 9.04 Jaunty Polanski Linux - Software 1 05-07-2009 02:53 PM
LXer: The Perfect Server - Ubuntu Jaunty Jackalope (Ubuntu 9.04) [ISPConfig 2] LXer Syndicated Linux News 0 04-26-2009 09:50 AM
LXer: How to Upgrade Ubuntu 8.10 (Intrepid) to Ubuntu 9.04 (Jaunty) LXer Syndicated Linux News 0 04-24-2009 05:41 PM
LXer: Upgrade Ubuntu 8.10 (Intrepid) to Ubuntu 9.04 (Jaunty) Beta LXer Syndicated Linux News 0 03-30-2009 06:30 AM
LXer: Another Look At Ubuntu 9.04 Jaunty Jackalope LXer Syndicated Linux News 0 03-10-2009 02:50 PM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration