Subject: pkg/24491: gmp 1.4.2 install failure
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jnp@napolinet.dk>
List: netbsd-bugs
Date: 02/19/2004 20:16:54
>Number:         24491
>Category:       pkg
>Synopsis:       gmp 4.1.2 install failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 19 19:18:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jørgen Nørgaard <jnp@napolinet.dk>
>Release:        NetBSD 1.6
>Organization:
NapoliNet
>Environment:
	
	
System: NetBSD www.napolinet.dk 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

Building gmp 4.1.2 goes fine, during install an error occurs:

libtool: install: error: relink `libgmpxx.la' with the above command before installing it


Currently installed with 'make -k' which installs some pieces.

The full output from make install is:
===> Checking for vulnerabilities in gmp-4.1.2
===> Installing for gmp-4.1.2
Making install in tests
Making install in .
Making install in devel
Making install in mpn
Making install in mpz
Making install in mpq
Making install in mpf
Making install in rand
Making install in misc
Making install in cxx
Making install in mpbsd
Making install in mpn
Making install in mpz
Making install in mpq
Making install in mpf
Making install in printf
Making install in scanf
Making install in cxx
Making install in mpbsd
Making install in demos
Making install in calc
Making install in expr
Making install in tune
/bin/sh ./mkinstalldirs /usr/pkg/lib
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel  libgmp.la /usr/pkg/lib/libgmp.la
/usr/bin/install -c -o root -g wheel .libs/libgmp.so.6.2 /usr/pkg/lib/libgmp.so.6.2
(cd /usr/pkg/lib && rm -f libgmp.so.6 && ln -s libgmp.so.6.2 libgmp.so.6)
(cd /usr/pkg/lib && rm -f libgmp.so && ln -s libgmp.so.6.2 libgmp.so)
/usr/bin/install -c -o root -g wheel .libs/libgmp.lai /usr/pkg/lib/libgmp.la
/usr/bin/install -c -o root -g wheel .libs/libgmp.a /usr/pkg/lib/libgmp.a
ranlib /usr/pkg/lib/libgmp.a
chmod 644 /usr/pkg/lib/libgmp.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel  libgmpxx.la /usr/pkg/lib/libgmpxx.la
libtool: install: warning: relinking `libgmpxx.la'
(cd /usr/pkgsrc/devel/gmp/work/gmp-4.1.2; /bin/sh /usr/pkg/bin/libtool  --mode=relink g++ -O2 -o libgmpxx.la -rpath /usr/pkg/lib -version-info 3:4:0 dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo cxx/osdoprnti.lo cxx/osfuns.lo cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo libgmp.la )
g++ -shared -nostdlib /usr/lib/crtbeginS.o  .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/osdoprnti.o cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o cxx/.libs/osmpz.o  -Wl,--rpath -Wl,/usr/pkg/lib -L/usr/pkg/lib -lgmp -lstdc++ -lm -lgcc_pic /usr/lib/crtendS.o  -Wl,-soname -Wl,libgmpxx.so.3 -o .libs/libgmpxx.so.3.4
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
libtool: install: error: relink `libgmpxx.la' with the above command before installing it
*** Error code 1 (continuing)
`install-exec-am' not remade because of errors.
/bin/sh ./mkinstalldirs /usr/pkg/include
 install -c -o root -g wheel -m 444 gmpxx.h /usr/pkg/include/gmpxx.h
/bin/sh ./mkinstalldirs /usr/pkg/info
 install -c -o root -g wheel -m 444 ./gmp.info /usr/pkg/info/gmp.info
 install -c -o root -g wheel -m 444 ./gmp.info-1 /usr/pkg/info/gmp.info-1
 install -c -o root -g wheel -m 444 ./gmp.info-2 /usr/pkg/info/gmp.info-2
 install -c -o root -g wheel -m 444 ./gmp.info-3 /usr/pkg/info/gmp.info-3
 install -c -o root -g wheel -m 444 ./gmp.info-4 /usr/pkg/info/gmp.info-4
 install -c -o root -g wheel -m 444 ./gmp.info-5 /usr/pkg/info/gmp.info-5
 install -c -o root -g wheel -m 444 ./gmp.info-6 /usr/pkg/info/gmp.info-6
 install -c -o root -g wheel -m 444 ./gmp.info-7 /usr/pkg/info/gmp.info-7
 install -c -o root -g wheel -m 444 ./gmp.info-8 /usr/pkg/info/gmp.info-8
 install -c -o root -g wheel -m 444 ./gmp.info-9 /usr/pkg/info/gmp.info-9
/bin/sh ./mkinstalldirs /usr/pkg/include
 install -c -o root -g wheel -m 444 gmp.h /usr/pkg/include/gmp.h
===> [Automatic ELF shared object handling]
ls: /usr/pkg/lib/libgmpxx.a: No such file or directory
ls: /usr/pkg/lib/libgmpxx.la: No such file or directory
ls: /usr/pkg/lib/libgmpxx.so: No such file or directory
ls: /usr/pkg/lib/libgmpxx.so.3: No such file or directory
ls: /usr/pkg/lib/libgmpxx.so.3.4: No such file or directory
===> Registering installation for gmp-4.1.2
pkg_create: can't stat `/usr/pkg/lib/libgmpxx.so.3.4'
pkg_create: can't stat `/usr/pkg/lib/libgmpxx.so.3'
pkg_create: can't stat `/usr/pkg/lib/libgmpxx.a'
pkg_create: can't stat `/usr/pkg/lib/libgmpxx.la'
pkg_create: can't stat `/usr/pkg/lib/libgmpxx.so'



>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: