LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2012, 12:53 PM   #1
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Rep: Reputation: Disabled
Post 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?
 
Old 11-29-2012, 01:27 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 11-29-2012, 02:18 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ?
 
Old 11-30-2012, 01:58 PM   #4
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
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!

Last edited by curious95; 12-08-2012 at 10:19 AM.
 
  


Reply

Tags
gcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 02:28 PM
gcc compile error phanipalagummi Programming 1 11-23-2008 08:45 AM
gcc compile error? wampire Programming 3 05-06-2006 08:05 PM
compile GCC 4.0 error! ayiiq180 Linux - Software 3 04-22-2005 04:04 PM
gcc-2.3.2 compile error rimo Linux From Scratch 33 07-30-2003 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration