Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141088 - dev-perl/File-RsyncP-0.62 won't compile w/ gcc-4.x
Summary: dev-perl/File-RsyncP-0.62 won't compile w/ gcc-4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 141133 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-07-19 15:40 UTC by Vladimir G. Ivanovic
Modified: 2006-08-08 06:43 UTC (History)
5 users (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 Vladimir G. Ivanovic 2006-07-19 15:40:31 UTC
# emerge -v =dev-perl/File-RsyncP-0.62
Calculating dependencies... done!

>>> Emerging (1 of 1) dev-perl/File-RsyncP-0.62 to /
<snip>
config.status: creating config.h

    File::RsyncP::FileList based on rsync 2.6.3 configuration successful

x86_64-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -march=k8 -pipe -O2 -mieee-fp -ffast-math -fomit-frame-pointer -frename-registers   -DVERSION=\"0.62\" -DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE"  -DPERL_BYTEORDER= FileList.c
In file included from rsync.h:139,
                 from FileList.xs:5:
config.h:416:1: warning: "_GNU_SOURCE" redefined
In file included from /usr/lib64/perl5/5.8.8/x86_64-linux/CORE/perl.h:37,
                 from FileList.xs:2:
/usr/lib64/perl5/5.8.8/x86_64-linux/CORE/config.h:1794:1: warning: this is the location of the previous definition
FileList.xs: In function 'getHashString':
FileList.xs:64: warning: passing argument 2 of 'Perl_sv_2pv_flags' from incompatible pointer type
FileList.xs: In function 'XS_File__RsyncP__FileList_decode':
FileList.xs:179: warning: implicit declaration of function 'flistDecodeBytes'
FileList.xs: In function 'XS_File__RsyncP__FileList_clean':
FileList.xs:291: warning: implicit declaration of function 'clean_flist'
FileList.c: In function 'XS_File__RsyncP__FileList_encodeData':
FileList.c:695: warning: unused variable 'RETVAL'
FileList.c: In function 'XS_File__RsyncP__FileList_exclude_check':
FileList.c:731: warning: pointer targets in initialization differ in signedness
FileList.c: In function 'XS_File__RsyncP__FileList_exclude_add':
FileList.c:766: warning: pointer targets in initialization differ in signedness
FileList.c: In function 'XS_File__RsyncP__FileList_exclude_add_file':
FileList.c:798: warning: pointer targets in initialization differ in signedness
FileList.xs: In function 'XS_File__RsyncP__FileList_exclude_list_get':
FileList.xs:553: warning: unused variable 'pattern'
x86_64-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -march=k8 -pipe -O2 -mieee-fp -ffast-math -fomit-frame-pointer -frename-registers   -DVERSION=\"0.62\" -DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE"  -DPERL_BYTEORDER= exclude.c
exclude.c:29: error: static declaration of 'verbose' follows non-static declaration
rsync.h:811: error: previous declaration of 'verbose' was here
exclude.c: In function 'get_exclude_tok':
exclude.c:262: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
exclude.c: In function 'add_exclude_file':
exclude.c:315: warning: unused variable 'listp'
make[1]: *** [exclude.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/File-RsyncP-0.62/work/File-RsyncP-0.62/FileList'
make: *** [subdirs] Error 2

!!! ERROR: dev-perl/File-RsyncP-0.62 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1254:   Called perl-module_src_compile
  perl-module.eclass, line 130:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



# emerge --info
Portage 2.1.1_pre3-r1 (default-linux/amd64/2005.1, gcc-3.4.6/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r3 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=k8 -msse3 -pipe -O2 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/service"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Wall -march=k8 -msse3 -pipe -O2 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.llarian.net/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/etc/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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 avi berkdb bitmap-fonts cli crypt cups dlloader doc dri eds emboss encode firefox foomaticdb fortran gif glibc-omitfp gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jikes jpeg kde ldap lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly nsplugin opengl pam pcre pdf pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1 type1-fonts unicode usb xemacs xml xml2 xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Malcolm Lashley (RETIRED) gentoo-dev 2006-07-19 16:41:21 UTC
Modifying the ebuild as follows to perform simple sed-hack to the offending include fixes it... passes 'make test' will leave to the maintainer to test an actual script.

src_unpack() {
    unpack ${A}
    cd ${S}
    sed -i 's:^extern int verbose://extern int verbose:' FileList/rsync.h
}
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-20 01:15:24 UTC
*** Bug 141133 has been marked as a duplicate of this bug. ***
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-26 05:31:54 UTC
please test and apply change.
Comment 4 Guy 2006-08-04 20:12:49 UTC
(In reply to comment #3)
> please test and apply change.
> 

Works for me.

.oOo.

Portage 2.1.1_pre4-r2 (default-linux/amd64/2005.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17.6 x86_64)
=================================================================
System uname: 2.6.17.6 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.4
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
Comment 5 Wulf Krueger (RETIRED) gentoo-dev 2006-08-06 12:27:16 UTC
(In reply to comment #1)

Works for me, too. Any chance to get the/a fix into Portage?
Comment 6 Christian Hartmann (RETIRED) gentoo-dev 2006-08-08 06:43:30 UTC
Version 0.64 in portage; use that version instead as this issue has been fixed upstream. (Broken version has been removed.)