courtneypresto / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

error in make install #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. do a make fake make install using the openbsd(4.6) port infrastructure

What is the expected output? What do you see instead?
Here's what I get :
root#make fake
===>  Faking installation for gtest-1.3.0
test -z "/usr/local/bin" || mkdir -p --
"/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/bin"
 install -c -o root -g bin -m 555 'scripts/gtest-config'
'/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/bin/gtest-config'
test -z "/usr/local/lib" || mkdir -p --
"/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib"
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g bin 
'lib/libgtest.la'
'/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.la'
/usr/bin/install -c -o root -g bin lib/.libs/libgtest.so.0.0
/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.so.0.0
/usr/bin/install -c -o root -g bin lib/.libs/libgtest.lai
/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.la
/usr/bin/install -c -o root -g bin lib/.libs/libgtest.a
/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.a
chmod 644 /usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.a
ranlib -t /usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g bin 
'lib/libgtest_main.la'
'/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/libgtest_main.la'
libtool: install: warning: relinking `lib/libgtest_main.la'
(cd /yellowstone/workbox/git/ports/obj/gtest-1.3.0/build-i386; /bin/sh
./libtool  --tag=CXX --mode=relink c++ -O2 -pipe -o lib/libgtest_main.la
-rpath /usr/local/lib src/gtest_main.lo lib/libgtest.la -inst-prefix
-dir /usr/ports/obj/gtest-1.3.0/fake-i386)
c++ -shared  -fPIC -DPIC   src/.libs/gtest_main.o 
/usr/local/lib/libgtest.so.0.0   -o lib/.libs/libgtest_main.so.0.0
c++: /usr/local/lib/libgtest.so.0.0: No such file or directory
libtool: install: error: relink `lib/libgtest_main.la' with the above
command before installing it
*** Error code 1

Stop in /yellowstone/workbox/git/ports/obj/gtest-1.3.0/build-i386 (line 922
of Makefile).
*** Error code 1

Stop in /yellowstone/workbox/git/ports/obj/gtest-1.3.0/build-i386 (line
1780 of Makefile).
*** Error code 1

Stop in /yellowstone/workbox/git/ports/devel/gtest (line 2256 of
/usr/ports/infrastructure/mk/bsd.port.mk).

What version of the product are you using? On what operating system?
gtest-1.3 and
OpenBSD 4.5-current (GENERIC.MP) #17: Tue Jun 16 21:48:28 MDT 2009
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

Please provide any additional information below.
The openbsd port infrastructure does a fake install in a directory to catch
the files that are installed.
In this case this command "c++ -shared  -fPIC -DPIC  
src/.libs/gtest_main.o  /usr/local/lib/libgtest.so.0.0   -o
lib/.libs/libgtest_main.so.0.0" does not work since the libgtest.so.0.0 is
not located in /usr/local/lib but in
/usr/ports/obj/gtest-1.3.0/fake-i386/usr/local/lib/. The prefix directory
is probably not passed to this command.
I am not accainted enough with configure style script to find where the
error is.

Original issue reported on code.google.com by auclair.vincent on 26 Aug 2009 at 11:38

GoogleCodeExporter commented 9 years ago
Corrected with USE_LIBTOOL=YES in the port makefile.
Sorry for the noise.

Original comment by auclair.vincent on 27 Aug 2009 at 9:49

GoogleCodeExporter commented 9 years ago
Closed per the user's comment.

Original comment by zhanyong...@gmail.com on 3 Sep 2009 at 6:32