When I try to create a new project in the project wizard of Anjuta 1.1.1 adn 1.1.97, when I reach the point to enter a description in the wizard and hit the next button Anjuta segfaults and gives the following error on the terminal... (anjuta:3436): GLib-GObject-WARNING **: invalid cast from `GtkTextView' to `GtkEditable' I have searched the net and seems others have had the same error and problem in Gentoo but no fixes. :( Here is the last part of an strace also if this will help... write(3, "+\30\1\0", 4) = 4 read(3, 0xbffff350, 32) = -1 EAGAIN (Resource temporarily unavailable) select(4, [3], NULL, NULL, NULL) = 1 (in [3]) read(3, "\1\0Y\25\0\0\0\0_\1@\2\0\0\0\0\1\0\0\0\0\0\0\0000\253\337"..., 32) = 32ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}], 8, -1) = 1 ioctl(3, FIONREAD, [64]) = 0 read(3, "\5\1Y\25\214\r^\f\214\0\0\0a\1@\2\0\0\0\0\371\3/\3\n\0"..., 64) = 64 getpid() = 4057 write(2, "\n(anjuta:4057): GLib-GObject-WAR"..., 90 (anjuta:4057): GLib-GObject-WARNING **: invalid cast from `GtkTextView' to `GtkEditable' ) = 90 --- SIGSEGV (Segmentation fault) @ 0 (0) --- write(3, "\33\30\2\0\0\0\0\0", 8) = 8 write(3, " \30\2\0\0\0\0\0", 8) = 8 write(3, "+\30\1\0", 4) = 4 read(3, 0xbfffde60, 32) = -1 EAGAIN (Resource temporarily unavailable) select(4, [3], NULL, NULL, NULL) = 1 (in [3]) read(3, "\1\0\\\25\0\0\0\0_\1@\2\0\0\0\0\1\0\0\0\0\0\0\0000\253"..., 32) = 32 fork() = 4078 wait4(4078, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 4078 --- SIGCHLD (Child exited) @ 0 (0) --- wait4(0, 0xbfffdb04, WNOHANG, NULL) = -1 ECHILD (No child processes) sigreturn() = ? (mask now [SEGV RTMIN]) _exit(1) = ? Reproducible: Always Steps to Reproduce: 1. Run Anjuta 2. Select Application wizard from the dialog box. 3. Create any project. 4. Fill out the necessary info on first part of wizard. 5. Select "Forward" button 6. Enter in a description on second part of the wizard. 7. Select "Forward" button and you will recieve the crash... Actual Results: I get the dialog box that the program has crashed. Expected Results: It should have continued to the next part of the wizard or create the project.
This is an upstream bug and probably can't be fixed with just applying a few lines of a patch and as of yet there seems to be no solution (see bug ID 740881 on SourceForge). I guess you'll have to wait for an upstream fix. But you have to deal that out with lisa ;)
Yes, this is an upstream error... Going to mark this as 'CANTFIX' til upstream can fix it.
I got it working by installing all components (and libs) they specify on their page, either as requirement or as an option. The components I got installed are: Calculating dependencies ...done! [ebuild R ] dev-util/devhelp-0.7 [ebuild R ] x11-libs/libzvt-2.0.1-r2 [ebuild R ] dev-cpp/gtkmm-2.2.7 [ebuild R ] dev-cpp/libgnomemm-1.3.10 [ebuild R ] dev-cpp/libglademm-2.0.1 [ebuild R ] dev-cpp/gconfmm-2.0.1 [ebuild R ] dev-cpp/libgnomecanvasmm-2.0.1 [ebuild R ] dev-cpp/libgnomeuimm-2.0.0 [ebuild R ] dev-util/glademm-2.0.1 Try with them, then emerge anjuta-1.1.97. It worked for me. While at their home page they said these are optionals, the user need them for the wizards (gtk, gnome, etc).
but the order of installation is very important, try the same order. I can
but the order of installation is very important, try the same order. I can´t remember now, but one of them (gconfmm or glademm) depends on the others, but the ebuild do not have the dependencies.
Forgot the package glade, since it is required by anjuta if using as a gnome development suite. I emerge it just after devhelp. Also I would like to mention that gtkmm refuse to build under gcc-3.3.1-r3, see bug http://bugs.gentoo.org/show_bug.cgi?id=29770 People that would like to try anjuta with the steps I describe must downgrade to gcc-3.3.1-r1 first.
Created attachment 18406 [details] new anjuta-1.1.97 ebuild with fixed dependencies This ebuild resolves (or at least It worked for me) anjuta depencies that causes the error reported. This ebuild require also the ebuild submited at http://bugs.gentoo.org/show_bug.cgi?id=29780 But as I reported before, unstable users should need to downgrade to gcc-3.3.1-r1 in order to compile one of the dependencies. The ebuild include even support for installing optional components that can be used by anjuta like wxGtk and libsdl.
Submitted ebuild depends on bug 29654.
As soon as bug 29654 is resolved for gcc 3.3.1 users I'll put this in. Nice work Mario.
Have you checked this lisa ? The deps are incorrect, the original deps are much better. Needed deps got removed, unneeded deps added, runtime and buildtime deps moved to the wrong var, etc. And why to include all sorts of (optional) deps while they are only runtime project options, it's ridiculous to add every possible supported project type as dep just because it is possible. I don't see any needed changes in here. Well, except one in the ebuild that didn't get done during the .1 -> .97 bump, i'll leave that as an excercise to whoever did that bump ;) And mario, next time please open a new bug. Your improvement bug and the one in comment #1 are not related.
in cvs, same ebuild foser.
Lise please remove that ebuild for now, it is not correct, far from it. Let's go over this in IRC and i'll explain exactly why. Thanks.
My apology for the trouble with the ebuild, next time will get more info before making drastic changes in dependencies. But the suggestion I made was after looking over some forums and google for that error after a failure installation of anjuta 1.1.97 no matter if used sources or ebuild. After checking that others (not gentoo users) that do not have the "Red Hat RPM" had the same problem, I decided to check all the dependencies either optional like sdl or needed ones. After installing all of them I proceed to install anjuta and the problem was absent from my computer. That's the reason I decided to modify the ebuild. And some of them (obvious not all) were present on my RH9 server at work. The first time I do the installation was on a stable Gnome 2.2 gentoo machine, but the ebuild has done on a unstable Gnome 2.4/gtk 2.2.4.
fixed in 1.1.98, foser i'll mangle the 1.1.98 ebuild tonight or next week to section off the "optional" dependencies with local USE flags.