Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262161 - dev-haskell/network-2.1.0.0 does not build
Summary: dev-haskell/network-2.1.0.0 does not build
Status: RESOLVED DUPLICATE of bug 227515
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-11 17:52 UTC by Michele Beltrame
Modified: 2009-03-14 13:28 UTC (History)
0 users

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 Michele Beltrame 2009-03-11 17:52:52 UTC
Complains about invalid application of 'sizeof'... here's the log:

--------------------------------------------------------
>>> Emerging (5 of 6) dev-haskell/network-2.1.0.0
 * network-2.1.0.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                       [ ok ]
 * checking ebuild checksums ;-) ...                                            [ ok ]
 * checking auxfile checksums ;-) ...                                           [ ok ]
 * checking miscfile checksums ;-) ...                                          [ ok ]
>>> Unpacking source...
>>> Unpacking network-2.1.0.0.tar.gz to /var/tmp/portage/dev-haskell/network-2.1.0.0/work
>>> Source unpacked in /var/tmp/portage/dev-haskell/network-2.1.0.0/work
>>> Compiling source in /var/tmp/portage/dev-haskell/network-2.1.0.0/work/network-2.1.0.0 ...
 * Using cabal-1.6.0.1.
[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 )

/var/tmp/portage/dev-haskell/network-2.1.0.0/work/network-2.1.0.0/Setup.hs:3:0:
    Warning: Deprecated use of `defaultUserHooks'
             (imported from Distribution.Simple):
             Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks
Linking setup ...
Warning: defaultUserHooks in Setup script is deprecated.
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 Cabal-1.6.0.1 compiled by ghc-6.8
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 gcc version 4.1.2 found on system at: /usr/bin/gcc
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 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
Using pkg-config version 0.23 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
sh configure --with-hc=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --datadir=/usr/share/
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
Preprocessing library network-2.1.0.0...
Socket.hsc: In function 'main':
Socket.hsc:1143: error: invalid application of 'sizeof' to incomplete type 'struct ucred' 
Socket.hsc:1143: error: invalid application of 'sizeof' to incomplete type 'struct ucred' 
Socket.hsc:1143: error: invalid application of 'sizeof' to incomplete type 'struct ucred' 
Socket.hsc:1149: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1150: error: invalid use of undefined type 'struct ucred'
Socket.hsc:1151: error: invalid use of undefined type 'struct ucred'
compiling dist/build/Network/Socket_hsc_make.c failed
command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=608 -Iinclude -DCALLCONV=ccall -I/usr/lib64/ghc-6.8.2/lib/base-3.0.1.0/include -I/usr/lib64/ghc-6.8.2/include dist/build/Network/Socket_hsc_make.c -o dist/build/Network/Socket_hsc_make.o
 * 
 * ERROR: dev-haskell/network-2.1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1473:  Called haskell-cabal_src_compile
 *             environment, line 1239:  Called cabal_src_compile
 *             environment, line  385:  Called cabal-build
 *             environment, line  298:  Called die
 * The specific snippet of code:
 *       ./setup build || die "setup build failed"
 *  The die message:
 *   setup build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-haskell/network-2.1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/network-2.1.0.0/temp/environment'.
 * 

>>> Failed to emerge dev-haskell/network-2.1.0.0, Log file:
--------------------------------------------------------

This is output of "emerge --info":

--------------------------------------------------------
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-glibc2.2.5
Timestamp of tree: Sat, 07 Mar 2009 10:45:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/lib/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en_GB en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage /usr/local/overlays/perl/perl-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus divx dri dvd dvdr dvdread emboss encode esd evo fam firefox fortran gdbm gif glitz gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg ldap libnotify mad midi mikmod mmx moro mozdevelop mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam par pcre pdf perl png postfix postgres ppds pppd python qt3support quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb utf8 vorbis xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en_GB en it" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
-------------------------------------------------------------
Comment 1 Lennart Kolmodin (RETIRED) gentoo-dev 2009-03-14 13:28:59 UTC
Please upgrade to >=dev-haskell/network-2.2.
Reopen if it doesn't work for you.

*** This bug has been marked as a duplicate of bug 227515 ***