Ticket #3 (closed defect: invalid)
Error during installation
| Reported by: | henry74 | Owned by: | deveiant |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 1.0 | Keywords: | link error undefined symbol linkage_constituent_tree |
| Cc: |
Description (last modified by deveiant) (diff)
Ubuntu 7.04 ruby 1.8.5 (2006-08-25) [i486-linux]
After running the last command in these instructions:
$ tar -xvzf link-grammar-4.2.4.tar.gz $ cd link-grammar-4.2.4 $ patch -p1 < ../link-grammar-4.2.4.patch $ ./configure; make; sudo make install $ cd .. $ sudo ./install.rb <===this one
I receive the following error:
Testing...
0 patterns given on the command line:
Required 4 files.
Loaded suite Ruby-LinkParser
Started
/usr/bin/ruby: symbol lookup error: ext/linkparser_ext.so:
undefined symbol: linkage_constituent_tree
I've received this error with both the pre-packaged download(Ruby-LinkParser?-20070611.tar.gz) as well as the latest source code checked out from svn://deveiate.org/Ruby-LinkParser2/trunk
Change History
comment:1 Changed 3 years ago by deveiant
- Owner set to deveiant
- Status changed from new to assigned
- Description modified (diff)
comment:2 Changed 3 years ago by deveiant
It worked fine for me on a (pretty much) brand new Ubuntu 7.04 box:
Avalon pts/1 [~/temp/LinkParser]
$ ldconfig -p | grep link-grammar
liblink-grammar.so.4 (libc6,x86-64) => /usr/local/lib/liblink-grammar.so.4
liblink-grammar.so (libc6,x86-64) => /usr/local/lib/liblink-grammar.so
Avalon pts/1 [~/temp/LinkParser]
$ uname -a
Linux Avalon 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007 x86_64 GNU/Linux
Avalon pts/1 [~/temp/LinkParser]
24/523 {0}$ ruby -v
ruby 1.8.5 (2006-08-25) [x86_64-linux]
Avalon pts/1 [~/temp/LinkParser]
$ sudo ./install.rb
Building ext/linkparser_ext.so...
./install.rb: Entering directory `ext'
checking for dictionary_create() in -llink-grammar... yes
checking for link-grammar/link-includes.h... yes
checking for link-grammar/utilities.h... no
checking for linkage_get_current_sublinkage()... yes
creating Makefile
./install.rb: Leaving directory `ext'
make[1]: Entering directory `/home/ged/temp/LinkParser/ext'
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -Wall -DDEBUG -c sentence.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -Wall -DDEBUG -c dictionary.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -Wall -DDEBUG -c parseoptions.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -Wall -DDEBUG -c linkage.c
linkage.c: In function `rlink_linkage_constituent_tree_stringâ':
linkage.c:852: warning: `rval' may be used uninitialized in this function
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -Wall -DDEBUG -c linkparser.c
gcc -shared -rdynamic -Wl,-export-dynamic -L"/usr/lib" -o linkparser_ext.so sentence.o dictionary.o parseoptions.o linkage.o linkparser.o -lruby1.8 -llink-grammar -lpthread -ldl -lcrypt -lm -lc
make[1]: Leaving directory `/home/ged/temp/LinkParser/ext'
Testing...
0 patterns given on the command line:
Required 4 files.
Loaded suite Ruby-LinkParser
Started
..........................................................
Finished in 2.066111 seconds.
58 tests, 157 assertions, 0 failures, 0 errors
Installing...
done.
That error happens when you build against an unpatched version of the link-grammar library. Did you perhaps you built against a version of liblink-grammar that was already installed? The version I'm using comes from the Abiword project -- do you perhaps have that installed? If you do ldconfig -p | grep link-grammar does it list one in /usr/lib first?

I'll try it out on my own Ubuntu box. Thanks for the report.