Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289743 - Stabilize app-emulation/libdsk-1.2.1 (Was: app-emulation/libdsk-1.1.5 fails to compile due to fail in function 'open')
Summary: Stabilize app-emulation/libdsk-1.2.1 (Was: app-emulation/libdsk-1.1.5 fails t...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED, STABLEREQ
Depends on: 402857
Blocks:
  Show dependency tree
 
Reported: 2009-10-19 15:02 UTC by Stefano Priore
Modified: 2012-03-18 12:26 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 Stefano Priore 2009-10-19 15:02:32 UTC
app-emulation/libdsk-1.1.5 fails to compile due to the error in subject: incidentally, sys-block/gpart-0.1h-r1 fails just for the same reason...


Reproducible: Always

Steps to Reproduce:
1. emerge libdsk
2.
3.

Actual Results:  
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DAUTOSHARE=/usr/share/LibDsk -Wall -DNOTWINDLL -march=native -O2 -pipe -fomit-frame-pointer -c rpctios.c  -fPIC -DPIC -o .libs/rpctios.lo
rm -f .libs/rpcfork.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DAUTOSHARE=/usr/share/LibDsk -Wall -DNOTWINDLL -march=native -O2 -pipe -fomit-frame-pointer -c rpcfork.c  -fPIC -DPIC -o .libs/rpcfork.lo
rpcfork.c: In function 'fork_open':
rpcfork.c:95: warning: ignoring return value of 'write', declared with attribute warn_unused_result
rpcfork.c:100: warning: ignoring return value of 'read', declared with attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DAUTOSHARE=/usr/share/LibDsk -Wall -DNOTWINDLL -march=native -O2 -pipe -fomit-frame-pointer -c rpcfork.c -o rpcfork.o >/dev/null 2>&1
In function 'open',
    inlined from 'tios_open' at rpctios.c:91:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [rpctios.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/rpcfork.lo rpcfork.lo
make[2]: Leaving directory `/var/tmp/portage/app-emulation/libdsk-1.1.5/work/libdsk-1.1.5/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/libdsk-1.1.5/work/libdsk-1.1.5'
make: *** [all-recursive-am] Error 2
 *
 * ERROR: app-emulation/libdsk-1.1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line   96:  Called die
 * The specific snippet of code:
 *       emake || die "libdsk make failed!"
 *  The die message:
 *   libdsk make 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/app-emulation/libdsk-1.1.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libdsk-1.1.5/temp/environment'.
 *


Expected Results:  
A clean compile!

That's my emerge --info

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6-Toy i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-Toy-i686-Intel-R-_Pentium-R-_4_CPU_1400MHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 19 Oct 2009 14:30:10 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it 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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acpi apache2 bash-completion berkdb bidi blas bluetooth branding bzip2 cdparanoia cdr cjk cli cracklib crypt cups curl dbus dts dvd dvdr encode exif expat fam fftw flac fortran ftp gif gnutls gpm hal iconv idea jbig jpeg jpeg2k libnotify lm_sensors lzo maildir mime mmx modules mp4 mudflap ncurses network-cron nls nptl nptlonly offensive pam pcre pdf perl png ppds python readline recode reflection samba sasl session slang spell spl sse sse2 ssl startup-notification sysfs szip tcpd threads thunar tiff truetype unicode usb vim-syntax x264 x86 xattr xml xulrunner xvid zlib" ALSA_CARDS="ens1371 pcsp seq-dummy" 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 joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" SANE_BACKENDS="plustek net" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2009-10-26 02:18:14 UTC
This is a type of bug that becomes exposed when compiling newer compilers. Please try building ~x86 version of libdsk and see if that works for you.

You probably should file a separate bug for gpart btw. The upstream for that one seems to be gone, so gentoo maintainers would need to patch it (or else recommend an alternative package that is still being maintained).
Comment 2 Sebastian Luther (few) 2009-10-26 18:45:19 UTC
>/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared
>with attribute error: open with O_CREAT in second argument needs 3 arguments

fcntl2.h belongs to glibc. Try re-emerging glibc.

Did you switch from hardened to non-hardened profile?
Comment 3 SpanKY gentoo-dev 2009-10-26 21:03:50 UTC
there is no bug in glibc.  the error already tells you exactly the problem and libdsk sucks here, so fix it.  newer versions of libdsk have already been fixed, so maybe just stabilize it.
Comment 4 Samuel Bauer 2011-04-10 14:00:55 UTC
Same at home:

Solution 1: version bumping

Solution 2:

src_compile() {
    econf \
        --with-zlib \
        --with-bzlib \
        --enable-floppy \
        $(use_with java jni) \
        --with-java-prefix=${JAVA_HOME} \
        || die
    sed -i 's/O_CREAT |//' lib/rpctios.c || die "C"
    sed -i 's/O_CREAT |//' tools/serslave.c || die "C"
    emake || die "libdsk make failed!"
}

It's the solution the upstream develloper choose in libdsk-1.2.1, so it seems right for me, but at this point I didn't checked deep enough to say if they added some integrity test or not.

So version bumping is the solution I chose

SAm
Comment 5 Agostino Sarubbo gentoo-dev 2012-02-09 12:31:15 UTC
amd64 stable
Comment 6 Agostino Sarubbo gentoo-dev 2012-02-09 12:32:57 UTC
(In reply to comment #5)
> amd64 stable

sorry, bad bug
Comment 7 Agostino Sarubbo gentoo-dev 2012-02-09 12:36:44 UTC
Remove arches from CC as pacho suggested because of bug 402857
Comment 8 Pacho Ramos gentoo-dev 2012-03-18 12:26:34 UTC
dropped