>>> Compiling source in /var/tmp/portage/dev-haskell/network-2.1.0.0/work/network-2.1.0.0 ... * Using cabal-1.2.3.0. [1 of 1] Compiling Main ( /var/tmp/portage/dev-haskell/network-2.1.0.0/work/network-2.1.0.0/Setup.hs, /var/tmp/portage/dev-haskell/network-2.1.0.0/work/network-2.1.0.0/Setup.o ) Linking setup ... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for readlink... yes checking for symlink... yes checking for struct msghdr.msg_control... yes checking for struct msghdr.msg_accrights... no checking for in_addr_t in netinet/in.h... yes checking for getaddrinfo... yes checking whether AI_ADDRCONFIG is declared... yes checking whether AI_ALL is declared... yes checking whether AI_NUMERICSERV is declared... yes checking whether AI_V4MAPPED is declared... yes checking for sendfile in sys/sendfile.h... yes checking for sendfile in sys/socket.h... no checking for gethostent... yes configure: creating ./config.status config.status: creating network.buildinfo config.status: creating include/HsNetworkConfig.h config.status: include/HsNetworkConfig.h is unchanged Configuring network-2.1.0.0... Dependency base-any: using base-3.0.1.0 Dependency parsec-any: using parsec-2.1.0.0 Using compiler: ghc-6.8.2 Using install prefix: /usr Binaries installed in: /usr/bin Libraries installed in: /usr/lib64/network-2.1.0.0/ghc-6.8.2 Private binaries installed in: /usr/libexec Data files installed in: /usr/share/network-2.1.0.0/ghc-6.8.2 Documentation installed in: /usr/share/doc/network-2.1.0.0 No alex found Using ar found on system at: /usr/bin/ar No c2hs found No cpphs found No ffihugs found Using ghc version 6.8.2 given by user at: /usr/bin/ghc Using ghc-pkg version 6.8.2 given by user at: /usr/bin/ghc-pkg No greencard found No haddock found No happy found No hmake found Using hsc2hs version 0.66-ghc found on system at: /usr/bin/hsc2hs No hscolour found No hugs found No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found No pfesetup found No pkg-config found Using ranlib found on system at: /usr/bin/ranlib Using tar found on system at: /bin/tar /bin/sh configure --with-hc=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --datadir=/usr/share/ Socket.hsc: In function 'main': Socket.hsc:1143:0: error: invalid application of 'sizeof' to incomplete type 'struct ucred' Socket.hsc:1143:0: error: invalid application of 'sizeof' to incomplete type 'struct ucred' Socket.hsc:1143:0: error: invalid application of 'sizeof' to incomplete type 'struct ucred' Socket.hsc:1149:0: error: invalid use of undefined type 'struct ucred' Socket.hsc:1150:0: error: invalid use of undefined type 'struct ucred' Socket.hsc:1151:0: error: invalid use of undefined type 'struct ucred' compiling dist/build/Network/Socket_hsc_make.c failed command was: /usr/bin/ghc -c -optc-DCALLCONV=ccall -package base-3.0.1.0 -package parsec-2.1.0.0 -Iinclude dist/build/Network/Socket_hsc_make.c -o dist/build/Network/Socket_hsc_make.o Preprocessing library network-2.1.0.0... * * ERROR: dev-haskell/network-2.1.0.0 failed. Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.1 x86_64) ================================================================= System uname: 2.6.25.1 x86_64 unknown Timestamp of tree: Fri, 13 Jun 2008 19:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://216.165.129.134/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/" LANG="en_US" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://208.71.112.51/gentoo-portage" USE="X acl amd64 berkdb cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
same issue here. Portage 2.2_rc6 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo x86_64) ================================================================= System uname: Linux-2.6.26-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5 Timestamp of tree: Thu, 07 Aug 2008 13:15:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r6, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/" LANG="C" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/local/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="3ds 7zip X a52 aac aalib acl acpi aio alsa amd64 ao apache2 avahi bash-completion beagle berkdb bidi bluetooth bzip2 cairo cal3d cdda cddb cdio cdparanoia cdr cegui cg cli cracklib crypt cups curl cvs cxx dbus devhelp devil directfb divx dri dssi dv dvb dvd dvdr dvdread enca encode exif expat fam fame fasttrack fax fbcon ffmpeg firefox flac fltk fluidsynth fortran fping ftp fuse fusion galago gconf gcrypt gd gdbm geoip gif gimp glade glitz glut gmedia gnome gnome-keyring gnomecanvas gnutella gnutls gpgme gphoto2 gpm graphviz gstreamer gtk gtkhtml guile hal hdri iconv icu id3tag ifp imagemagick imap imlib inotify ipv6 isdnlog jabber jack java javascript jbig joystick jpeg kerberos keyring krb4 ladspa latex ldap libcaca libedit libgda libnotify libsamplerate libsexy libvisual libwww log4j logrotate lua lzo mad mailwrapper matroska mbox mbrola md5sum midi mikmod mjpeg mmap mmx mng mono motif mp2 mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql mythtv nautilus ncurses networkmanager nls nntp nptl nptlonly nsplugin nvtv ode ogg openal openexr opengl openmp pam pccts pcre pdf perl php pidgin png pop portaudio ppds pppd prelude procmail pth pulseaudio python qos qt3 qt4 quicktime radius rar readline realmedia reflection ruby samba sasl scanner scintilla sdl sdl-image session slang smp smtp sndfile snmp sourceview speex spell spl sql sqlite sse sse2 ssl subversion svg swig sysfs syslog taglib tcl tcpd theora threads tiff timidity tk tracker truetype twolame unicode upnp usb v4l v4l2 vala valgrind vcd vdr verse vim-syntax vorbis wavpack wmf wmp wxwindows x264 xaim xanim xcb xft xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="spca50x" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This is an issue with the network package and glibc 2.8 - the latest version (network-2.2.0.0) in the Haskell overlay works. Alternately, you can just rename the ebuild.
dev-haskell/network-2.2.0.0 has been added to the portage tree
Fixed by upgrading to network-2.2.0.0
*** Bug 262161 has been marked as a duplicate of this bug. ***
*** Bug 271668 has been marked as a duplicate of this bug. ***