Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271668 - dev-haskell/network-2.1.0.0 build failure (incomplete type ‘struct ucred’)
Summary: dev-haskell/network-2.1.0.0 build failure (incomplete type ‘struct ucred’)
Status: RESOLVED DUPLICATE of bug 227515
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 12:22 UTC by Antonio Weber
Modified: 2009-05-31 15:59 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 Antonio Weber 2009-05-29 12:22:45 UTC
Hi,

I want to install the dev-haskell/network package but it fails with compiling errors.

# su -c 'emerge --newuse -vuD dev-haskell/network'     

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-haskell/network-2.1.0.0  USE="-doc -profile" 106 kB

Total: 1 package (1 new), Size of downloads: 106 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-haskell/network-2.1.0.0
>>> Downloading 'ftp://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/network-2.1.0.0.tar.gz'
--2009-05-29 14:02:14--  ftp://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/network-2.1.0.0.tar.gz
           => `/usr/portage/distfiles/network-2.1.0.0.tar.gz'

2009-05-29 14:02:15 (276 KB/s) - »/usr/portage/distfiles/network-2.1.0.0.tar.gz« gespeichert [108096]

 * 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.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 ...
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/lib/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
Using ffihugs found on system at: /usr/bin/ffihugs
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
Using hugs found on system at: /usr/bin/hugs
No jhc found
Using ld found on system at: /usr/bin/ld
No nhc98 found
No pfesetup 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 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/lib --datadir=/usr/share/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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: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
 * 
 * ERROR: dev-haskell/network-2.1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 1513:  Called haskell-cabal_src_compile
 *             environment, line 1288:  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:

>>>  '/var/tmp/portage/dev-haskell/network-2.1.0.0/temp/build.log'

 * Messages for package dev-haskell/network-2.1.0.0:

 * 
 * ERROR: dev-haskell/network-2.1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 1513:  Called haskell-cabal_src_compile
 *             environment, line 1288:  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'.
 *
Comment 1 Sebastian Luther (few) 2009-05-29 13:29:04 UTC
emerge --info please.
Comment 2 Antonio Weber 2009-05-29 13:34:53 UTC
(In reply to comment #1)
> emerge --info please.
> 

Ah sorry:

# emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r10-i686-Intel-R-_Pentium-R-_M_processor_1.60GHz-with-glibc2.0
Timestamp of tree: Mon, 25 May 2009 16:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r14, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 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.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
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/portage/local/layman/perl-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aac aalib ac52 acl acpi aim alsa ao apache2 audiofile avi bcmath berkdb blas bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus dga directfb divx dri dv dvd dvdr dvdread eds emacs encode exif expat fam fastcgi fbcon fbdev ffmpeg firefox flac fontconfig fontforge foomaticdb fortran ftp gd gdbm gif gimp glib glut gnuplot gpm graphviz gtk hal hddtemp iconv icq imagemagick imap innodb isdnlog jabber jack java6 jpeg jpeg2k kerberos kpathsea lame laptop latex mad maildir mbox mcal mhash midi mime mjpeg mmap mmx mng modperl motif mp3 mpeg mplayer mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcmcia pcre pdf pdo perl plotutils png pop posix postgres pppd pstricks python quicktime raw readline reflection sasl scanner science sdl session sharedmem simplexml smime smtp spell spl sqlite sqlite3 sse sse2 ssh ssl subversion svg svga sysfs syslog tcl tcpd tetex threads tidy tiff tk truetype unicode usb vcd vidix vorbis wifi win32codecs wmf x264 x86 xcomposite xetex xml xorg xpm xrandr xsl xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa radeon fglrx fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Chad A. Simmons 2009-05-29 17:32:00 UTC
http://hackage.haskell.org/trac/ghc/ticket/2314

I believe this is fixed in ghc 6.8.3 and there is also a patch at the link above.
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2009-05-31 15:59:42 UTC
Please unmask dev-haskell/network and install a more recent version. That should work.


We should get these recent versions marked as stable.

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