Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208229 - dev-perl/Socket6 fails to build
Summary: dev-perl/Socket6 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 21:30 UTC by Raphael Mankin
Modified: 2008-05-21 15:09 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 Raphael Mankin 2008-01-30 21:30:19 UTC
I am trying to build spamassassin. A prerequisite is Socket6. This fails because of inconsistent function defintions in a native library.

I haev tried both version 0.17 and 0.19. Both fail identically.

gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -mtune=i686 -pipe   -DVERSION=\"0.19\" -DXS_VERSION=\"0.19\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux/CORE"   Socket6.c
In file included from Socket6.xs:81:
getaddrinfo.c:53: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:640: error: previous declaration of 'gai_strerror' was here
In file included from Socket6.xs:87:
getnameinfo.c:32: error: conflicting types for 'getnameinfo'
/usr/include/netdb.h:649: error: previous declaration of 'getnameinfo' was here
make: *** [Socket6.o] Error 1

!!! ERROR: dev-perl/Socket6-0.19 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3346:   Called src_compile
  ebuild.sh, line 1304:   Called perl-module_src_compile
  perl-module.eclass, line 149:   Called die

!!! compilation 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-perl/Socket6-0.19/temp/build.log'.



Reproducible: Always

Steps to Reproduce:
1. emerge -n spamassassin
2.
3.

Actual Results:  
gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -mtune=i686 -pipe   -DVERSION=\"0.19\" -DXS_VERSION=\"0.19\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux/CORE"   Socket6.c
In file included from Socket6.xs:81:
getaddrinfo.c:53: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:640: error: previous declaration of 'gai_strerror' was here
In file included from Socket6.xs:87:
getnameinfo.c:32: error: conflicting types for 'getnameinfo'
/usr/include/netdb.h:649: error: previous declaration of 'getnameinfo' was here
make: *** [Socket6.o] Error 1

!!! ERROR: dev-perl/Socket6-0.19 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3346:   Called src_compile
  ebuild.sh, line 1304:   Called perl-module_src_compile
  perl-module.eclass, line 149:   Called die

!!! compilation 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-perl/Socket6-0.19/temp/build.log'.




# emerge --info
Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.9 i586)
=================================================================
System uname: 2.6.9 i586 unknown
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 30 Jan 2008 21:00:01 +0000
app-shells/bash:     3.1_p17
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="POSIX"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amavis apache2 berkdb bitmap-fonts cli cracklib crypt cups dri exim exiscan exiscan-acl filter gdbm gpm iconv ipv6 isdnlog maildir mbox midi mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection server session spell spf spl srs syslog tcpd truetype-fonts type1-fonts unicode vhosts x86 xml xorg 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 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY










