| View previous topic :: View next topic |
| Author |
Message |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Thu Jan 19, 2006 10:52 am Post subject: mysql-query-browser: Segmentation Fault |
|
|
I have install mysql-query-browser 1.1.17
and when I start it, segmentation fault ...
so I have create a 1.1.18 package
and same think
any body have the same problem ? and have found a solution ?
here my emerge info
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-nitro2 i686)
=================================================================
System uname: 2.6.14-nitro2 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.0_pre14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="POSIX"
LINGUAS="fr"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://utioptima/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr crypt cups curl dvd dvdr eds emacs emboss encode esd exif expat fam ffmpeg firefox font-server foomaticdb fortran gdbm gif glut gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib ipv6 javascript jikes jpeg junit kde kdeenablefinal lcms libg++ libwww mad mhash mikmod mmx mng mp3 mpeg musicbrainz mysql ncurses nls odbc ogg oggvorbis opengl oss pam pcre pdflib perl php pic png python qt quicktime rdesktop readline samba sdl speex spell sqlite sse sse2 ssl tcltk tcpd threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb utf8 vorbis wifi win32codecs xine xml xml2 xmms xv xvid zlib video_cards_radeon linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
thx for support _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Thu Jan 19, 2006 7:21 pm Post subject: |
|
|
well, I apply a patch found on google ... so now it work fine ...
if anybody want it, just ask, I will post it here _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Thu Jan 19, 2006 7:29 pm Post subject: |
|
|
| yes please post the patch. |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Fri Jan 20, 2006 8:25 am Post subject: |
|
|
ok, here the patch
| Code: |
diff -ru mysql-query-browser.orig/source/linux/MQBookmarkBrowser.cc mysql-query-browser/source/linux/MQBookmarkBrowser.cc
--- mysql-query-browser-1.1.18.orig/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2005-10-13 10:22:40.000000000 +0200
+++ mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2006-01-19 12:12:40.000000000 +0100
@@ -257,7 +257,8 @@
{
for (unsigned int i=0; i < _menu.items().size(); i++)
_menu.items()[i].set_sensitive(false);
- _menu.items()[3].set_sensitive(true); // New Folder
+ if (_menu.items().size() > 3)
+ _menu.items()[3].set_sensitive(true); // New Folder
}
}
|
put the file in files/1.1.18-bookmarkbug.patch
so mv mysql-query-browser-1.1.17.ebuild to mysql-query-browser-1.1.18.ebuild
and add this to the file :
| Code: |
src_compile() {
epatch ${FILESDIR}/1.1.18-bookmarkbug.patch
|
so ebuild mysql-query-browser-1.1.18.ebuild digest
now you can install it
have fun _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
Gergan Penkov Veteran


Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Fri Jan 20, 2006 2:49 pm Post subject: |
|
|
Thanks,
I posted it in the corresponding bug on bugzilla - https://bugs.gentoo.org/show_bug.cgi?id=115540 _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Fri Jan 20, 2006 4:22 pm Post subject: |
|
|
the patch isnt working for me... not sure what i have done wrong though.
| Code: |
>>> Source unpacked.
* Applying 1.1.18-bookmarkbug.patch ...
* Failed Patch: 1.1.18-bookmarkbug.patch !
* ( /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/mysql-query-browser-1.1.18/temp/1.1.18-bookmarkbug.patch-21009.out
!!! ERROR: dev-db/mysql-query-browser-1.1.18 failed.
!!! Function epatch, Line 350, Exitcode 0
!!! Failed Patch: 1.1.18-bookmarkbug.patch!
!!! If you need support, post the topmost build error, NOT this status message.
|
so then i take a look at /var/tmp/portage/mysql-query-browser-1.1.18/temp/1.1.18-bookmarkbug.patch-21009.out and i get
| Code: |
***** 1.1.18-bookmarkbug.patch *****
====================================
PATCH COMMAND: patch -p0 -g0 --no-backup-if-mismatch < /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch
====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru mysql-query-browser/source/linux/MQBookmarkBrowser.cc mysql-query-browser/source/linux/MQBookmarkBrowser.cc
|--- mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2005-10-13 10:22:40.000000000 +0200
|+++ mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2006-01-19 12:12:40.000000000 +0100
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
====================================
PATCH COMMAND: patch -p1 -g0 --no-backup-if-mismatch < /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch
====================================
patching file mysql-query-browser/source/linux/MQBookmarkBrowser.cc
Hunk #1 FAILED at 257.
1 out of 1 hunk FAILED -- saving rejects to file mysql-query-browser/source/linux/MQBookmarkBrowser.cc.rej
====================================
PATCH COMMAND: patch -p2 -g0 --no-backup-if-mismatch < /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch
====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru mysql-query-browser/source/linux/MQBookmarkBrowser.cc mysql-query-browser/source/linux/MQBookmarkBrowser.cc
|--- mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2005-10-13 10:22:40.000000000 +0200
|+++ mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2006-01-19 12:12:40.000000000 +0100
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
====================================
PATCH COMMAND: patch -p3 -g0 --no-backup-if-mismatch < /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch
====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru mysql-query-browser/source/linux/MQBookmarkBrowser.cc mysql-query-browser/source/linux/MQBookmarkBrowser.cc
|--- mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2005-10-13 10:22:40.000000000 +0200
|+++ mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2006-01-19 12:12:40.000000000 +0100
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
====================================
PATCH COMMAND: patch -p4 -g0 --no-backup-if-mismatch < /usr/portage/dev-db/mysql-query-browser/files/1.1.18-bookmarkbug.patch
====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru mysql-query-browser/source/linux/MQBookmarkBrowser.cc mysql-query-browser/source/linux/MQBookmarkBrowser.cc
|--- mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2005-10-13 10:22:40.000000000 +0200
|+++ mysql-query-browser-1.1.18/mysql-query-browser/source/linux/MQBookmarkBrowser.cc 2006-01-19 12:12:40.000000000 +0100
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
|
not sure what else to look for. I changed part of the patch where it read '--- mysql-query-browser-1.1.18.orig" to read "--- mysql-query-browser-1.1.18" because i dont have a ".orig" anywhere in my sources or files. But i get the same error either way.
Last edited by imageek on Fri Jan 20, 2006 4:29 pm; edited 2 times in total |
|
| Back to top |
|
 |
vincent_bachelier Tux's lil' helper


Joined: 26 Sep 2004 Posts: 96
|
Posted: Fri Jan 20, 2006 4:24 pm Post subject: |
|
|
put epatch under src_compile
not in src_unpack _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Fri Jan 20, 2006 4:37 pm Post subject: |
|
|
i have it under src_compile. I had it as the first line, it needs to go at the bottom apparently.
Thanks  |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Fri Jan 20, 2006 4:40 pm Post subject: |
|
|
ok i replied to soon. now i get the error at the very end of the compile. ... i dunno wtf im doing wrong here.
here is the section of my src_compile from the ebuild. where does it need to go
| Code: |
src_compile() {
cd "${S}"/mysql-gui-common
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed"
cd "${S}"/mysql-query-browser
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed"
epatch ${FILESDIR}/1.1.18-bookmarkbug.patch
|
|
|
| Back to top |
|
 |
Gergan Penkov Veteran


Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Fri Jan 20, 2006 4:48 pm Post subject: |
|
|
| Code: | src_compile() {
cd "${S}"/mysql-gui-common
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed"
cd "${S}"/mysql-query-browser
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed"
epatch ${FILESDIR}/1.1.18-bookmarkbug.patch |
should be sth like
| Code: | src_compile() {
cd "${S}"
epatch ${FILESDIR}/1.1.18-bookmarkbug.patch
cd "${S}"/mysql-gui-common
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed"
cd "${S}"/mysql-query-browser
econf --with-commondirname=common/query-browser || die "econf failed"
emake || die "emake failed" |
second you could have problems applying the patch because they use windows encoding for the source
so download from bugzilla as the file there should be ok - works for me. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Fri Jan 20, 2006 5:10 pm Post subject: |
|
|
still not working for me. I know im not this stupid.. not always anyway
I will give my brain a rest and come back to it later. |
|
| Back to top |
|
 |
imageek Tux's lil' helper


Joined: 29 Aug 2002 Posts: 77 Location: Richardson, TX
|
Posted: Fri Jan 20, 2006 9:44 pm Post subject: |
|
|
| doh! as you said they did windows encoding for the source. all the files had nice little in them. doing a curl on the file name instead of copy/pasting it worked great. |
|
| Back to top |
|
 |
RichieB Apprentice


Joined: 04 Feb 2004 Posts: 170
|
Posted: Mon Jan 23, 2006 12:32 pm Post subject: Thanks! |
|
|
Worked most excellently. Thanks for the patch.
RB |
|
| Back to top |
|
 |
bludger Guru

Joined: 09 Apr 2003 Posts: 389
|
Posted: Sun Feb 05, 2006 6:37 pm Post subject: |
|
|
| will there be a new ebuild released? |
|
| Back to top |
|
 |
|