Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 354453

Summary: dev-lang/perl-5.12.3 fails with ODBM_File.xs:124:2: error: too few arguments to function 'dbmclose' /usr/include/dbm.h:62:12: note: declared here
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: burcheri.massimo+bugs-gentoo, perl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /mnt/tmpfs/perl-5.12.3:20110211-101325.log
perl-5.12.3.ebuild.patch

Description Justin Lecher (RETIRED) gentoo-dev 2011-02-11 10:22:43 UTC
It seems t tkae the wrong header

x86_64-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -I/opt/scisoft64/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -march=core2 -mssse3 -frecord-gcc-switches -g   -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" -fPIC "-I../.."   ODBM_File.c
ODBM_File.xs: In function 'XS_ODBM_File_DESTROY':
ODBM_File.xs:124:2: error: too few arguments to function 'dbmclose'
/usr/include/dbm.h:62:12: note: declared here
make[1]: *** [ODBM_File.o] Error 1
make[1]: Leaving directory `/tmp/portage/dev-lang/perl-5.12.3/work/perl-5.12.3/ext/ODBM_File'
Unsuccessful make(ext/ODBM_File): code=512 at make_ext.pl line 449.
make: *** [lib/auto/ODBM_File/ODBM_File.so] Error 25
emake failed
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-02-11 10:24:58 UTC
Portage 2.2.01.17583-prefix (prefix/linux/amd64, gcc-4.5.2, unavailable, 2.6.34.7-0.5-desktop x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34.7-0.5-desktop-x86_64-Intel-R-_Xeon-R-_CPU_E5504_@_2.00GHz-with-SuSE-11.3-x86_64
Timestamp of tree: Fri, 11 Feb 2011 09:12:17 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.5-r2
dev-util/cmake:      2.8.3-r1
sys-devel/autoconf:  2.68
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.51.0.11
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.4
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo_prefix last-hope science scienceprefixoverlay
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mssse3 -frecord-gcc-switches -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/scisoft64/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo /opt/scisoft64/etc/env.d"
CXXFLAGS="-O2 -pipe -march=core2 -mssse3 -frecord-gcc-switches -g"
DISTDIR="/opt/scisoft64/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-v -t --jobs=12 --load-average=12 --keep-going"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news noinfo noman parallel-fetch preserve-libs protect-owned sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=core2 -mssse3 -frecord-gcc-switches -g"
GENTOO_MIRRORS="    http://gentoo.j-schmitz.net/mirror/    ftp://ftp.gentoo.mesh-solutions.com/gentoo/    ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo    ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j12 -l12"
PKGDIR="/opt/scisoft64/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-z -9 -f -S .lzma -v"
PORTAGE_CONFIGROOT="/opt/scisoft64/"
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="/opt/scisoft64/var/tmp"
PORTDIR="/opt/scisoft64/usr/portage"
PORTDIR_OVERLAY="/opt/scisoft64/data/lh /opt/scisoft64/data/sci /opt/scisoft64/data/sciprefix"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 apbs atlas berkdb bzip2 cli cracklib crypt cxx dri extendnmr fortran gdbm iconv jpeg mmx modules mudflap ncurses nis nls nptl nptlonly opengl openmp pcre perl png pppd prefix pymol python qt3support readline session sse sse2 ssl sysfs tcpd threads tiff unicode xorg zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS


Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-02-11 10:26:19 UTC
Created attachment 262103 [details]
/mnt/tmpfs/perl-5.12.3:20110211-101325.log

build.log
Comment 3 Fabian Groffen gentoo-dev 2011-02-13 09:48:17 UTC
the problem appears to be that ODBM is (attempted to be) built, which it isn't for me on regular Gentoo linux, and prefix Darwin
Comment 4 Massimo Burcheri 2011-04-06 09:34:27 UTC
Created attachment 268699 [details, diff]
perl-5.12.3.ebuild.patch

Added -Dnoextensions=ODBM_File
Comment 5 Massimo Burcheri 2011-04-06 09:35:23 UTC
dev-lang/perl-5.12.3 is currently the only Perl available in the Prefix Portage-tree. emerge -e system fails because of this.

Host OS here is Opensuse.
When I tried to built perl-5.12.3 on Opensuse I've already seen that failure and found http://lists.opensuse.org/opensuse-bugs/2010-09/msg03214.html .
While using perlbrew I got it working by:
perlbrew install perl-5.12.3 -Dnoextensions=ODBM_File

But this should be irrelevant since the tool chain is built by Gentoo already?

Anyway, I created a patch for the ebuild and it worked fine. I added -Dnoextensions=ODBM_File for CHOST linux. I'm not sure how to identify Opensuse only in the ebuild.
Comment 6 Fabian Groffen gentoo-dev 2011-04-06 09:47:28 UTC
I can live with always disabling ODBM, so I committed that to the prefix tree, thanks!