ns1 ~ # more /var/tmp/portage/dev-perl/Socket6-0.19/temp/build.log
>>> Unpacking source...
>>> Unpacking Socket6-0.19.tar.gz to /var/tmp/portage/dev-perl/Socket6-0.19/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/Socket6-0.19/work/Socket6-0.19
 ...
 * Using ExtUtils::MakeMaker
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 ANSI C... none needed
checking whether your Perl5 have PL_sv_undef... rm: cannot remove `conftest/Make
file.PL': Function not implemented
rm: cannot remove `conftest/conftest.pm': Function not implemented
rm: cannot remove `conftest/conftest.xs': Function not implemented
rm: cannot remove `conftest/blib': Function not implemented
rm: cannot remove `conftest/Makefile': Function not implemented
rm: cannot remove `conftest/pm_to_blib': Function not implemented
rm: cannot remove `conftest/conftest.o': Function not implemented
rm: cannot remove `conftest/conftest.c': Function not implemented
rm: cannot remove `conftest/conftest.bs': Function not implemented
yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for getaddrinfo... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for getaddrinfo in -lsocket... rm: cannot remove `conftest': Is a direc
tory
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... no
rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
checking for getnameinfo... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for getnameinfo in -lsocket... rm: cannot remove `conftest': Is a direc
tory
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking for gethostbyname2... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for gethostbyname2 in -lsocket... rm: cannot remove `conftest': Is a di
rectory
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking for getipnodebyname... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for getipnodebyname in -lsocket... rm: cannot remove `conftest': Is a d
irectory
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking for getipnodebyaddr... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for getipnodebyaddr in -lsocket... rm: cannot remove `conftest': Is a d
irectory
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking for inet_pton... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for inet_pton in -lsocket... rm: cannot remove `conftest': Is a directo
ry
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking for inet_ntop... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
checking for inet_ntop in -lsocket... rm: cannot remove `conftest': Is a directo
ry
rm: cannot remove `conftest': Is a directory
no
checking whether your system has IPv6 directory... (cached) no
checking whether you have sa_len in struct sockaddr... no
checking whether you have sin6_scope_id in struct sockaddr_in6... yes
checking for socklen_t... rm: cannot remove `conftest': Is a directory
rm: cannot remove `conftest': Is a directory
no
configure: creating ./config.status
config.status: creating config.pl
config.status: creating gailookup.pl
config.status: creating config.h
rm: cannot remove `./confstatL8OQJq/subs.sed': Function not implemented
rm: cannot remove `./confstatL8OQJq/subs.frag': Function not implemented
rm: cannot remove `./confstatL8OQJq/subs-1.sed': Function not implemented
rm: cannot remove `./confstatL8OQJq/undefs.sed': Function not implemented
rm: cannot remove `conftest/Makefile.PL': Function not implemented
rm: cannot remove `conftest/conftest.pm': Function not implemented
rm: cannot remove `conftest/conftest.xs': Function not implemented
rm: cannot remove `conftest/blib': Function not implemented
rm: cannot remove `conftest/Makefile': Function not implemented
rm: cannot remove `conftest/pm_to_blib': Function not implemented
rm: cannot remove `conftest/conftest.o': Function not implemented
rm: cannot remove `conftest/conftest.c': Function not implemented
rm: cannot remove `conftest/conftest.bs': Function not implemented
Checking if your kit is complete...
Looks good
Writing Makefile for conftest
Writing Makefile for Socket6
cp Socket6.pm blib/lib/Socket6.pm
make[1]: Entering directory `/var/tmp/portage/dev-perl/Socket6-0.19/work/Socket6
-0.19/conftest'
i486-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statem
ent -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -mtune=i6
86 -pipe   -DVERSION=\"0.0\" -DXS_VERSION=\"0.0\" -fPIC "-I/usr/lib/perl5/5.8.8/
i486-linux/CORE"   conftest.c
Running Mkbootstrap for conftest ()
chmod 644 conftest.bs
rm -f ../blib/arch/auto/conftest/conftest.so
i486-pc-linux-gnu-gcc  -shared -L/usr/local/lib conftest.o  -o ../blib/arch/auto
/conftest/conftest.so   \
                \
          
chmod 755 ../blib/arch/auto/conftest/conftest.so
cp conftest.bs ../blib/arch/auto/conftest/conftest.bs
chmod 644 ../blib/arch/auto/conftest/conftest.bs
make[1]: Leaving directory `/var/tmp/portage/dev-perl/Socket6-0.19/work/Socket6-
0.19/conftest'
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/l
ib/perl5/5.8.8/ExtUtils/typemap  Socket6.xs > Socket6.xsc && mv Socket6.xsc Sock
et6.c
gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -mtune=i686 -pipe   -DVERSI
ON=\"0.19\" -DXS_VERSION=\"0.19\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux/CORE"
   Socket6.c
In file included from Socket6.xs:81:
getaddrinfo.c:53: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:640: error: previous declaration of 'gai_strerror' was here
In file included from Socket6.xs:87:
getnameinfo.c:32: error: conflicting types for 'getnameinfo'
/usr/include/netdb.h:649: error: previous declaration of 'getnameinfo' was here
make: *** [Socket6.o] Error 1

!!! ERROR: dev-perl/Socket6-0.19 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3346:   Called src_compile
  ebuild.sh, line 1304:   Called perl-module_src_compile
  perl-module.eclass, line 149:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if rel
evant.
!!! A complete build log is located at '/var/tmp/portage/dev-perl/Socket6-0.19/t
emp/build.log'.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2008-05-21 15:09:58 UTC
Socket6-0.20 is in the tree.
Please test if this is still a problem and reopen the bug.

Thanks