Subject: Failed to build devel/libmm - libtool not found
To: None <tech-pkg@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-pkg
Date: 05/24/2005 15:42:25
Trying to re-build packages on clean system and got problems with missing 
libtool. pkgsrc tree was completely updated from CVS ~1 hour ago.

# uname -a
NetBSD NBSD1 3.99.5 NetBSD 3.99.5 (NBSD1.conf) #1: Tue May 24 15:26:58 NOVST 
2005  toor@NBSD1:/usr/src/sys/arch/i386/compile/NBSD1.conf i386

# pkg_info -a
digest-20050323     Message digest wrapper utility

# pwd
/usr/pkgsrc/devel/libmm

# make package
===> Checking for vulnerabilities in libmm-1.3.1
=> Checksum SHA1 OK for mm-1.3.1.tar.gz.
=> Checksum RMD160 OK for mm-1.3.1.tar.gz.
===> Extracting for libmm-1.3.1
===> Required package libtool-base>=1.5.18nb1: NOT found
===> Verifying package for ../../devel/libtool-base
===> Checking for vulnerabilities in libtool-base-1.5.18nb2
===> Returning to build of libmm-1.3.1
===> Patching for libmm-1.3.1
===> Overriding tools for libmm-1.3.1
===> Creating toolchain wrappers for libmm-1.3.1
===> Configuring for libmm-1.3.1
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
Configuring  [1mOSSP mm [m (Shared Memory Allocation), Version  [1m1.3.1 
(12-Sep-2004) [m
Copyright (c) 1999-2004 Ralf S. Engelschall <rse@engelschall.com>
Copyright (c) 1999-2004 The OSSP Project <http://www.ossp.org/>
Platform:  [1mi386-unknown-netbsdelf3.99.5 [m

 [1mBuild Tools: [m
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for compilation debug mode... disabled
checking whether make sets $(MAKE)... yes
checking build system type... i386-unknown-netbsdelf3.99.5
checking host system type... i386--netbsdelf
checking for a sed that does not truncate 
output... /usr/pkgsrc/devel/libmm/work/.tools/bin/sed
checking for egrep... grep -E
checking for ld used by cc... /usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) is GNU 
ld... yes
checking for /usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld option to reload 
object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... match_pattern /lib[^/]+(\.so|
_pic\.a)$
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i386--netbsdelf-g++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for i386--netbsdelf-g77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse nm output from cc object... ok
checking for objdir... .libs
checking for i386--netbsdelf-ar... no
checking for ar... ar
checking for i386--netbsdelf-ranlib... no
checking for ranlib... ranlib
checking for i386--netbsdelf-strip... no
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) 
supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++... /usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) is GNU 
ld... yes
checking whether the c++ linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) 
supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) 
supports shared libraries... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/pkgsrc/devel/libmm/work/.wrapper/bin/ld) 
supports shared libraries... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes

 [1mPlatform Environment: [m
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
decision on mandatory system headers... all fine
checking for memory.h... (cached) yes
checking for memcpy... yes
checking for memset... yes
checking for bcopy... yes
checking for _POSIX_PATH_MAX in limits.h... yes
checking for PATH_MAX in limits.h... yes
checking for _POSIX_CHILD_MAX in limits.h... yes
checking for CHILD_MAX in limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for MAXPATHLEN in sys/param.h... yes

 [1mVirtual Memory Page Size: [m
checking for unistd.h... (cached) yes
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking for getpagesize... yes
checking for sysconf... yes
checking for _SC_PAGESIZE in unistd.h... yes
checking for B_PAGE_SIZE in kernel/OS.h... no
decision on memory page size determination... POSIX.1 sysconf(_SC_PAGESIZE)

 [1mShared Memory Implementation: [m
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for MAP_ANON in sys/mman.h... yes
checking for mmap... yes
checking for munmap... yes
checking for shm_open... no
checking for shm_unlink... no
checking for /dev/zero... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for shmctl... yes
checking for kernel/OS.h... (cached) no
checking for create_area... no
decision on shared memory allocation method... 4.4BSD-style mmap() via 
MAP_ANON
checking for shared memory maximum segment size... 64MB (soft limit)

 [1mMutual Exclusion Implementation: [m
checking for sys/ipc.h... (cached) yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/file.h... (cached) yes
checking for semget... yes
checking for semctl... yes
checking for LOCK_EX in sys/file.h... yes
checking for F_SETLK in fcntl.h... yes
checking for IPC_PRIVATE in sys/ipc.h... yes
checking for SEM_UNDO in sys/sem.h... yes
checking for kernel/OS.h... (cached) no
checking for create_sem... no
checking whether union semun is defined in sys/sem.h... no
decision on mutex implementation method... SVR4-style fcntl() on temporary 
file

 [1mOutput Substitution: [m
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mm-config
config.status: creating config.h
config.status: executing adjustment commands
===> Building for libmm-1.3.1
./libtool --quiet --mode=compile cc -c -O2 mm_global.c
eval: /usr/pkg/bin/libtool: not found
*** Error code 127

Stop.
make: stopped in /usr/pkgsrc/devel/libmm/work/mm-1.3.1
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libmm
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/devel/libmm/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libmm

// wbr