Uderc programming article aggregator sites

Mysql Workbench 5.1.2 PKGBUILD. Help needed.

Tags:
Answers: Have 25 answers
Advertisement
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.
Advertisement
The best answer: 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...