Congrats on the great work with geany looks fantastic.
Looking forward to using the latest version, however I am having trouble compiling on Ubuntu 8.04. Obviously I am too lame to figure it out myself so I would appreciate any help you can give.
System details: Geany revision 2968 gcc version 4.2.3 Anything else you need to know?
Thanks Adam.
The part of the make output causing the problem is below
------------------------------------------------------------------------- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../scintilla/include -I./../tagmanager/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -DGEANY_DATADIR=""/usr/local/share"" -DGEANY_DOCDIR=""/usr/local/share/doc/geany"" -DGEANY_LIBDIR=""/usr/local/lib"" -DGEANY_LOCALEDIR="""" -DGEANY_PREFIX=""/usr/local"" -g -DGEANY_DEBUG -g -O2 -c vte.c /bin/bash ../libtool --silent --mode=link gcc -DGEANY_DATADIR=""/usr/local/share"" -DGEANY_DOCDIR=""/usr/local/share/doc/geany"" -DGEANY_LIBDIR=""/usr/local/lib"" -DGEANY_LOCALEDIR="""" -DGEANY_PREFIX=""/usr/local"" -g -DGEANY_DEBUG -g -O2 -o geany about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o filetypes.o geanyobject.o geanywraplabel.o highlighting.o interface.o keybindings.o keyfile.o log.o main.o msgwindow.o navqueue.o notebook.o plugins.o prefix.o prefs.o printing.o project.o sciwrappers.o search.o socket.o support.o symbols.o templates.o tools.o treeviews.o ui_utils.o utils.o vte.o ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object' document.o: In function `document_update_tag_list': /home/ameehan/Code/geany/src/document.c:2053: undefined reference to `tm_source_file_update' /home/ameehan/Code/geany/src/document.c:2033: undefined reference to `tm_source_file_new' /home/ameehan/Code/geany/src/document.c:2038: undefined reference to `tm_workspace_add_object' /home/ameehan/Code/geany/src/document.c:2046: undefined reference to `tm_source_file_update' /home/ameehan/Code/geany/src/document.c:2040: undefined reference to `tm_work_object_free' document.o: In function `document_set_filetype': /home/ameehan/Code/geany/src/document.c:2166: undefined reference to `tm_workspace_remove_object' document.o: In function `get_real_path_from_utf8': /home/ameehan/Code/geany/src/document.c:147: undefined reference to `tm_get_real_path' document.o: In function `document_save_file': /home/ameehan/Code/geany/src/document.c:1570: undefined reference to `tm_workspace_update' document.o: In function `document_remove_page': /home/ameehan/Code/geany/src/document.c:509: undefined reference to `tm_workspace_remove_object' document.o: In function `document_close_all': /home/ameehan/Code/geany/src/document.c:2573: undefined reference to `tm_workspace_update' editor.o: In function `autocomplete_tags': /home/ameehan/Code/geany/src/editor.c:1394: undefined reference to `tm_workspace_find' editor.o: In function `find_calltip': /home/ameehan/Code/geany/src/editor.c:1222: undefined reference to `tm_workspace_find' /home/ameehan/Code/geany/src/editor.c:1245: undefined reference to `tm_tags_prune' /home/ameehan/Code/geany/src/editor.c:1253: undefined reference to `tm_tags_sort' /home/ameehan/Code/geany/src/editor.c:1231: undefined reference to `tm_workspace_find_scoped' main.o: In function `main_quit': /home/ameehan/Code/geany/src/main.c:924: undefined reference to `tm_workspace_free' main.o: In function `main_init': /home/ameehan/Code/geany/src/main.c:271: undefined reference to `tm_get_workspace' plugins.o:(.data+0x1c8): undefined reference to `tm_get_real_path' plugins.o:(.data+0x1cc): undefined reference to `tm_source_file_new' plugins.o:(.data+0x1d0): undefined reference to `tm_workspace_add_object' plugins.o:(.data+0x1d4): undefined reference to `tm_source_file_update' plugins.o:(.data+0x1d8): undefined reference to `tm_work_object_free' plugins.o:(.data+0x1dc): undefined reference to `tm_workspace_remove_object' symbols.o: In function `symbols_get_current_function': /home/ameehan/Code/geany/src/symbols.c:1412: undefined reference to `tm_get_current_function' symbols.o: In function `find_work_object_tag': /home/ameehan/Code/geany/src/symbols.c:318: undefined reference to `tm_tags_extract' symbols.o: In function `symbols_show_load_tags_dialog': /home/ameehan/Code/geany/src/symbols.c:1095: undefined reference to `tm_workspace_load_global_tags' symbols.o: In function `load_c_ignore_tags': /home/ameehan/Code/geany/src/symbols.c:106: undefined reference to `c_tags_ignore' symbols.o: In function `symbols_finalize': /home/ameehan/Code/geany/src/symbols.c:369: undefined reference to `c_tags_ignore' symbols.o: In function `symbols_generate_global_tags': /home/ameehan/Code/geany/src/symbols.c:1040: undefined reference to `tm_get_workspace' /home/ameehan/Code/geany/src/symbols.c:1041: undefined reference to `tm_workspace_create_global_tags' symbols.o: In function `symbols_get_macro_list': /home/ameehan/Code/geany/src/symbols.c:272: undefined reference to `tm_tags_extract' /home/ameehan/Code/geany/src/symbols.c:283: undefined reference to `tm_tags_sort' symbols.o: In function `load_user_tags': /home/ameehan/Code/geany/src/symbols.c:1183: undefined reference to `tm_workspace_load_global_tags' /home/ameehan/Code/geany/src/symbols.c:1185: undefined reference to `tm_get_workspace' symbols.o: In function `symbols_global_tags_loaded': /home/ameehan/Code/geany/src/symbols.c:121: undefined reference to `c_tags_ignore' /home/ameehan/Code/geany/src/symbols.c:160: undefined reference to `tm_workspace_load_global_tags' symbols.o: In function `symbols_find_tags_as_string': /home/ameehan/Code/geany/src/symbols.c:195: undefined reference to `tm_tags_extract' collect2: ld returned 1 exit status make[2]: *** [geany] Error 1 make[2]: Leaving directory `/home/ameehan/Code/geany/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ameehan/Code/geany' make: *** [all-recursive-am] Error 2
On Thu, 18 Sep 2008 10:11:29 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Hi Adam,
Looking forward to using the latest version, however I am having trouble compiling on Ubuntu 8.04. Obviously I am too lame to figure it out myself so I would appreciate any help you can give.
...
-lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object' document.o
it seems there went something wrong while building the sources. Did you do ./configure make sudo make install
? Were there any other errors or warnings before?
Regards, Enrico
On 18/09/2008, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 18 Sep 2008 10:11:29 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Hi Adam,
Looking forward to using the latest version, however I am having trouble compiling on Ubuntu 8.04. Obviously I am too lame to figure it out myself so I would appreciate any help you can give.
...
-lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object' document.o
it seems there went something wrong while building the sources. Did you do ./configure make sudo make install
? Were there any other errors or warnings before?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Maybe just in case, install all of the necessary libraries to build stuff. There is one full easy package, but I forgot what the name is. Maybe `build-essential`, but not sure.
On second thought, you might need some other packages. If I recall correctly, Ubuntu doesn't come installed with some of them.
On Thu, Sep 18, 2008 at 03:37:17PM +0200, Brendan wrote:
Maybe just in case, install all of the necessary libraries to build stuff. There is one full easy package, but I forgot what the name is. Maybe `build-essential`, but not sure.
On second thought, you might need some other packages. If I recall correctly, Ubuntu doesn't come installed with some of them.
You can get everthing needed with a simple: apt-get build-dep geany
Hi,
On Thu, 18 Sep 2008 10:11:29 +1000 "Adam Meehan" adam.meehan@gmail.com wrote:
[...]
-DGEANY_PREFIX=\""/usr/local"\" -g -DGEANY_DEBUG -g -O2 -o geany
about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o filetypes.o geanyobject.o geanywraplabel.o highlighting.o interface.o keybindings.o keyfile.o log.o main.o msgwindow.o navqueue.o notebook.o plugins.o prefix.o prefs.o printing.o project.o sciwrappers.o search.o socket.o support.o symbols.o templates.o tools.o treeviews.o ui_utils.o utils.o vte.o ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object'
Are you sung clean source for compiling? Maybe a fresh svn checkout could solve the issue.
Regards, Frank
On Thu, 18 Sep 2008 10:11:29 +1000 "Adam Meehan" adam.meehan@gmail.com wrote:
...
vte.o ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object' document.o: In function `document_update_tag_list': /home/ameehan/Code/geany/src/document.c:2053: undefined reference to `tm_source_file_update'
It looks like for some reason the tagmanager library is missing symbols. Try:
make clean ./autogen.sh
then carry on building as before.
Regards, Nick
Thanks for the replies.
I already have build-essential and no extra dependencies were needing to be installed when I ran apt-get build-dep.
Then I tried make clean ./autogen.sh make but get same errors.
I did a fresh checkout which I have tried in the past but again no luck.
The warnings I get on configure are
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/Makefile config.status: WARNING: icons/Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/16x16/Makefile config.status: WARNING: icons/16x16/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/Makefile config.status: WARNING: tagmanager/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/include/Makefile config.status: WARNING: tagmanager/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/Makefile config.status: WARNING: scintilla/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/include/Makefile config.status: WARNING: scintilla/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: src/Makefile.in seems to ignore the --datarootdir setting config.status: creating plugins/Makefile config.status: WARNING: plugins/Makefile.in seems to ignore the --datarootdir setting config.status: creating po/Makefile.in config.status: creating doc/Makefile config.status: WARNING: doc/Makefile.in seems to ignore the --datarootdir setting
Do you think this is related?
Thanks, Adam
On Fri, Sep 19, 2008 at 2:31 AM, Nick Treleaven < nick.treleaven@btinternet.com> wrote:
On Thu, 18 Sep 2008 10:11:29 +1000 "Adam Meehan" adam.meehan@gmail.com wrote:
...
vte.o ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 dialogs.o: In function `handle_save_as': /home/ameehan/Code/geany/src/dialogs.c:410: undefined reference to `tm_workspace_remove_object' document.o: In function `document_update_tag_list': /home/ameehan/Code/geany/src/document.c:2053: undefined reference to `tm_source_file_update'
It looks like for some reason the tagmanager library is missing symbols. Try:
make clean ./autogen.sh
then carry on building as before.
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 19 Sep 2008 15:57:32 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Thanks for the replies.
I already have build-essential and no extra dependencies were needing to be installed when I ran apt-get build-dep.
Then I tried make clean ./autogen.sh make but get same errors.
I did a fresh checkout which I have tried in the past but again no luck.
The warnings I get on configure are
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/Makefile config.status: WARNING: icons/Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/16x16/Makefile config.status: WARNING: icons/16x16/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/Makefile config.status: WARNING: tagmanager/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/include/Makefile config.status: WARNING: tagmanager/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/Makefile config.status: WARNING: scintilla/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/include/Makefile config.status: WARNING: scintilla/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: src/Makefile.in seems to ignore the --datarootdir setting config.status: creating plugins/Makefile config.status: WARNING: plugins/Makefile.in seems to ignore the --datarootdir setting config.status: creating po/Makefile.in config.status: creating doc/Makefile config.status: WARNING: doc/Makefile.in seems to ignore the --datarootdir setting
Do you think this is related?
I don't think so.
I would like you to try:
make distclean ./autogen.sh
it's unlikely that this will change anything but who knows. Could you please post the result of:
ls -l tagmanager/libtagmanager.a
Regards, Enrico
Thanks Enrico.
distclean didn't make a difference unfortunately.
There was no such file as 'tagmanager/libtagmanager.a'. The tagmanager directory exists though.
One other warning/error in the configure output which I missed and possible involved is this
Running automake --gnu ... tagmanager/Makefile.am:14: libtagmanager_a_SOURCES defined both conditionally and unconditionally src/Makefile.am:73: invalid unused variable name: `nodist_EXTRA_geany_SOURCES' Running autoconf ...
What do you think?
Adam
On Fri, Sep 19, 2008 at 6:24 PM, Enrico Tröger enrico.troeger@uvena.dewrote:
On Fri, 19 Sep 2008 15:57:32 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Thanks for the replies.
I already have build-essential and no extra dependencies were needing to be installed when I ran apt-get build-dep.
Then I tried make clean ./autogen.sh make but get same errors.
I did a fresh checkout which I have tried in the past but again no luck.
The warnings I get on configure are
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/Makefile config.status: WARNING: icons/Makefile.in seems to ignore the --datarootdir setting config.status: creating icons/16x16/Makefile config.status: WARNING: icons/16x16/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/Makefile config.status: WARNING: tagmanager/Makefile.in seems to ignore the --datarootdir setting config.status: creating tagmanager/include/Makefile config.status: WARNING: tagmanager/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/Makefile config.status: WARNING: scintilla/Makefile.in seems to ignore the --datarootdir setting config.status: creating scintilla/include/Makefile config.status: WARNING: scintilla/include/Makefile.in seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: src/Makefile.in seems to ignore the --datarootdir setting config.status: creating plugins/Makefile config.status: WARNING: plugins/Makefile.in seems to ignore the --datarootdir setting config.status: creating po/Makefile.in config.status: creating doc/Makefile config.status: WARNING: doc/Makefile.in seems to ignore the --datarootdir setting
Do you think this is related?
I don't think so.
I would like you to try:
make distclean ./autogen.sh
it's unlikely that this will change anything but who knows. Could you please post the result of:
ls -l tagmanager/libtagmanager.a
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Sun, 21 Sep 2008 12:45:12 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Thanks Enrico.
distclean didn't make a difference unfortunately.
There was no such file as 'tagmanager/libtagmanager.a'. The tagmanager directory exists though.
One other warning/error in the configure output which I missed and possible involved is this
Running automake --gnu ... tagmanager/Makefile.am:14: libtagmanager_a_SOURCES defined both conditionally and unconditionally
Yes, this one is really related to the problem. But I don't really understand it. It seems your automake doesn't understand correctly the '+=' operator which is used to add a value to an existing variable.
src/Makefile.am:73: invalid unused variable name: `nodist_EXTRA_geany_SOURCES'
This is also strange and would cause another problem. Line 73 tells the automake to use the C++ linker when creating the geany binary but since your automake doesn't accept this line, the C linker is used and this causes other linker errors (just not yet visible due to the previous errors).
What version of automake do you have installed ('automake --version')? There must be something different on your system from others, I can't imagine this happens on all Ubuntu 8.04 systems and nobody reported it before.
Regards, Enrico
There is a reason no one reported it because for some strange reason I had automake version 1.4!!
I don't know how I ended up with such an old version. I did an apt-get install automake just to make sure I was up to date and hey presto 1.10.1 gets installed and all is well.
Thanks for the help Enrico et al.
Now I will get on with playing with Geany!
On Mon, Sep 22, 2008 at 1:03 AM, Enrico Tröger enrico.troeger@uvena.dewrote:
On Sun, 21 Sep 2008 12:45:12 +1000, "Adam Meehan" adam.meehan@gmail.com wrote:
Thanks Enrico.
distclean didn't make a difference unfortunately.
There was no such file as 'tagmanager/libtagmanager.a'. The tagmanager directory exists though.
One other warning/error in the configure output which I missed and possible involved is this
Running automake --gnu ... tagmanager/Makefile.am:14: libtagmanager_a_SOURCES defined both conditionally and unconditionally
Yes, this one is really related to the problem. But I don't really understand it. It seems your automake doesn't understand correctly the '+=' operator which is used to add a value to an existing variable.
src/Makefile.am:73: invalid unused variable name: `nodist_EXTRA_geany_SOURCES'
This is also strange and would cause another problem. Line 73 tells the automake to use the C++ linker when creating the geany binary but since your automake doesn't accept this line, the C linker is used and this causes other linker errors (just not yet visible due to the previous errors).
What version of automake do you have installed ('automake --version')? There must be something different on your system from others, I can't imagine this happens on all Ubuntu 8.04 systems and nobody reported it before.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany