Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy home page: puppylinux.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 09 Feb 2010, 12:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff)
searchmonkey: Gtk2 file searching program
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
muggins

Joined: 20 Jan 2006
Posts: 5648
Location: hobart

PostPosted: Sun 16 Mar 2008, 21:20    Post_subject:  searchmonkey: Gtk2 file searching program  

http://searchmonkey.sourceforge.net/index.php/Main_Page

Quote:
What is searchmonkey?

A fast real-time search engine for displaying regular expression matches (both file name and content) across multiple directories.






Menu->Filesystem->SearchMonkey
searchmonkey-0.8.1-i486.pet
Description 
pet

 Download 
Filename  searchmonkey-0.8.1-i486.pet 
Filesize  65.36 KB 
Downloaded  154 Time(s) 
Back to top
View user's profile Send_private_message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: Sun 11 May 2008, 06:40    Post_subject:  

Doesn't work on Puppy 4 - gives "Segmentation Fault" error. Tried compiling from source - same results.
Back to top
View user's profile Send_private_message Send_email 
muggins

Joined: 20 Jan 2006
Posts: 5648
Location: hobart

PostPosted: Sun 11 May 2008, 20:50    Post_subject:  

Hi Joshas,

yes, I just rebooted into pup4 and it's seg-faulting. Oddly ldd is showing all dependencies as being met. It must be some Gtk discrepancy. Did it compile without comlaint on pup4?

One of these days I'll have to get around to sussing out proper usage of gdb to track these sort of problems down.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 10943

PostPosted: Mon 12 May 2008, 00:45    Post_subject:  

Joshas wrote:
Doesn't work on Puppy 4 - gives "Segmentation Fault" error. Tried compiling from source - same results.


What is a segmentation fault? I got this trying to run Xara in Dingo (but has not yet been recompiled for Puppy 4)

_________________
Experimental Unofficial Puppy 4.3.2 Built by Barry Kauler Woof Powered test NOW
Back to top
View user's profile Send_private_message Send_email Visit_website 
muggins

Joined: 20 Jan 2006
Posts: 5648
Location: hobart

PostPosted: Mon 12 May 2008, 01:26    Post_subject:  

It usually results when a program accesses memory outside it's allocated space. Or maybe the program tries to access a resource at a particular memory location, but the resource isn't there. It can be a real pain tracking down the offending line/lines of code.
Back to top
View user's profile Send_private_message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: Mon 12 May 2008, 05:51    Post_subject:  

It compiles without errors on Puppy 4, not sure if there was any warnings. I tried using gdb, here's what I got:
Quote:
Program received signal SIGSEGV, Segmentation fault.
0xb7d479cf in gdk_window_invalidate_rect () from /usr/lib/libgdk-x11-2.0.so.0

I might retry debugging after reading a gdb manual.
Also, I've reported this bug to searchmonkey bug tracker at sourceforge.
Back to top
View user's profile Send_private_message Send_email 
muggins

Joined: 20 Jan 2006
Posts: 5648
Location: hobart

PostPosted: Mon 12 May 2008, 06:14    Post_subject:  

I think to use an binary with gdb you need to compile it with the debug info set.

Quote:

Before you can get started, the program you want to debug has to be compiled with debugging information in it. This is so gdb can work out the variables, lines and functions being used. To do this, compile your program under gcc (or g++) with an extra '-g' option:

gcc -g eg.c -o eg


If you wanted to try a gui frontend for gdb, I've uploaded a .pet of ddd in this thread. (Wouldn't it be ironic if ddd didn't work as well!).

There's also a tcl based gdb frontend called insight. Being tcl-based it's quite easy to get going...at least on pre-4 pups.
Back to top
View user's profile Send_private_message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: Mon 12 May 2008, 07:43    Post_subject:  

Thanks muggins, but ddd PET doesn't work on Puppy4. Something wrong with dependencies. Might try to make it work later, or even compile it, but now I'll just have to stick with commandline gdb.
EDIT: tried to compile ddd on Puppy4 - got an error:
Quote:

In file included from /usr/include/Xm/XmP.h:1646,
from ScrolleGEP.h:37,
from ScrolledGE.C:33:
/usr/include/X11/VendorP.h:87: error: previous declaration of 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage
/usr/include/Xm/VendorSP.h:58: error: conflicts with new declaration with 'C' linkage
make[2]: *** [ScrolledGE.o] Error 1

Lesstif compiled without problems.
Whole conversation got out of topic, maybe it's time for move?

Edited_time_total
Back to top
View user's profile Send_private_message Send_email 
muggins

Joined: 20 Jan 2006
Posts: 5648
Location: hobart

PostPosted: Mon 12 May 2008, 08:38    Post_subject:  

Joshas,

are you after searchmonkey in particular, or just any file search program? Have you looked at findwild?
Back to top
View user's profile Send_private_message 
Joshas

Joined: 21 Jan 2008
Posts: 26

PostPosted: Mon 12 May 2008, 09:44    Post_subject:  

I'm after searchmonkey, unless there's another file search application with "classic" interface and minimal set of dependencies. findwild is an interesting program, but the GUI is too weird. Another must is an ability to localize UI.

UPDATE: after compiling Insight (it took some time, and result weighs 50MB) I finally managed to get searchmonkey running - no more segmentation faults. To fix it, I just commented out two lines in interface.c source code:
1271: gtk_text_view_set_overwrite (GTK_TEXT_VIEW (textview1), TRUE);
1300: gtk_text_view_set_overwrite (GTK_TEXT_VIEW (textview4), TRUE);
I'm not sure what is wrong with theese lines (might need to check out GTK docs), and I have no idea how to fix it properly, so any help is welcome.
Back to top
View user's profile Send_private_message Send_email 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
hot copy
[ Time: 0.2847s ][ Queries: 9 (0.0200s) ][ Debug on ]