Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kerneloops fails to build
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
fireball-13
n00b
n00b


Joined: 05 Sep 2005
Posts: 61
Location: Moscow, RU

PostPosted: Sun May 11, 2008 5:09 pm    Post subject: kerneloops fails to build Reply with quote

>>> Unpacking source...
>>> Unpacking kerneloops-0.11.tar.gz to /var/tmp/portage/sys-kernel/kerneloops-0.11/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-kernel/kerneloops-0.11/work/kerneloops-0.11 ...
cc -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement `pkg-config --cflags libnotify gtk+-2.0` -c -o kerneloops.o kerneloops.c
cc -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement `pkg-config --cflags libnotify gtk+-2.0` -c -o submit.o submit.c
cc -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement `pkg-config --cflags libnotify gtk+-2.0` -c -o dmesg.o dmesg.c
Package libnotify was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnotify.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnotify' found
Package libnotify was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnotify.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnotify' found
Package libnotify was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnotify.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnotify' found
kerneloops.c:34:18: error: glib.h: No such file or directory
kerneloops.c:35:23: error: dbus/dbus.h: No such file or directory
kerneloops.c:36:28: error: dbus/dbus-glib.h: No such file or directory
kerneloops.c:37:37: error: dbus/dbus-glib-lowlevel.h: No such file or directory
[...]

I dont know how it should be done in a right way.

--- kerneloops.c 2008-05-11 20:59:17.000000000 +0400
+++ kerneloops.c 2008-05-11 21:01:14.000000000 +0400
@@ -31,10 +31,10 @@

#include <curl/curl.h>

-#include <glib.h>
-#include <dbus/dbus.h>
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-lowlevel.h>
+#include <glib-2.0/glib.h>
+#include <dbus-1.0/dbus/dbus.h>
+#include <dbus-1.0/dbus/dbus-glib.h>
+#include <dbus-1.0/dbus/dbus-glib-lowlevel.h>

--- kerneloops-applet.c 2008-05-11 21:01:31.000000000 +0400
+++ kerneloops-applet.c 2008-05-11 21:02:35.000000000 +0400
@@ -38,11 +38,11 @@
#include <string.h>
#include <locale.h>

-#include <dbus/dbus-glib.h>
-#include <dbus/dbus.h>
-#include <dbus/dbus-glib-lowlevel.h>
+#include <dbus-1.0/dbus/dbus-glib.h>
+#include <dbus-1.0/dbus/dbus.h>
+#include <dbus-1.0/dbus/dbus-glib-lowlevel.h>

-#include <glib/gi18n.h>
+#include <glib-2.0/glib/gi18n.h>

#include <gtk/gtk.h>


Perhaps, Makefile also should by patched so as not to search libnotify if it builds without gtk.
Back to top
View user's profile Send private message
fireball-13
n00b
n00b


Joined: 05 Sep 2005
Posts: 61
Location: Moscow, RU

PostPosted: Sun May 11, 2008 5:17 pm    Post subject: Reply with quote

No, it doenot work.

Portage 2.1.5_rc10 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.24.7 i686)
=================================================================
System uname: 2.6.24.7 i686 Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz
Timestamp of tree: Sat, 10 May 2008 22:45:02 +0000
app-shells/bash: 3.2_p39
dev-lang/python: 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.2.3
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.62
sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.25-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch"
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Wed May 14, 2008 3:09 am    Post subject: Reply with quote

For me -march=native doesn't work. Had to back to -march=athlon64 to compile some programs.
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
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