Discussion:
unable to compile svn revision 2577 on Gentoo 64 bit
Petar Kostov
2012-12-02 16:33:24 UTC
Permalink
Hello,
a few days ago I updated my Gentoo. Since then I am totally unable to
create directories with emelfm2 - it just crashes with the following
message:

(emelfm2:29219): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
Segmentation fault

So I decided to compile the latest emelfm2 from svn. But the compilation
exits with the following message:

***@peter ~/install/emelfm2_svn $ make
compiling 'src/config/e2_cl_option.c'
src/config/e2_cl_option.c: In function '_e2_cl_option_print_build':
src/config/e2_cl_option.c:108:22: error: 'BUILDOPTS' undeclared (first
use in this function)
src/config/e2_cl_option.c:108:22: note: each undeclared identifier is
reported only once for each function it appears in
make: *** [objs/src/config/e2_cl_option.o] Error 1

I am running:
gcc-4.5.4, glibc-2.15-r3, kernel: 3.3.8-gentoo x86_64
x11-libs/gtk+-2.24.12:2
x11-libs/gtk+-3.4.4:3

If you require more info, let me know.
I will appreciate your help,
Petar Kostov
t***@onepost.net
2012-12-02 23:26:59 UTC
Permalink
On Sun, 02 Dec 2012 18:33:24 +0200
Post by Petar Kostov
Hello,
a few days ago I updated my Gentoo. Since then I am totally unable to
create directories with emelfm2 - it just crashes with the following
(emelfm2:29219): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
Segmentation fault
That'll be tough to track down, without more insight.

Can you build with DEBUG=1, run with, say, gdb, and get a backtrace after segfault?
Post by Petar Kostov
So I decided to compile the latest emelfm2 from svn. But the compilation
compiling 'src/config/e2_cl_option.c'
src/config/e2_cl_option.c:108:22: error: 'BUILDOPTS' undeclared (first
use in this function)
src/config/e2_cl_option.c:108:22: note: each undeclared identifier is
reported only once for each function it appears in
make: *** [objs/src/config/e2_cl_option.o] Error 1
gcc-4.5.4, glibc-2.15-r3, kernel: 3.3.8-gentoo x86_64
x11-libs/gtk+-2.24.12:2
x11-libs/gtk+-3.4.4:3
If you require more info, let me know.
I will appreciate your help,
Petar Kostov
BUILDOPTS should be #DEFINE'd in file 'build.h', which is populated from the $(BUILD_FILE) target in file 'Makefile'.

Does this variable exist in your build.h?

Regards
Tom
t***@onepost.net
2012-12-02 23:41:50 UTC
Permalink
On Mon, 3 Dec 2012 10:26:59 +1100
Post by t***@onepost.net
On Sun, 02 Dec 2012 18:33:24 +0200
Post by Petar Kostov
Hello,
a few days ago I updated my Gentoo. Since then I am totally unable to
create directories with emelfm2 - it just crashes with the following
(emelfm2:29219): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
Segmentation fault
That'll be tough to track down, without more insight.
Can you build with DEBUG=1, run with, say, gdb, and get a backtrace after segfault?
Actually, no need to rebuild, I can see it segfault here, too. The problem code is involved with gtk3 styling, so maybe it's some internal bug. Seems like yet another gtk3 workaround is needed.

Regards
Tom
Petar Kostov
2012-12-03 16:12:14 UTC
Permalink
Post by t***@onepost.net
BUILDOPTS should be #DEFINE'd in file 'build.h', which is populated from the $(BUILD_FILE) target in file 'Makefile'.
Does this variable exist in your build.h?
No, it doesn't. But after make clean the problem was resolved and
emelfm2 compiled correctly. Sorry for not figuring this by myself.

Still crashes when trying to 'Make dir', but it's a separate issue i
suppose.

Greetings,
Petar
t***@onepost.net
2012-12-03 20:45:39 UTC
Permalink
On Mon, 03 Dec 2012 18:12:14 +0200
Post by Petar Kostov
Post by t***@onepost.net
BUILDOPTS should be #DEFINE'd in file 'build.h', which is populated from the $(BUILD_FILE) target in file 'Makefile'.
Does this variable exist in your build.h?
No, it doesn't. But after make clean the problem was resolved and
emelfm2 compiled correctly. Sorry for not figuring this by myself.
Still crashes when trying to 'Make dir', but it's a separate issue i
suppose.
Svn has some changes related to that - basically an extra restriction on multi-threading, which seems to prevent the asynchronous bad behaviour of gtk3.

Regards
Tom
Petar Kostov
2012-12-03 20:56:39 UTC
Permalink
On Mon, 03 Dec 2012 18:12:14 +0200 Petar
Post by Petar Kostov
Post by t***@onepost.net
BUILDOPTS should be #DEFINE'd in file 'build.h', which is
populated from the $(BUILD_FILE) target in file 'Makefile'.
Does this variable exist in your build.h?
No, it doesn't. But after make clean the problem was resolved and
emelfm2 compiled correctly. Sorry for not figuring this by myself.
Still crashes when trying to 'Make dir', but it's a separate issue
i suppose.
Svn has some changes related to that - basically an extra restriction
on multi-threading, which seems to prevent the asynchronous bad
behaviour of gtk3.
Regards Tom
Yes, it's working now. Compiled and created a few directories and no
crash :) Will test it more extensively the next few days.

Greetings,
Petar

Loading...