The challenges of compiling non working Open Source (Part 3)?

I’m not there yet with compiling MySQL Workbench from the previously released 1.0.0-alpha source for linux. I’d like to think I’m getting closer but not really certain. I’m getting good response to my Bug Report #16604 from MySQL Staff. Seems I work at it during the day, update, and then next morning there is some more info, but still doesn’t cut the cheese, as it just moves me to next error.

So in my last edition, I got an error and installed a lua product (which was the right one), but I didn’t do a configure again, just a compile. I bet that’s a C/C++ 101 lesson. Also as per request, added Java options consistent with my environment. So:


$ cd /src/mysql-workbench-1.0.0/mysql-gui-common/
$ ./configure --enable-grt --enable-canvas --with-java-ldflags="-L/opt/j2sdk1.4.2_10/jre/lib/i386/client/ -ljvm"
./configure: line 5556: ./po/POTFILES.in: No such file or directory


$ make
MySQLGRT/MGRTValueTree.cc:255: instantiated from here
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h:158: error: 'const class sigc::bound_argument< std ::list< MYX_GRT_VALUE*, std::allocator< MYX_GRT_VALUE*> >&>' has no member named 'visit'
make[3]: *** [MGRTValueTree.o] Error 1
make[3]: Leaving directory `/src/mysql-workbench-1.0.0/mysql-gui-common/source/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src/mysql-workbench-1.0.0/mysql-gui-common/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/mysql-workbench-1.0.0/mysql-gui-common'
make: *** [all] Error 2

There is an error in the configure file at line 5556. Must have missed before, but I doubt, related to the later error.
So still not luck, with another solid C++ error. Some more research.

Google gets me to http://mail.gnome.org/archives/gtkmm-list/2005-November/msg00194.html which repeats the same problem, however no solution. Further reference to confirm the libc++ 2.0 API Docs indicating visit is indeed a member. I have the latest version from http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/ of 2.0.17. No indication of error at Gnome Bug Tracking including using detailed serach. So I’ve exhausted my investigative knowledge here.

The second recommendation from support.

If you want, you can try the latest version in the subversion repository, which should be easier to build. That version doesn’t require Java and have several issues fixed:
svn co http://svn.mysql.com/svnpublic/mysql-gui-common/
svn co http://svn.mysql.com/svnpublic/mysql-workbench/

So, after checking out what’s needed for SubVersion at http://subversion.tigris.org/.


wget http://dag.wieers.com/packages/subversion/subversion-1.2.1-0.1.2.el4.rf.i386.rpm
rpm -ivh subversion-1.2.1-0.1.2.el4.rf.i386.rpm
svn co http://svn.mysql.com/svnpublic/mysql-gui-common/
svn co http://svn.mysql.com/svnpublic/mysql-workbench/
cd mysql-gui-common
./configure
-bash: ./configure: No such file or directory

Oops, seems that file is not in the repository (at least the repository I have access to, so hoping this is built on ).


$ cp /src/mysql-workbench-1.0.0/mysql-gui-common/configure .
$ ./configure
$ config.status: error: cannot find input file: Makefile.in


$ cp /src/mysql-workbench-1.0.0/mysql-gui-common/Makefile.in .
$ ./configure
config.status: error: cannot find input file: library/Makefile.in

Ok, there’s a pattern here:


$ find /src/mysql-workbench-1.0.0 -name Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/res/linux/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/res/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/images/palette/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/images/toolbar/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/images/icons/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/images/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/images/cursors/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/source/lua/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/source/linux/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-workbench/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/res/grt/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/res/linux/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/res/po/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/res/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt/newt/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_gc/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_gc/ftgl/src/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_gc/ftgl/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_gc/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/test_parse_sql_statemets/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/test_mysql_api/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/test_xml/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/test_detect_charset/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/read_international/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/tests/test_translations/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/grt/structs/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/grt/icons/db/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/grt/icons/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/grt/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/icons/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/icons/png/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/images/png/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt_workbench/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt_workbench/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/source/lua/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/source/linux/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/source/grtsh/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_util/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_util/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_sql_parser/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_sql_parser/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt_modules/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_grt_modules/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_sql_resultset/source/Makefile.in
/src/mysql-workbench-1.0.0/mysql-gui-common/library_sql_resultset/Makefile.in


$ find . -name Makefile.in
./library/Makefile.in
./Makefile.in

Seems there are 43 Makefile.in and they are all not there. So script a copy of all this files over into new structure.


$ ./configure
config.status: error: cannot find input file: res/po/Makefile.in.in
$ cp /src/mysql-workbench-1.0.0/mysql-gui-common/res/po/Makefile.* res/po/
$ ./configure
$ ./configure --enable-grt --enable-canvas
$ make
In file included from ....mysql-gui-commonlibrary_sql_parsersourcemyx_sql_parser.yy:21:
../include/MyxSQLTreeItem.h:171:28: warning: no newline at end of file
....mysql-gui-commonlibrary_sql_parsersourcemyx_sql_parser.tab.cc: In function `int yyparse()':
....mysql-gui-commonlibrary_sql_parsersourcemyx_sql_parser.tab.cc:28452: error: expected primary-expression before "__attribute__"
....mysql-gui-commonlibrary_sql_parsersourcemyx_sql_parser.tab.cc:28452: error: expected `;' before "__attribute__"
make[3]: *** [myx_sql_parser.tab.o] Error 1
make[3]: Leaving directory `/src/wb/mysql-gui-common/library_sql_parser/source'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src/wb/mysql-gui-common/library_sql_parser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/wb/mysql-gui-common'
make: *** [all] Error 2

Well, I’ve now exhausted this as well.

Comments

  1. says

    i saw you already have a working version now but i thought i should just post some of my experiences here:

    if you’re missing the Makefiles you shouldn’t include them from another version but just let them be autogenerated.
    there is a autogen.sh script in the svn version. just use:

    chmox +x autogen.sh
    ./autogen.sh –enable-grt –enable-canvas

    and they will be autogenerated.

    if you get the “./configure: line 5556: ./po/POTFILES.in: No such file or directory” error, you should read ahead on the following line because it complains about the PKG_CONFIG variable not being set. you can do that with:

    export PKG_CONFIG=/usr/bin/pkg-config
    (change if pkg-config is nog in that directory)

    the type ‘make’ and watch it break apart at some point. but the mysql-workbench team is working really hard. i get updates to the source tree ( use ‘svn up’ to update ) every day and the make gets further every time :)

    hope this helps!

Trackbacks