Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158708 - net-proxy/squid-2.6.5 fails to configure with uclibc - machine `i386-gentoo-linux' not recognized
Summary: net-proxy/squid-2.6.5 fails to configure with uclibc - machine `i386-gentoo-l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-20 23:47 UTC by Natanael Copa
Modified: 2006-12-21 09:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2006-12-20 23:47:04 UTC
checking for style of include used by make... GNU
checking dependency style of i386-gentoo-linux-uclibc-gcc... gcc3
checking whether i386-gentoo-linux-uclibc-gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `i386-gentoo-linux-uclibc': machine `i386-gentoo-linux' not recognized
configure: error: /bin/sh cfgaux/config.sub i386-gentoo-linux-uclibc failed

!!! ERROR: net-proxy/squid-2.6.5 failed.


emerge --info:
al-1.5 aports # emerge --info
Portage 2.1.1-r2 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28-r1, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Thu, 21 Dec 2006 06:30:01 +0000
distcc 2.18.3 i386-gentoo-linux-uclibc (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/var/cache/packages/default"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/alpine-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X509 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol bitmap-fonts bri bzip2 cli cracklib dlloader dri elibc_uclibc encode expat extensions hardened input_devices_evdev input_devices_keyboard input_devices_mouse iproute2 ipv6 jpeg kernel_linux lua mad minimal misdn_cards_avmfritz misdn_cards_hfcmulti misdn_cards_hfcpci misdn_cards_hfcsmini misdn_cards_hfcsusb misdn_cards_netjetpci misdn_cards_sedlfax misdn_cards_w6692pci misdn_cards_xhfc ncurses netboot ntfs ogg oss pci pcmcia pic png pppd pri readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts type1-fonts uclibc uclibc++ udev usb userland_GNU userlocales video_cards_dummy video_cards_fbdev video_cards_v4l winbind wordexp xorg zaptel zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-12-21 00:42:24 UTC
I don't know much about subject, but shouldn't you have i386-pc-linux-uclibc (or something like that) as CHOST?

embedded team, please help me with that.
Comment 2 SpanKY gentoo-dev 2006-12-21 06:21:54 UTC
the CHOST doesnt matter ... the problem is squid isnt using econf()
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-12-21 06:33:57 UTC
Natanael, please try with ./configure replaced with econf. 
Also, delete --chost, --prefix, --bindir, --exec-prefix, --sbindir and --mandir.
Comment 4 Natanael Copa 2006-12-21 08:44:45 UTC
(In reply to comment #3)
> Natanael, please try with ./configure replaced with econf. 
> Also, delete --chost, --prefix, --bindir, --exec-prefix, --sbindir and
> --mandir.

works like a charm. 
btw. Shouldn't the libexec dir be /usr/libexec/squid?

--- squid-2.6.5.ebuild.orig     2006-12-21 15:05:08 +0000
+++ squid-2.6.5.ebuild  2006-12-21 15:06:24 +0000
@@ -99,15 +99,9 @@
 
        export CC=$(tc-getCC)
 
-       ./configure \
-               --prefix=/usr \
-               --bindir=/usr/bin \
-               --exec-prefix=/usr \
-               --sbindir=/usr/sbin \
-               --localstatedir=/var \
-               --mandir=/usr/share/man \
+       econf \
                --sysconfdir=/etc/squid \
-               --libexecdir=/usr/lib/squid \
+               --libexecdir=/usr/libexec/squid \
                --datadir=/usr/share/squid \
                --enable-auth="basic,digest,ntlm" \
                --enable-removal-policies="lru,heap" \
@@ -128,7 +122,7 @@
                --enable-follow-x-forwarded-for \
                $(use_enable snmp) \
                $(use_enable ssl) \
-               --host=${CHOST} ${myconf} || die "bad ./configure"
+               --host=${CHOST} ${myconf} || die "bad econf"
 
        sed -i -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 8192:" \
                include/autoconf.h
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2006-12-21 09:30:23 UTC
fixed in 2.6.6-r1.
thanks!