Subject: make configure failure on libICE, libSM, ...
To: None <tech-pkg@netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: tech-pkg
Date: 09/29/2007 20:01:48
Dear pkgsrc users,

Before I file a PR, I'd ask for an advice.

Attempt to compile x11/libICE package, I get the following
error on make configure stage.  The same error also with
x11/libSM, and some other packages.  I cannot recall the
exact name, though.

My system is 4.99.31, but this problem exists for weeks or
so now.  xproto-7.0.10 is installed, X11_TYPE is not defined
in /etc/mk.conf.

Regards,
--
SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>

$ make patch
=> Bootstrap dependency digest>=20010302: digest-20070803 found
===> Checking for vulnerabilities in libICE-1.0.3
===> Creating toolchain wrappers for libICE-1.0.3
===> Configuring for libICE-1.0.3
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Adding run-time search paths to pkg-config files.
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.
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking for powerpc--netbsd-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... powerpc-unknown-netbsd4.99.31
checking host system type... powerpc--netbsd
checking for style of include used by make... GNU
checking for powerpc--netbsd-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 ISO C89... none needed
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /usr/pkgsrc/x11/libICE/work.powerpc/.tools/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ld used by cc... /usr/pkgsrc/x11/libICE/work.powerpc/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/x11/libICE/work.powerpc/.wrapper/bin/ld) is GNU ld... yes
checking for /usr/pkgsrc/x11/libICE/work.powerpc/.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 how to run the C preprocessor... cc -E
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 whether we are using the GNU C++ compiler... no
checking whether c++ accepts -g... no
checking dependency style of c++... none
checking how to run the C++ preprocessor... cpp
checking for powerpc--netbsd-g77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... no
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 powerpc--netbsd-ar... no
checking for ar... ar
checking for powerpc--netbsd-ranlib... no
checking for ranlib... ranlib
checking for powerpc--netbsd-strip... strip
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 static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/pkgsrc/x11/libICE/work.powerpc/.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 whether the c++ linker (/usr/pkgsrc/x11/libICE/work.powerpc/.wrapper/bin/ld) supports shared libraries... ERROR: To use this compiler, you have to add c++ to
ERROR: USE_LANGUAGES in the package Makefile.
yes
libtool.m4: error: problem compiling CXX test program
checking for c++ option to produce PIC... 
checking if c++ static flag  works... no
checking if c++ supports -c -o file.o... no
checking whether the c++ linker (/usr/pkgsrc/x11/libICE/work.powerpc/.wrapper/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... ERROR: To use this compiler, you have to add c++ to
ERROR: USE_LANGUAGES in the package Makefile.
NetBSD ld.elf_so
checking how to hardcode library paths into programs... unsupported
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... no
checking if f77 static flag -static works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (/usr/pkgsrc/x11/libICE/work.powerpc/.wrapper/bin/ld) supports shared libraries... ERROR: To use this compiler, you have to add fortran to
ERROR: USE_LANGUAGES in the package Makefile.
yes
checking dynamic linker characteristics... ERROR: To use this compiler, you have to add fortran to
ERROR: USE_LANGUAGES in the package Makefile.
ERROR: To use this compiler, you have to add fortran to
ERROR: USE_LANGUAGES in the package Makefile.
NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking for powerpc--netbsd-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking pkg-config is at least version 0.9.0... yes
checking for ICE... gnome-config: not found
configure: error: Package requirements (xproto) were not met:

No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ICE_CFLAGS
and ICE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/libICE
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/libICE
$