Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257290 - app-emulation/dosemu-1.4.0.1 fails on emerge
Summary: app-emulation/dosemu-1.4.0.1 fails on emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-02-01 21:55 UTC by Nick
Modified: 2009-03-31 16:04 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 Nick 2009-02-01 21:55:42 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.

Then the emerge fails.

I was told the new gcc-4.3.3 enabled FORTIFY_SOURCES which enables these errors, if that helps point in the right direction (Thanks to bonsaikitten for reproducing).

Reproducible: Always

Steps to Reproduce:
1. Running ~amd64...
2. emerge -av dosemu
3.
Comment 1 Nick 2009-02-01 22:05:32 UTC
Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)                                                       
=================================================================               
System uname: Linux-2.6.28-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3700+-with-glibc2.2.5                                                                   
Timestamp of tree: Sun, 01 Feb 2009 01:00:01 +0000                              
app-shells/bash:     3.2_p48                                                    
dev-java/java-config: 1.3.7-r1, 2.1.7                                           
dev-lang/python:     2.4.4-r13, 2.5.4-r2                                        
dev-python/pycrypto: 2.0.1-r6                                                   
dev-util/cmake:      2.6.2-r1                                                   
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.4.2                                                      
sys-apps/sandbox:    1.3.3                                                      
sys-devel/autoconf:  2.13, 2.63                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
sys-devel/binutils:  2.19                                                       
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="amd64 ~amd64"                                                  
CBUILD="x86_64-pc-linux-gnu"                                                    
CFLAGS="-march=k8 -O2 -pipe"                                                    
CHOST="x86_64-pc-linux-gnu"                                                     
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"                                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                             
CXXFLAGS="-march=k8 -O2 -pipe"                                                  
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                    
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ "                           
LDFLAGS="-Wl,-O1"                                                               
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi aim alsa amd64 amrnb amrwb berkdb bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus dga dri dts dv dvb dvd dvdr dvdread encode esd ffmpeg flac fortran ftp gdbm ggi gif glitz gphoto2 gpm gzip hal i8x0 iconv ieee1394 imagemagick imlib ipv6 isdnlog java jpeg jpeg2k kde libcaca live lzo mad matrox midi mikmod mmx mmxext mng mozilla mp2 mp3 mpeg mplayer mudflap multilib musepack mysql ncurses nls nntp nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session sndfile spl sse sse2 ssl ssse3 svg sysfs tcpd theora tiff truetype unicode usb v4l v4l2 vcd videos vorbiswebkit x264 xanim xcomposite xine xinetd xml xorg xpm xulrunner xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 tridentusb-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_userautoindex 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 wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Rafał Mużyło 2009-02-03 11:07:28 UTC
While it sort of, kind of, is FORTIFY_SOURCES problem,
it's probably something that should be fixed upstream.

While they do use 3 arguments in most places,
it looks like there are about 2 places left,
where mode (permissions) should be added.
Comment 3 Nick 2009-02-04 02:37:13 UTC
(In reply to comment #2)
> While it sort of, kind of, is FORTIFY_SOURCES problem,
> it's probably something that should be fixed upstream.
> While they do use 3 arguments in most places,
> it looks like there are about 2 places left,
> where mode (permissions) should be added.

I got an easy fix by downgrading my gcc version and recompiling. Though I just figured I'd let others know about it, as it's possible other packages might experience the same thing.
Comment 4 Hanno Böck gentoo-dev 2009-02-06 13:38:27 UTC
I took a fix from upstream svn to resolve this.