LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc artha compile error (http://www.linuxquestions.org/questions/linux-newbie-8/gcc-artha-compile-error-4175439342/)

curious95 11-29-2012 12:53 PM

gcc artha compile error
 
hi, so i've been getting this error when i try to compile artha;
Code:

make  all-recursive
make[1]: Entering directory `/home/v/Downloads/artha-1.0.3'
Making all in data
make[2]: Entering directory `/home/v/Downloads/artha-1.0.3/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/v/Downloads/artha-1.0.3/data'
Making all in src
make[2]: Entering directory `/home/v/Downloads/artha-1.0.3/src'
/bin/sh ../libtool --tag=CC  --mode=link gcc -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter -fstrict-aliasing -Wno-missing-field-initializers -pthread -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/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -g -O2  -o artha mod_notify.o suggestions.o hotkey_editor.o gui.o eggaccelerators.o tomboyutil.o instance_handler.o  libwni.a -lWN -lX11 -ldbus-1 -ldbus-glib-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 
libtool: link: gcc -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter -fstrict-aliasing -Wno-missing-field-initializers -pthread -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/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -o artha mod_notify.o suggestions.o hotkey_editor.o gui.o eggaccelerators.o tomboyutil.o instance_handler.o  libwni.a -lWN /usr/lib/libX11.so /usr/lib/libdbus-1.so /usr/lib/libdbus-glib-1.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -pthread
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: gui.o: undefined reference to symbol 'g_file_new_for_path'
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: note: 'g_file_new_for_path' is defined in DSO /usr/lib/libgio-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgio-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [artha] Error 1
make[2]: Leaving directory `/home/v/Downloads/artha-1.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/v/Downloads/artha-1.0.3'
make: *** [all] Error 2

I was wondering about this part:
Code:

/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: note: 'g_file_new_for_path' is defined in DSO /usr/lib/libgio-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgio-2.0.so.0: could not read symbols: Invalid operation

What is the compiler trying to tell me and how do i go about fixing it?

markush 11-29-2012 01:27 PM

Hi,

didn't you use the Slackbuildscript from slackbuilds.org? http://slackbuilds.org/repository/14.0/academic/artha/

They say that WordNet is a required dependency. Did you install it before?

Markus

knudfl 11-29-2012 02:18 PM

Ref. # 2 : That's right, version 1.0.2 has no issues :
http://slackbuilds.org/repository/14.0/academic/artha/

Fedora 19 (Rawhide) and Debian Sid are still using version 1.0.2,
which indicates that it's too early to use artha-1.0.3 ?

curious95 11-30-2012 01:58 PM

I used the slackbuild script for version 1.0.3 but it output the same error. However when i compiled version 1.0.2 everything was ok! :)


All times are GMT -5. The time now is 07:09 AM.