Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61175 - squid: can't compile it in a uclibc env (missing AIO support)
Summary: squid: can't compile it in a uclibc env (missing AIO support)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Andrew Bevitt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 10:31 UTC by Christian Zoffoli (RETIRED)
Modified: 2004-08-25 07:43 UTC (History)
1 user (show)

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


Attachments
here is a little hack to compile squid in a uclibc env (squid-2.5.6-r1.ebuild,5.53 KB, patch)
2004-08-21 10:33 UTC, Christian Zoffoli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2004-08-21 10:31:11 UTC
I can't compile squid in a uclibc env, as I can see the uclibc has no AIO support (and also it doensn't have an aio.h header).

here is the error:

----
depfile='.deps/coss/store_dir_coss.Po' tmpdepfile='.deps/coss/store_dir_coss.TPo' \
depmode=gcc3 /bin/sh ../../cfgaux/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I. -I../../include -I../../include -I../../src/    -Os -pipe -D_REENTRANT -c -o coss/store_dir_coss.o `test -f coss/store_dir_coss.c || echo './'`coss/store_dir_coss.c
source='coss/async_io.c' object='coss/async_io.o' libtool=no \
depfile='.deps/coss/async_io.Po' tmpdepfile='.deps/coss/async_io.TPo' \
depmode=gcc3 /bin/sh ../../cfgaux/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I. -I../../include -I../../include -I../../src/    -Os -pipe -D_REENTRANT -c -o coss/async_io.o `test -f coss/async_io.c || echo './'`coss/async_io.c
coss/store_io_coss.c:37:17: aio.h: No such file or directory
In file included from coss/store_io_coss.c:38:
coss/async_io.h:30: error: field `aq_e_aiocb' has incomplete type
make[4]: *** [coss/store_io_coss.o] Error 1
make[4]: *** Waiting for unfinished jobs....
coss/store_dir_coss.c:37:17: aio.h: No such file or directory
In file included from coss/store_dir_coss.c:39:
coss/async_io.h:30: error: field `aq_e_aiocb' has incomplete type
make[4]: *** [coss/store_dir_coss.o] Error 1
coss/async_io.c:19:17: aio.h: No such file or directory
In file included from coss/async_io.c:21:
coss/async_io.h:30: error: field `aq_e_aiocb' has incomplete type
make[4]: *** [coss/async_io.o] Error 1
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/squid-2.5.6-r1/work/squid-2.5.STABLE6/src/fs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/squid-2.5.6-r1/work/squid-2.5.STABLE6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/squid-2.5.6-r1/work/squid-2.5.STABLE6/src'
make: *** [all-recursive] Error 1

!!! ERROR: www-proxy/squid-2.5.6-r1 failed.
!!! Function src_compile, Line 125, Exitcode 2
!!! compile problem

----

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r9 (x86, gcc-3.3.4, glibc-0.9.26-r5, 2.6.8-rc2)
=================================================================
System uname: 2.6.8-rc2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe"
CHOST="i386-pc-linux-uclibc"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.4.11/gentoo-portage"
USE="berkdb ncurses python readline ssl tcpd uclibc x86 zlib"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-21 10:33:14 UTC
Created attachment 37876 [details, diff]
here is a little hack to compile squid in a uclibc env

I've disabled the 'coss' storeio and the async-io option in the uclibc env
Comment 2 Andrew Bevitt 2004-08-21 17:45:33 UTC
Any particular reason you added ppc to the keyword?
Id prefer to keep --enable-icmp commented out but in the file aswell...

(NB for future reference attach a diff of the two files, diff -u file1 file2)
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-22 06:06:02 UTC
reply to #2:

I've not added ppc to the keyword :)

The next time I'll post a diff ...sorry (I've missed the commented --enable-icmp)

Comment 4 Andrew Bevitt 2004-08-22 11:27:07 UTC
Its all good.. in cvs now.

Please confirm working.
Comment 5 Andrew Bevitt 2004-08-25 07:43:18 UTC
Closing.