Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#690 closed defect (invalid)

build fails during ld, can't find file that does exist.

Reported by: donz Owned by: strk
Priority: blocker Milestone: 3.6.1
Component: Build/Install Version: 3.4.2
Severity: Significant Keywords:
Cc:

Description

I am trying to make geos with swig. The make process fails during geos-3.4.2/swig/ruby. The failing command is:

libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.7/crtbeginS.o .libs/geos_la-geos_wrap.o -Wl,-rpath -Wl,/home/donz/Downloads/geos-3.4.2/capi/.libs -L/home/donz/.rvm/rubies/ruby-2.0.0-p247/lib ../../capi/.libs/libgeos_c.so -llibruby.so.2.0.0 -L/usr/lib/gcc/x86_64-linux-gnu/4.7 -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crtn.o -Wl,-soname -Wl,geos.so -o .libs/geos.so

The key fragments of the command are:

-L/home/donz/.rvm/rubies/ruby-2.0.0-p247/lib and -llibruby.so.2.0.0

I have been using Unix since the late 1980s and those two fragments on the ld command line always referenced the file:

/home/donz/.rvm/rubies/ruby-2.0.0-p247/lib/libruby.so.2.0.0

but currently I am getting the following error:

/usr/bin/ld: cannot find -llibruby.so.2.0.0

but ll /home/donz/.rvm/rubies/ruby-2.0.0-p247/lib/libruby.so.2.0.0 from the make directory returns

-rwxr-xr-x 1 donz donz 12M Jul 29 2013 /home/donz/.rvm/rubies/ruby-2.0.0-p247/lib/libruby.so.2.0.0

The file is there! Any suggestions?

Change History (3)

comment:1 by strk, 10 years ago

The switch should be -lruby, please try that. If that works, try to figure out _what_ sets it to -llibruby.so.2.0.0 next

comment:2 by strk, 9 years ago

Resolution: invalid
Status: newclosed

closing due to lack of feedback

comment:3 by strk, 8 years ago

Milestone: 3.2.43.6.1

Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.