Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370931 - net-proxy/squid-3.0.15 failed to cross compile (squid_kerb_auth)
Summary: net-proxy/squid-3.0.15 failed to cross compile (squid_kerb_auth)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL: http://bugs.squid-cache.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 21:09 UTC by Bertrand Jacquin
Modified: 2012-05-22 16:30 UTC (History)
0 users

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


Attachments
squid-3.1.8-BJA-squid_kerb_auth-cross.diff (squid-3.1.8-BJA-squid_kerb_auth-cross.diff,403 bytes, patch)
2011-06-09 21:09 UTC, Bertrand Jacquin
Details | Diff
files/squid-3.1.15-BJA-squid_kerb_auth-cross.diff (squid-3.1.15-BJA-squid_kerb_auth-cross.diff,403 bytes, patch)
2011-10-05 18:22 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2011-06-09 21:09:16 UTC
helpers/negotiate_auth/squid_kerb_auth configure fail cause of a test to
--squid-dir= is not handling cross-compiling.

main configure

./configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=i586-geode-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--sysconfdir=/etc/squid --libexecdir=/usr/libexec/squid --localstatedir=/var
--with-pidfile=/var/run/squid.pid --datadir=/usr/share/squid
--with-logdir=/var/log/squid --with-default-user=squid
--enable-auth=basic,digest,negotiate,ntlm --enable-removal-policies=lru,heap
--enable-digest-auth-helpers=password
--enable-basic-auth-helpers=squid_radius_auth,getpwnam,NCSA,MSNT
--enable-external-acl-helpers=ip_user,session,unix_group
--enable-ntlm-auth-helpers=fakeauth --enable-negotiate-auth-helpers=
--enable-useragent-log --enable-cache-digests --enable-delay-pools
--enable-referer-log --enable-arp-acl --with-large-files
--with-filedescriptors=8192 --disable-strict-error-checking --disable-caps
--enable-ipv6 --enable-snmp --enable-ssl --enable-icap-client --disable-ecap
--disable-zph-qos --enable-storeio=ufs,diskd,aufs --enable-linux-netfilter
--disable-linux-tproxy --enable-epoll
--with-build-environment=_POSIX_V6_ILP32_OFFBIG

=== configuring in helpers/negotiate_auth/squid_kerb_auth
(/usr/i586-geode-linux-gnu/tmp/portage/net-proxy/squid-3.1.8/work/squid-3.1.8/helpers/negotiate_auth/squid_kerb_auth)
configure: running /bin/sh ./configure --disable-option-checking
'--prefix=/usr'  '--build=x86_64-pc-linux-gnu' '--host=i586-geode-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--sysconfdir=/etc/squid'
'--libexecdir=/usr/libexec/squid' '--localstatedir=/var'
'--with-pidfile=/var/run/squid.pid' '--datadir=/usr/share/squid'
'--with-logdir=/var/log/squid' '--with-default-user=squid'
'--enable-auth=basic,digest,negotiate,ntlm'
'--enable-removal-policies=lru,heap' '--enable-digest-auth-helpers=password'
'--enable-basic-auth-helpers=squid_radius_auth,getpwnam,NCSA,MSNT'
'--enable-external-acl-helpers=ip_user,session,unix_group'
'--enable-ntlm-auth-helpers=fakeauth' '--enable-negotiate-auth-helpers='
'--enable-useragent-log' '--enable-cache-digests' '--enable-delay-pools'
'--enable-referer-log' '--enable-arp-acl' '--with-large-files'
'--with-filedescriptors=8192' '--disable-strict-error-checking'
'--disable-caps' '--enable-ipv6' '--enable-snmp' '--enable-ssl'
'--enable-icap-client' '--disable-ecap' '--disable-zph-qos'
'--enable-storeio=ufs,diskd,aufs' '--enable-linux-netfilter'
'--disable-linux-tproxy' '--enable-epoll'
'--with-build-environment=_POSIX_V6_ILP32_OFFBIG'
'build_alias=x86_64-pc-linux-gnu' 'host_alias=i586-geode-linux-gnu'
'CC=i586-geode-linux-gnu-gcc' 'CFLAGS=-Os -pipe -march=k6-2
-fomit-frame-pointer -I/usr/i586-geode-linux-gnu/usr/include/
-I/usr/i586-geode-linux-gnu/include/' 'LDFLAGS=-L/usr/i586-geode-linux-gnu/lib
-L/usr/i586-geode-linux-gnu/usr/lib' 'CXXFLAGS=-Os -pipe -march=k6-2
-fomit-frame-pointer -I/usr/i586-geode-linux-gnu/usr/include/
-I/usr/i586-geode-linux-gnu/include/'
'--with-squid=/usr/i586-geode-linux-gnu/tmp/portage/net-proxy/squid-3.1.8/work/squid-3.1.8'
'--enable-ltdl-convenience' --cache-file=/dev/null --srcdir=.

I get the following error :

checking for SQUID at
'/usr/i586-geode-linux-gnu/tmp/portage/net-proxy/squid-3.1.8/work/squid-3.1.8'
... configure: error: in
`/usr/i586-geode-linux-gnu/tmp/portage/net-proxy/squid-3.1.8/work/squid-3.1.8/helpers/negotiate_auth/squid_kerb_auth':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
configure: error: ./configure failed for helpers/negotiate_auth/squid_kerb_auth

Attached patch fix it by assuming ac_cv_have_squid=yes

Reproducible: Always

Steps to Reproduce:
# cat /usr/i586-geode-linux-gnu/etc/portage/env/net-proxy/squid 
export ac_cv_c_bigendian=no
export ac_cv_epoll_works=yes
export ac_cv_af_unix_large_dgram=yes
export ac_cv_func_strnstr=no
export with_endianness=little
export EXTRA_ECONF="--with-build-environment=_POSIX_V6_ILP32_OFFBIG"


1. i586-geode-linux-gnu-emerge -vat squid
Comment 1 Bertrand Jacquin 2011-06-09 21:09:54 UTC
Created attachment 276415 [details, diff]
squid-3.1.8-BJA-squid_kerb_auth-cross.diff
Comment 2 Bertrand Jacquin 2011-10-05 18:22:01 UTC
Created attachment 288887 [details, diff]
files/squid-3.1.15-BJA-squid_kerb_auth-cross.diff

Here is an update for squid 3.1.15
Comment 3 Amos Jeffries 2011-11-19 09:10:25 UTC
This patch was accepted upstream into 3.1.16. I believe this bug can now be closed.
Comment 4 Bertrand Jacquin 2012-05-22 16:30:47 UTC
Sure it's ok now : http://bugs.squid-cache.org/show_bug.cgi?id=3241