Subject: pkg/35064: sysutils/apcupsd fails to configure (at build time) (+FIX)
To: None <email@example.com, firstname.lastname@example.org,>
From: None <kre@munnari.OZ.AU>
Date: 11/17/2006 14:40:01
>Synopsis: sysutils/apcupsd fails to configure (at build time) (+FIX)
>Arrival-Date: Fri Nov 17 14:40:00 +0000 2006
>Originator: Robert Elz
>Release: NetBSD 3.99.15 (pkgsrc current as of 6-8 hours ago)
Prince of Songkla University
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 email@example.com:/usr/obj/current/kernels/JADE_ASUS i386
First, I am building using pkg_comp with libkver and
NetNSD 3.0 (RELEASE) sets installed.
Building sysutils/apcupsd fails at the configure stage,
complaining that the C compiler cannot create executables
pkg_comp build sysutils/apcupsd
I doubt that pkg_comp is related to this problem, but
the use of an uppatched/uupdated NetBSD 3.0 system
as the (apparent) base system might be (in particular,
it has gcc 3.3.3)
What I see is ...
=> Checking for portability problems in extracted files
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
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 true... /pkg_comp/obj/pkgsrc/sysutils/apcupsd/default/.tools/bin/true
checking for false... /pkg_comp/obj/pkgsrc/sysutils/apcupsd/default/.tools/bin/false
checking build system type... i386-unknown-netbsdelf3.0
checking host system type... i386--netbsdelf
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
*** Error code 77
make: stopped in /usr/pkgsrc/sysutils/apcupsd
WARNING: *** Please consider adding USE_LANGUAGES+=c to the package Makefile.
*** Error code 1
Checking the (relevant part of) config.log, I see ...
configure:2422: checking for C compiler version
configure:2429: cc --version >&5
configure:2432: $? = 1
configure:2439: cc -v >&5
configure:2442: $? = 1
configure:2449: cc -V >&5
configure:2452: $? = 1
configure:2475: checking for C compiler default output file name
configure:2502: cc -O2 -I/usr/include -I/usr/include -L/usr/lib -Wl,-R/usr/lib -
Wl,-R/usr/pkg/lib conftest.c >&5
configure:2505: $? = 1
configure: failed program was:
The "failed program" contents don't seem to be relevant (it was
about as close to the canonical empty C program as it is possible
to write with current rules for what C programs must contain...)
I suspect that the problem is as suggested by the WARNING
and that there simply is no available C compiler in the
build envronment (there is certainly no cc nor gcc nor netbsd-elf-gcc
noe anything else that might plausibly be a C compiled in the
as the error messages says (warning). While that might possibly not
seem to be required for apcupsd itself (a USE_LANGUAGES+=c++ line exists
alreay) it does seem necessary to get past the configure stage.
In any case, with this one line addition, the package builds fine.