You are not logged in.
Hi,
I'm trying to install the recently released mysql-workbench for linux.
I wrote a PKGBUILD:
pkgname=mysql-workbench
pkgver=5.1.2
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libxml2 libsigc++2.0 libzip gtkmm freeglut pcre libgnome gtk2 pango cairo e2fsprogs)
makedepends=(autoconf automake libtool gcc ctemplate)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(ftp://ftp.mysql.com/pub/mysql/download/gui-tools/$pkgname-$pkgver-alpha-linux.tar.gz)
noextract=()
md5sums=('c60b3d3542f7a5d113a422c062ec3050')
build() {
cd "$srcdir/$pkgname-$pkgver-alpha-linux"
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
Build instructions are located here: http://dev.mysql.com/workbench/?page_id=152
I think all the dependencies are listed, and it compiles fine, but when I launch the app it segfaults:
$> mysql-workbench
** Message: MWB_PLUGIN_DIR is unset! Setting MWB_PLUGIN_DIR to predifined value '../lib/mysql-workbench'
(mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
(mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
(mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
MGGladeXML: _xml -> 0x8a38b90
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
/usr/bin/mysql-workbench: line 13: 18056 Segmentation fault $bindirname/mysql-workbench-bin $*
I also tried updating the ctemplate PKGBUILD to version 0.91 (since the one in community is an old 0.4 version)
pkgname=ctemplate
pkgver=0.91
pkgrel=1
pkgdesc="A library implementing a simple but powerful template language for C++."
arch=(i686 x86_64)
url="http://code.google.com/p/google-ctemplate/"
license="BSD"
depends=('gcc')
options=()
source=(http://google-ctemplate.googlecode.com/files/$pkgname-$pkgver.tar.gz)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
md5sums=()
Recompiled mysql-workbench, but still segfaults as before.
Any guess?
Thanks.
Offline
Dd you try to run namcap on your built? what does it say?
Offline
Never used namcap, interesting tool...
I get some warnings but I'm not really sure how to interpret them
$> namcap mysql-workbench-5.1.2-1-i686.pkg.tar.gz
mysql-workbench E: Dependency detected and not included (mesa) from files ['usr/lib/mysql-workbench/libguiutil.so', 'usr/lib/mysql-workbench/libsqlparser.so.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0.0.0', 'usr/lib/mysql-workbench/db.wbp.so', 'usr/lib/mysql-workbench/db.mysql.wbp.so.0', 'usr/lib/mysql-workbench/libgrtui.so.0.0.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so', 'usr/lib/mysql-workbench/libmforms.so.0', 'usr/bin/mysql-workbench-bin', 'usr/lib/mysql-workbench/libmdcanvasgtk.so.0.0.0', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0.0.0', 'usr/lib/mysql-workbench/libgrt.so', 'usr/lib/mysql-workbench/libcdbc.mysql.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0', 'usr/lib/mysql-workbench/libgrtdbbe.so', 'usr/lib/mysql-workbench/libcdbc.so.0.0.0', 'usr/lib/mysql-workbench/libgrtbe.so.0.0.0', 'usr/lib/mysql-workbench/libcdbc.mysql.so', 'usr/lib/mysql-workbench/modules/forms.grt.so.0', 'usr/lib/mysql-workbench/libcdbc.so', 'usr/lib/mysql-workbench/db.wbp.so.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so', 'usr/lib/mysql-workbench/libmforms.so', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so', 'usr/lib/mysql-workbench/libgrtdbbe.so.0', 'usr/lib/mysql-workbench/libmforms.so.0.0.0', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so.0.0.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so.0', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so', 'usr/lib/mysql-workbench/modules/forms.grt.so', 'usr/lib/mysql-workbench/libcanvasbe.so', 'usr/lib/mysql-workbench/libcanvasbe.so.0', 'usr/lib/mysql-workbench/db.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libcdbc.so.0', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvas.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so', 'usr/lib/mysql-workbench/libgrt.so.0.0.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so.0', 'usr/lib/mysql-workbench/libmdcanvas.so.0.0.0', 'usr/lib/mysql-workbench/libguiutil.so.0', 'usr/lib/mysql-workbench/libgrtbe.so','usr/lib/mysql-workbench/libcdbc.mysql.so.0', 'usr/lib/mysql-workbench/libsqlparser.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvasgtk.so', 'usr/lib/mysql-workbench/libcanvasbe.so.0.0.0', 'usr/lib/mysql-workbench/libgrtui.so.0', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so.0', 'usr/lib/mysql-workbench/libgrt.so.0', 'usr/lib/mysql-workbench/libguiutil.so.0.0.0', 'usr/lib/mysql-workbench/libgrtdbbe.so.0.0.0', 'usr/bin/grtshell', 'usr/lib/mysql-workbench/libsqlparser.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0', 'usr/lib/mysql-workbench/db.mysql.wbp.so', 'usr/lib/mysql-workbench/libgrtui.so', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so.0', 'usr/lib/mysql-workbench/modules/forms.grt.so.0.0.0', 'usr/lib/mysql-workbench/db.mysql.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvas.so.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so', 'usr/lib/mysql-workbench/libgrtbe.so.0', 'usr/lib/mysql-workbench/libmdcanvasgtk.so.0']
mysql-workbench E: Dependency detected and not included (ctemplate) from files ['usr/lib/mysql-workbench/modules/db.mysql.grt.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0']
mysql-workbench W: Dependency included but already satisfied (libxml2)
mysql-workbench W: Dependency included but already satisfied (libsigc++2.0)
mysql-workbench W: Dependency included and not needed (freeglut)
mysql-workbench W: Dependency included but already satisfied (pcre)
mysql-workbench W: Dependency included but already satisfied (gtk2)
mysql-workbench W: Dependency included but already satisfied (pango)
mysql-workbench W: Dependency included but already satisfied (cairo)
mysql-workbench W: File (usr/lib/mysql-workbench/db.mysql.wbp.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/db.wbp.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libcanvasbe.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libcdbc.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libcdbc.mysql.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libgrt.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libgrtbe.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libgrtdbbe.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libgrtsqlparser_mysql.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libgrtui.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libguiutil.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libmdcanvas.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libmdcanvasgtk.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libmforms.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/libsqlparser.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/db.mysql.grt.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/dbutils.grt.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/forms.grt.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/wb.model.editors.wbp.la) is a libtool file.
mysql-workbench W: File (usr/lib/mysql-workbench/modules/wb.model.grt.la) is a libtool file.
It seems I missed the mesa dependency (but is a dependency of freeglut I think, which is listed)
I also guessed wrong inserting ctemplate as a makedepends. Moved to depends now, but I had it installed anyway.
I'm not sure about the "Dependency included but already satisfied" and "is a libtool file" warnings though...
Offline
Are you still working with this or have you put this on hold?
Matt
"It is very difficult to educate the educated."
Offline
Offline
I updated the PKGBUILD for 5.1.3:
pkgname=mysql-workbench
pkgver=5.1.3
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libzip gtkmm mesa libgnome ctemplate)
makedepends=(autoconf automake libtool gcc e2fsprogs)
provides=()
conflicts=()
replaces=()
backup=()
options=(!libtool)
install=
source=(ftp://ftp.mysql.com/pub/mysql/download/gui-tools/$pkgname-$pkgver-alpha.tar.gz)
noextract=()
md5sums=('1510622a8d697a32e74e80e5f38c998b')
build() {
cd "$srcdir/$pkgname-$pkgver-alpha"
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
It builds fine. No namcap warnings. Still same error:
$> mysql-workbench
(mysql-workbench-bin:3505): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
(mysql-workbench-bin:3505): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
(mysql-workbench-bin:3505): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)
/usr/bin/mysql-workbench: line 14: 3505 Segmentation fault $bindirname/mysql-workbench-bin $*
Offline
Thanks for the info. I was just checking as this tool would come in handy! Thanks again for your efforts!
Matt
"It is very difficult to educate the educated."
Offline
A couple of days ago 5.1.4 was released. I built the package and got firther than last time. I had to set the EXPORT stuff manually that was set in /usr/bin/mysql-workbench, but I still get errors. The one that stands out at me is the
"*** glibc detected *** ./mysql-workbench-bin: corrupted double-linked list: 0x0000000002a50730 ***"
I have no clue what that means.
Here is everything it spits out. And if it matters, this is on x86_64.
./mysql-workbench-bin
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.sqlparser.grt.so' (cpp)
** (mysql-workbench-bin:31615): WARNING **: Native C++ module classes must have the suffix Impl to avoid confusion between implementation and wrapper classes (MysqlSqlFacade)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so' (cpp)
** Message: WARNING: Could not open module /usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so (/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so: undefined symbol: _ZN19Mysql_sql_parser_feC1Ev)
** Message: WARNING: Could not load wb.mysql.import.grt.so: Cannot open /usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.wbp.so' (cpp)
*** glibc detected *** ./mysql-workbench-bin: corrupted double-linked list: 0x0000000002a50730 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f22cf7edfa8]
/lib/libc.so.6[0x7f22cf7ef998]
/lib/libc.so.6(cfree+0x76)[0x7f22cf7efb66]
./mysql-workbench-bin(_ZN10app_PluginD0Ev+0xb8)[0x6025c8]
./mysql-workbench-bin(_ZN2wb13WorkbenchImpl13getPluginInfoEv+0x1505)[0x5ef5d5]
./mysql-workbench-bin(_ZN3grt14ModuleFunctor0INS_7ListRefI10app_PluginEEN2wb13WorkbenchImplEE12perform_callERKNS_11BaseListRefE+0x21)[0x5fa6b1]
/usr/lib/mysql-workbench/libgrt.so.0(_ZN4sigc8internal10slot_call1INS_18bound_mem_functor1IN3grt8ValueRefENS3_17ModuleFunctorBaseERKNS3_11BaseListRefEEES4_S8_E7call_itEPNS0_8slot_repES8_+0x3c)[0x7f22d7e0867c]
/usr/lib/mysql-workbench/libgrt.so.0(_ZN3grt6Module13call_functionERKSsRKNS_11BaseListRefE+0x88)[0x7f22d7e03798]
/usr/lib/mysql-workbench/libgrtbe.so.0(_ZN3bec17PluginManagerImpl14rescan_pluginsEv+0x222)[0x7f22d777a1b2]
./mysql-workbench-bin(_ZN2wb9WBContext16init_plugins_grtEPN3grt3GRTEPNS_9WBOptionsE+0x3e4)[0x566454]
./mysql-workbench-bin(_ZN2wb9WBContext17setup_context_grtEPN3grt3GRTEPNS_9WBOptionsE+0x4c)[0x57fe5c]
./mysql-workbench-bin(_ZN4sigc8internal10slot_call1INS_12bind_functorILin1ENS_18bound_mem_functor2IN3grt8ValueRefEN2wb9WBContextEPNS4_3GRTEPNS6_9WBOptionsEEESB_NS_3nilESD_SD_SD_SD_SD_EES5_S9_E7call_itEPNS0_8slot_repERKS9_+0x29)[0x5813b9]
/usr/lib/mysql-workbench/libgrtbe.so.0(_ZN13GRTSimpleTask7executeEPN3grt3GRTE+0x72)[0x7f22d7746792]
/usr/lib/mysql-workbench/libgrtbe.so.0(_ZN3bec13GRTDispatcher12execute_taskEPNS_11GRTTaskBaseE+0x3d)[0x7f22d774346d]
/usr/lib/mysql-workbench/libgrtbe.so.0(_ZN3bec13GRTDispatcher13worker_threadEPv+0x3a6)[0x7f22d7744886]
/usr/lib/libglib-2.0.so.0[0x7f22d1e35ce4]
/lib/libpthread.so.0[0x7f22d0850fe7]
/lib/libc.so.6(clone+0x6d)[0x7f22cf84923d]
======= Memory map: ========
00400000-007f8000 r-xp 00000000 08:06 2148057 /usr/bin/mysql-workbench-bin
009f8000-009ff000 rw-p 003f8000 08:06 2148057 /usr/bin/mysql-workbench-bin
009ff000-00a03000 rw-p 009ff000 00:00 0
02722000-02a6d000 rw-p 02722000 00:00 0 [heap]
40f8e000-40f90000 rwxp 00000000 00:0d 1396 /dev/zero
41b8c000-41b8d000 ---p 41b8c000 00:00 0
41b8d000-4238d000 rwxp 41b8d000 00:00 0
7f22c0000000-7f22c0021000 rw-p 7f22c0000000 00:00 0
7f22c0021000-7f22c4000000 ---p 7f22c0021000 00:00 0
7f22c7878000-7f22c7907000 r-xp 00000000 08:06 2400999 /usr/lib/mysql-workbench/plugins/db.wbp.so.0.0.0
7f22c7907000-7f22c7b06000 ---p 0008f000 08:06 2400999 /usr/lib/mysql-workbench/plugins/db.wbp.so.0.0.0
7f22c7b06000-7f22c7b0b000 rw-p 0008e000 08:06 2400999 /usr/lib/mysql-workbench/plugins/db.wbp.so.0.0.0
7f22c7b0b000-7f22c7b5f000 r-xp 00000000 08:06 2401001 /usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so.0.0.0
7f22c7b5f000-7f22c7d5f000 ---p 00054000 08:06 2401001 /usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so.0.0.0
7f22c7d5f000-7f22c7d67000 rw-p 00054000 08:06 2401001 /usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so.0.0.0
7f22c7d67000-7f22c7dec000 r-xp 00000000 08:06 2400998 /usr/lib/mysql-workbench/plugins/db.mysql.wbp.so.0.0.0
7f22c7dec000-7f22c7feb000 ---p 00085000 08:06 2400998 /usr/lib/mysql-workbench/plugins/db.mysql.wbp.so.0.0.0
7f22c7feb000-7f22c7ff0000 rw-p 00084000 08:06 2400998 /usr/lib/mysql-workbench/plugins/db.mysql.wbp.so.0.0.0
7f22c7ff0000-7f22c80b5000 r-xp 00000000 08:06 2401010 /usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so.0.0.0
7f22c80b5000-7f22c82b5000 ---p 00Aborted
Last edited by mrunion (2008-11-12 03:11:30)
Matt
"It is very difficult to educate the educated."
Offline
Also, here was the PKGBUILD I used (it was a quick hack!)
pkgname=mysql-workbench
pkgver=5.1.4
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libzip gtkmm mesa libgnome ctemplate)
makedepends=(autoconf automake libtool gcc e2fsprogs)
provides=()
conflicts=()
replaces=()
backup=()
options=(!libtool)
install=
source=(ftp://ftp.mysql.com/pub/mysql/download/gui-tools/$pkgname-5.1.4alpha.tar.gz)
noextract=()
md5sums=('5cb8543f3263aabf6c57831f8a3b98c9')
build() {
cd "$srcdir/$pkgname-5.1.4alpha"
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
Matt
"It is very difficult to educate the educated."
Offline
Not working here (32bits)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.sqlparser.grt.so' (cpp)
** (mysql-workbench-bin:17157): WARNING **: Native C++ module classes must have the suffix Impl to avoid confusion between implementation and wrapper classes (MysqlSqlFacade)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so' (cpp)
** Message: WARNING: Could not open module /usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so (/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so: undefined symbol: _ZN19Mysql_sql_parser_feC1Ev)
** Message: WARNING: Could not load wb.mysql.import.grt.so: Cannot open /usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)
** (mysql-workbench-bin:17157): WARNING **: GRT: releasing invalid object
/usr/bin/mysql-workbench: line 16: 17157 Erreur de segmentation $bindirname/mysql-workbench-bin $*
Offline
I built the package based on the last posted PKGBUILD, and added --enable-debug=yes to the configure flags. Got this backtrace, which looks a bit worthless:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb611b710 (LWP 5381)]
0xb66c6aa3 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0xb66c6aa3 in strlen () from /lib/libc.so.6
#1 0x081368d2 in main (argc=Cannot access memory at address 0x0
) at /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/char_traits.h:262
Offline
I updated the PKGBUILD for version 5.1.5 that's just been released.
pkgname=mysql-workbench
pkgver=5.1.5
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libzip gtkmm mesa libgnome ctemplate)
makedepends=(autoconf automake libtool gcc e2fsprogs)
provides=()
conflicts=()
replaces=()
backup=()
options=(!libtool)
install=
source=(ftp://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/MySQLGUITools/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('07e863440014325d13b4bbcaef77f1e2')
build() {
cd "$srcdir/$pkgname-$pkgver"
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
It still doesn't work but, it seems to be progressing:
$> mysql-workbench
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.sqlparser.grt.so' (cpp)
** (mysql-workbench-bin:18466): WARNING **: Native C++ module classes must have the suffix Impl to avoid confusion between implementation and wrapper classes (MysqlSqlFacade)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.validation.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.validation.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.reporting.wbp.so' (cpp)
** Message: WARNING: Could not get pointer to grt_module_init in module /usr/lib/mysql-workbench/plugins/wb.model.reporting.wbp.so (`grt_module_init': /usr/lib/mysql-workbench/plugins/wb.model.reporting.wbp.so: undefined symbol: grt_module_init)
** Message: WARNING: Could not load wb.model.reporting.wbp.so: Invalid module /usr/lib/mysql-workbench/plugins/wb.model.reporting.wbp.so
** (mysql-workbench-bin:18466): WARNING **: GRT: releasing invalid object
It outputs this messages and then it just stays there and I have to kill the process;
Offline
With the following package build I was able to get beyond the stage where all problems arised. Seems the MySQL folks have fixed these issues in 5.1.7. But I haven't really tested the application itself.
pkgname=mysql-workbench-oss
pkgver=5.1.7
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libzip gtkmm mesa libgnome ctemplate)
makedepends=(autoconf automake libtool gcc e2fsprogs)
provides=()
conflicts=()
replaces=()
backup=()
options=(!libtool)
install=
source=(ftp://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/MySQLGUITools/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('a546059faa992f223caf12fd6f35c04c')
build() {
cd "$srcdir/$pkgname-$pkgver"
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
Offline
I'm trying it now....
Matt
"It is very difficult to educate the educated."
Offline
In the meantime there is also an entry at the AUR (http://aur.archlinux.org/packages.php?ID=22284). I noticed that after posting my PKGBUILD here.
Offline
Yup, seems to work fine for me too! Thanks everyone!
Matt
"It is very difficult to educate the educated."
Offline
Anybody has any luck building 5.2.8 beta? There are a bunch of new features added to 5.2.8: http://wb.mysql.com/?p=406
I'm getting an "undefined reference to `g_thread_init'" error with both i686 and x86_64:
make[2]: Entering directory `/var/abs/local/mysql-workbench/src/mysql-workbench-oss-5.2.8/tools/genobj'
/bin/sh ../../libtool --tag=CXX --mode=link g++ -march=x86-64 -mtune=generic -O2 -pipe -Wextra -Wall -Wno-unused -Wno-deprecated ../../library/grt/src/libgrt.la ../../library/base/src/libwbbase.la -llua -lm -ldl -luuid /usr/lib/python2.6/config/libpython2.6.a -lpthread -ldl -lutil -Xlinker -export-dynamic -pthread -Wl,--export-dynamic -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0 -lxml2 -L/usr/lib -lpcre -lsigc-2.0 -Wl,--hash-style=gnu -Wl,--as-needed -o genobj genobj.o
libtool: link: g++ -march=x86-64 -mtune=generic -O2 -pipe -Wextra -Wall -Wno-unused -Wno-deprecated -Wl,-export-dynamic -pthread -Wl,--export-dynamic -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/genobj genobj.o ../../library/grt/src/.libs/libgrt.so /var/abs/local/mysql-workbench/src/mysql-workbench-oss-5.2.8/library/base/src/.libs/libwbbase.so ../../library/base/src/.libs/libwbbase.so -llua -lm -luuid /usr/lib/python2.6/config/libpython2.6.a -lpthread -ldl -lutil -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0 -lxml2 -L/usr/lib -lpcre -lsigc-2.0 -pthread -Wl,-rpath -Wl,/usr/lib/mysql-workbench
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
(.text+0x748): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
(.text+0x82a): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/var/abs/local/mysql-workbench/src/mysql-workbench-oss-5.2.8/library/base/src/.libs/libwbbase.so: undefined reference to `g_thread_init'
collect2: ld returned 1 exit status
make[2]: *** [genobj] Error 1
make[2]: Leaving directory `/var/abs/local/mysql-workbench/src/mysql-workbench-oss-5.2.8/tools/genobj'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/mysql-workbench/src/mysql-workbench-oss-5.2.8'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Offline
I just succeeded in compiling the latest 5.2.11 beta. I'm still trying to figure out which one of my modifications to the PKGBUILD was the correct one.
If you still need help with this I'll keep you updated on the final fix.
Offline
ryosaeba83, could you post your working PKGBUILD? I am still having the same problem with 5.2.11. Thanks!
Offline
I just succeeded in compiling 5.2.11 on Arch64, using the following PKGBUILD.
pkgname=mysql-workbench-oss
pkgver=5.2.11
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL')
groups=()
depends=(libmysqlclient lua libglade libzip gtkmm mesa libgnome ctemplate python-paramiko python-pexpect)
makedepends=(autoconf automake libtool gcc e2fsprogs)
provides=()
conflicts=()
replaces=()
backup=()
options=(!libtool)
install=
source=(http://mysql.he.net/Downloads/MySQLGUITools/mysql-workbench-oss-$pkgver.tar.gz)
noextract=()
md5sums=('68dd5876107cc329d89cece3cbe72e9d')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i.orig -e '275 i AC_CHECK_LIB(gthread-2.0, g_thread_init)' configure.in
./autogen.sh --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}
Jay
Last edited by jt512 (2010-01-08 16:23:27)
Offline
@jt512,
It works. I added the dependencies and tested it.
R.
Edit: spoke too soon. It fails with
Starting build()...
/home/ralvez/Apps/AUR/mysql-workbench/PKGBUILD: line 22: cd: /home/ralvez/Apps/AUR/mysql-workbench/src/mysql-workbench-5.2.8: No such file or directory
but the file exists.
Last edited by ralvez (2010-01-08 03:16:23)
Offline
@jt512,
It works. I added the dependencies and tested it.
R.
Thanks. I have edited my post to reflect the correct dependencies array, so the PKGBUILD can now be used as is.
Jay
Offline
UPDATE:
My mistake sorry.
I had a misnoner in the program title and that's was the reason of the error. Once corrected it staterd building.
It's taking forever but it's building
R.
Offline
It also needs python-pexpect for some of the administrator functions to work. I've added it to the dependencies array in th PKGBUILD, above.
Jay
Last edited by jt512 (2010-01-08 16:24:40)
Offline
This is the version I used.
# $Id: PKGBUILD 1801 2009-09-03 23:47:55Z ibiru $
# Maintainer : Biru Ionut <biru.ionut at gmail.com>
# Contributor: totoloco <totoloco at gmail _dot_com>
_pkgname=mysql-workbench
pkgname=mysql-workbench-beta
pkgver=5.2.11
pkgrel=1
pkgdesc="MySQL Workbench is a cross-platform, visual database design tool developed by MySQL."
arch=('i686' 'x86_64')
url="http://dev.mysql.com/workbench/"
license=('GPL2')
conflicts=('mysql-workbench')
depends=('libgnome' 'libzip' 'libmysqlclient' 'lua' 'gtkmm' 'libglade' 'python-pexpect')
makedepends=('glib' 'boost' 'curl' 'openssl' 'mesa')
optdepends=('python: For python modules')
options=('!libtool')
source=(ftp://mirror.anl.gov/pub/mysql/Downloads/MySQLGUITools/$_pkgname-oss-$pkgver.tar.gz configure-gthread.patch)
build() {
cd "$srcdir/$_pkgname-oss-$pkgver"
#we use System provided libraries
rm -rf ext/curl
rm -rf ext/yassl
rm -rf ext/boost
rm -rf ext/libsigc++
patch -p0 -i "$srcdir/configure-gthread.patch" || return 1
export CPPFLAGS="$(pkg-config --cflags sigc++-2.0) -lgthread-2.0"
export LDDFLAGS="-lgthread-2.0"
./autogen.sh --prefix=/usr --disable-debug \
--enable-python-modules --disable-static LIBS="-lgthread-2.0"
make || return 1
make DESTDIR="$pkgdir" install
}
md5sums=('68dd5876107cc329d89cece3cbe72e9d'
'a2fcaaac91977bfc4901e20a13fbff34')
Offline